Android: fix build release

This commit is contained in:
kodjomoustapha 2024-09-05 10:55:41 +01:00
parent 08ebedbe37
commit 99acfde0ca
2 changed files with 17 additions and 0 deletions

View file

@ -29,6 +29,7 @@ if (flutterVersionName == null) {
}
android {
namespace "com.kodjodevf.mangayomi"
compileSdkVersion 34
ndkVersion flutter.ndkVersion

View file

@ -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')