Skip to content

Commit b1a6050

Browse files
committed
Disable minified builds
1 parent e1927d5 commit b1a6050

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

app/build.gradle.kts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,30 @@ android {
2222
applicationId = "dev.randombits.intervaltimer"
2323
minSdk = 24
2424
targetSdk = 33
25-
versionCode = 4
26-
versionName = "1.0.4"
25+
versionCode = 5
26+
versionName = "1.0.5"
2727

2828
vectorDrawables {
2929
useSupportLibrary = true
3030
}
3131
}
3232

33-
applicationVariants.all {
34-
outputs.all {
35-
var apkName = "IntervalTimer-" + defaultConfig.versionName;
36-
if (name == "debug") {
37-
apkName += "-${name}"
33+
if (findProperty("PLAY_STORE_KEY") != null) {
34+
applicationVariants.all {
35+
outputs.all {
36+
var apkName = "IntervalTimer-" + defaultConfig.versionName;
37+
if (name == "debug") {
38+
apkName += "-${name}"
39+
}
40+
this as com.android.build.gradle.internal.api.ApkVariantOutputImpl
41+
outputFileName = apkName + ".apk"
3842
}
39-
this as com.android.build.gradle.internal.api.ApkVariantOutputImpl
40-
outputFileName = apkName + ".apk"
4143
}
4244
}
4345

4446
buildTypes {
4547
release {
46-
isMinifyEnabled = true
48+
isMinifyEnabled = false
4749
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
4850
if (findProperty("PLAY_STORE_KEY") != null) {
4951
signingConfig = signingConfigs.getByName("release")

0 commit comments

Comments
 (0)