Skip to content

Commit

Permalink
Merge pull request #161 from UjuiUjuMandan/debug
Browse files Browse the repository at this point in the history
move out applicationVariants.all
  • Loading branch information
wgh136 authored Jan 27, 2025
2 parents 19af2d7 + 64a3ef3 commit e688ab7
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,31 +83,31 @@ android {
abiFilters "armeabi-v7a", "arm64-v8a", "x86_64"
}
signingConfig signingConfigs.release
applicationVariants.all { variant ->
variant.outputs.all { output ->
def abi = output.getFilter(com.android.build.OutputFile.ABI)
if (abi != null) {
outputFileName = "venera-${variant.versionName}-${abi}.apk"
def abiVersionCode = project.ext.abiCodes.get(abi)
if (abiVersionCode != null) {
versionCodeOverride = variant.versionCode * 10 + abiVersionCode
}
} else {
outputFileName = "venera-${variant.versionName}.apk"
versionCodeOverride = variant.versionCode * 10
}
}
}
}
debug {
ndk {
abiFilters "armeabi-v7a", "arm64-v8a", "x86_64"
}
signingConfig signingConfigs.debug
applicationVariants.all { variant ->
variant.outputs.all { output ->
versionCodeOverride = variant.versionCode * 10 + 4
}
}

applicationVariants.all { variant ->
variant.outputs.all { output ->
def abi = output.getFilter(com.android.build.OutputFile.ABI)
if (variant.buildType.name == "release") {
if (abi != null) {
outputFileName = "venera-${variant.versionName}-${abi}.apk"
def abiVersionCode = project.ext.abiCodes.get(abi)
if (abiVersionCode != null) {
versionCodeOverride = variant.versionCode * 10 + abiVersionCode
}
} else {
outputFileName = "venera-${variant.versionName}.apk"
versionCodeOverride = variant.versionCode * 10
}
} else if (variant.buildType.name == "debug") {
versionCodeOverride = variant.versionCode * 10 + 4
}
}
}
Expand Down

0 comments on commit e688ab7

Please sign in to comment.