android release 1

This commit is contained in:
2025-01-13 10:10:05 +06:30
parent d422761e51
commit 21cf7a2517
8 changed files with 92 additions and 18 deletions

View File

@@ -67,16 +67,16 @@ android {
}
flavorDimensions "app"
flavorDimensions "fcs"
productFlavors {
prod {
dimension "app"
dimension "fcs"
applicationId "com.mokkon.fcs"
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
dev {
dimension "app"
dimension "fcs"
applicationId "com.mokkon.fcs.dev"
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
@@ -100,11 +100,21 @@ android {
// useProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
applicationVariants.all { variant ->
variant.outputs.all {
def newName
// if (buildType == 'debug'){
// newName = "app-${variant.getFlavorName()}-debug.apk"
// } else {
newName = "${variant.productFlavors[0].dimension}_${variant.productFlavors[0].name}_v${defaultConfig.versionName}+${defaultConfig.versionCode}.apk"
// }
outputFileName = newName
}
}
}
debug {
debuggable true
}
}
}