forked from firka/firka
add no namespace fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user