Skip to content

Instantly share code, notes, and snippets.

@Chrispassold
Created June 7, 2018 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chrispassold/bb96628148c1b1f662e2da2fba430806 to your computer and use it in GitHub Desktop.
Save Chrispassold/bb96628148c1b1f662e2da2fba430806 to your computer and use it in GitHub Desktop.
Change name app build
release {
debuggable false
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFile = new File(output.outputFile.parent, output.outputFile.name.
replace("app-dev-release.apk", "App-" + versionName + "-develop.apk"))
output.outputFile = new File(output.outputFile.parent, output.outputFile.name.
replace("app-prod-release.apk", "App-" + versionName + ".apk"))
}
}
signingConfig signingConfigs.config
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment