diff --git a/android/app/build.gradle b/android/app/build.gradle index 7a0d576c..5be9a519 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -29,6 +29,7 @@ if (flutterVersionName == null) { } android { + namespace "com.kodjodevf.mangayomi" compileSdkVersion 34 ndkVersion flutter.ndkVersion diff --git a/android/build.gradle b/android/build.gradle index bc157bd1..e7c821a4 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -8,6 +8,22 @@ allprojects { rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" + afterEvaluate { project -> + if (project.plugins.hasPlugin("com.android.application") || + project.plugins.hasPlugin("com.android.library")) { + project.android { + compileSdkVersion 34 + buildToolsVersion "34.0.0" + } + } + if (project.hasProperty("android")) { + project.android { + if (namespace == null) { + namespace project.group + } + } + } + } } subprojects { project.evaluationDependsOn(':app')