diff --git a/android/build.gradle b/android/build.gradle index 36854ad..ef0490c 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 { 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 {