From f73b4e287717032e28c66f16b993f622fc861cde Mon Sep 17 00:00:00 2001 From: Eric Bouchard Date: Wed, 20 Dec 2023 16:26:51 +0700 Subject: [PATCH 1/2] Add namespace for AGP 8 compatibility --- android/build.gradle | 9 ++++++--- example/android/app/build.gradle | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 36854ad..66e578e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -5,7 +5,7 @@ buildscript { ext.kotlin_version = '1.5.31' repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -17,7 +17,7 @@ buildscript { rootProject.allprojects { repositories { google() - jcenter() + mavenCentral() } } @@ -25,6 +25,9 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { + if (project.android.hasProperty("namespace")) { + namespace 'com.bhikadia.receive_intent' + } compileSdkVersion 30 sourceSets { @@ -38,4 +41,4 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" implementation "androidx.annotation:annotation:1.3.0" -} +} \ No newline at end of file diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index b65020f..9a4149b 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -26,6 +26,9 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { + if (project.android.hasProperty("namespace")) { + namespace "com.bhikadia.receive_intent_example" + } compileSdkVersion 30 sourceSets { From c9a792f25536b7e6cea7dd127e778c5b367b22c0 Mon Sep 17 00:00:00 2001 From: Eric Bouchard Date: Wed, 20 Dec 2023 19:05:59 +0700 Subject: [PATCH 2/2] Update kotlin version --- android/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 66e578e..3d425f0 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,14 +2,14 @@ group 'com.bhikadia.receive_intent' version '1.0-SNAPSHOT' buildscript { - ext.kotlin_version = '1.5.31' + ext.kotlin_version = '1.7.22' repositories { google() mavenCentral() } 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" } }