Skip to content

Commit

Permalink
Introduce build flag for disabling optmization.
Browse files Browse the repository at this point in the history
  • Loading branch information
pocmo committed Nov 30, 2020
1 parent 1ab3465 commit 0a419ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ android {
}

def releaseTemplate = {
shrinkResources true
minifyEnabled true
// We allow disabling optimization by passing `-PdisableOptimization` to gradle. This is used
// in automation for UI testing non-debug builds.
shrinkResources !project.hasProperty("disableOptimization")
minifyEnabled !project.hasProperty("disableOptimization")
proguardFiles 'proguard-android-optimize-3.5.0-modified.txt', 'proguard-rules.pro'
matchingFallbacks = ['release'] // Use on the "release" build type in dependencies (AARs)

Expand Down

0 comments on commit 0a419ef

Please sign in to comment.