debug builds now automatically get a '-debug' suffix
This commit is contained in:
parent
0aede2ef19
commit
f20c498252
2 changed files with 10 additions and 8 deletions
|
|
@ -130,12 +130,13 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
applicationVariants.configureEach { variant ->
|
applicationVariants.configureEach { variant ->
|
||||||
|
def variantName = variant.name.capitalize()
|
||||||
[
|
[
|
||||||
"merge${variant.name.capitalize()}Assets",
|
"merge${variantName}Assets",
|
||||||
"lintAnalyze${variant.name.capitalize()}",
|
"lintAnalyze${variantName}",
|
||||||
"generate${variant.name.capitalize()}LintReportModel",
|
"generate${variantName}LintReportModel",
|
||||||
"lintVitalAnalyze${variant.name.capitalize()}",
|
"lintVitalAnalyze${variantName}",
|
||||||
"generate${variant.name.capitalize()}LintVitalReportModel"
|
"generate${variantName}LintVitalReportModel"
|
||||||
].each { taskName ->
|
].each { taskName ->
|
||||||
try {
|
try {
|
||||||
tasks.named(taskName)?.configure {
|
tasks.named(taskName)?.configure {
|
||||||
|
|
@ -154,8 +155,9 @@ android {
|
||||||
assembleFullRelease.finalizedBy(updateManifest)
|
assembleFullRelease.finalizedBy(updateManifest)
|
||||||
|
|
||||||
variant.outputs.configureEach {
|
variant.outputs.configureEach {
|
||||||
def suffix = variant.flavorName == 'full' ? '-full' : ''
|
def fullSuffix = variant.flavorName == 'full' ? '-full' : ''
|
||||||
outputFileName = "${APP_NAME}-v${getVerName()}${suffix}.apk"
|
def debugSuffix = variant.name.containsIgnoreCase('debug') ? '-debug' : ''
|
||||||
|
outputFileName = "${APP_NAME}-v${getVerName()}${fullSuffix}${debugSuffix}.apk"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:tools="http://schemas.android.com/tools"
|
<manifest xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:versionCode="844"
|
android:versionCode="845"
|
||||||
android:versionName="43.0"
|
android:versionName="43.0"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue