android release 1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user