Gradle 8.2.0 compatibility (#26)

* Add namespace for AGP 8 compatibility

* Update kotlin version
This commit is contained in:
eric-nextsense 2023-12-21 12:42:40 +07:00 committed by GitHub
parent 8b8e8fc6ef
commit 8578cc28ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View file

@ -2,14 +2,14 @@ group 'com.bhikadia.receive_intent'
version '1.0-SNAPSHOT' version '1.0-SNAPSHOT'
buildscript { buildscript {
ext.kotlin_version = '1.5.31' ext.kotlin_version = '1.7.22'
repositories { repositories {
google() google()
jcenter() mavenCentral()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:7.1.2' classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
} }
} }
@ -17,7 +17,7 @@ buildscript {
rootProject.allprojects { rootProject.allprojects {
repositories { repositories {
google() google()
jcenter() mavenCentral()
} }
} }
@ -25,6 +25,9 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
android { android {
if (project.android.hasProperty("namespace")) {
namespace 'com.bhikadia.receive_intent'
}
compileSdkVersion 30 compileSdkVersion 30
sourceSets { sourceSets {

View file

@ -26,6 +26,9 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android { android {
if (project.android.hasProperty("namespace")) {
namespace "com.bhikadia.receive_intent_example"
}
compileSdkVersion 30 compileSdkVersion 30
sourceSets { sourceSets {