Skip to content

Commit

Permalink
Update build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko committed Jan 23, 2024
1 parent e753bfc commit a1bf955
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,22 @@ android {
isShrinkResources = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
if (project.hasProperty("signAsDebug")) {
if (!hasReleaseConfig) {
applicationIdSuffix = ".debug"
resValue("string", "app_name", "ReVanced Manager Debug")
signingConfig = signingConfigs.getByName("debug")
} else if (hasReleaseConfig) {
} else {
signingConfig = signingConfigs.getByName("release")
}
applicationVariants.all {
this.outputs
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
.forEach { output ->
output.outputFileName = "revanced-manager-v${project.version}.apk"
if (applicationIdSuffix == ".debug") {
output.outputFileName = "revanced-manager-v${project.version}-debug.apk"
} else {
output.outputFileName = "revanced-manager-v${project.version}.apk"
}
}
}
}
Expand Down

0 comments on commit a1bf955

Please sign in to comment.