From f08e4f943e0418d03b27bef1c6262310a60398b6 Mon Sep 17 00:00:00 2001 From: ahmed abdelkader fayed Date: Sun, 6 Oct 2024 17:55:27 +0300 Subject: [PATCH] fix gradle namespace --- android/build.gradle | 6 ++++-- example/android/app/build.gradle | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 92654b91b..873e15455 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,8 +22,10 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { - compileSdkVersion 28 - + if (project.android.hasProperty("namespace")) { + namespace "com.instabug.flutter" + } + compileSdkVersion 33 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 13ed775e2..39c5fd755 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -28,6 +28,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { compileSdkVersion flutter.compileSdkVersion ndkVersion flutter.ndkVersion + namespace = "com.instabug.flutter.example" compileOptions { sourceCompatibility JavaVersion.VERSION_1_8