From ce752b6ad4846fbf50471c7cba3f797aabc2e74d Mon Sep 17 00:00:00 2001 From: BalazsManus Date: Fri, 14 Mar 2025 11:46:30 +0100 Subject: [PATCH] add no namespace fix --- firka/android/app/build.gradle | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/firka/android/app/build.gradle b/firka/android/app/build.gradle index 54bbb9d6..d5a1d9bb 100644 --- a/firka/android/app/build.gradle +++ b/firka/android/app/build.gradle @@ -20,6 +20,19 @@ if (keystorePropertiesFile.exists()) { println "Keystore properties file exists: ${keystorePropertiesFile.exists()}" println "Keystore file path: ${keystoreProperties['storeFile']}" +// autoassign project group if there is no namespace in a library +subprojects { + afterEvaluate { project -> + if (project.hasProperty('android')) { + project.android { + if (namespace == null) { + namespace project.group + } + } + } + } +} + android { namespace = 'app.firka.naplo' compileSdk = flutter.compileSdkVersion @@ -35,7 +48,6 @@ android { } defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = 'app.firka.naplo' // You can update the following values to match your application needs. // For more information, see: https://flutter.dev/to/review-gradle-config. @@ -43,6 +55,8 @@ android { targetSdk = flutter.targetSdkVersion versionCode = flutter.versionCode versionName = flutter.versionName + multiDexEnabled true + resConfigs "en" } signingConfigs { @@ -57,6 +71,18 @@ android { buildTypes { release { signingConfig signingConfigs.release // Use the release signing config + + // allow debugging + debuggable true + jniDebuggable true + renderscriptDebuggable true + + // make apk smaller + shrinkResources true + minifyEnabled true + pseudoLocalesEnabled false + zipAlignEnabled true + crunchPngs true } } }