Skip to content

Commit 7f0a218

Browse files
committed
Make proguard switchable via props
1 parent ea12d88 commit 7f0a218

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ android {
145145
buildConfigField "Boolean", "EXTENDED_VALIDATION", "true"
146146
}
147147
debug {
148-
minifyEnabled false
149-
shrinkResources false
148+
minifyEnabled props.getProperty("minifyEnabled", "true") == "true"
149+
shrinkResources props.getProperty("shrinkResources", "true") == "true"
150150
testProguardFile "test-proguard-rules.pro"
151151
}
152152
}

app/keys.properties.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ IapProductId=pro_app
66
googlePlayLicenseKey=xyzzy
77
backendUrl=https://postb.in/iiolsQAd
88
purchaseVerifierPath=check/buy
9-
privacyPolicyUrl=https://example.com/privacy-policy/
9+
privacyPolicyUrl=https://example.com/privacy-policy/
10+
minifyEnabled=true
11+
shrinkResources=true

0 commit comments

Comments
 (0)