From 99acfde0ca43d75feafa48f0b2f9404d92d174e3 Mon Sep 17 00:00:00 2001 From: kodjomoustapha <107993382+kodjodevf@users.noreply.github.com> Date: Thu, 5 Sep 2024 10:55:41 +0100 Subject: [PATCH] Android: fix build release --- android/app/build.gradle | 1 + android/build.gradle | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/android/app/build.gradle b/android/app/build.gradle index 7a0d576..5be9a51 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 bc157bd..e7c821a 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')