From 421c1ed5f82f48d6aa5d887680d5282d7724a85e Mon Sep 17 00:00:00 2001 From: Erik Reed Date: Wed, 8 Apr 2020 15:39:17 -0700 Subject: [PATCH] Minify/shrink on release build instead of debug Currently the debug/release settings look flipped. Presumably the release build would be minified and not the debug. This PR switches the behavior to be more intuitive. --- android-videostreamdecodingsample/app/build.gradle | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/android-videostreamdecodingsample/app/build.gradle b/android-videostreamdecodingsample/app/build.gradle index b52085d..f8c95b2 100755 --- a/android-videostreamdecodingsample/app/build.gradle +++ b/android-videostreamdecodingsample/app/build.gradle @@ -23,12 +23,13 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled true + shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { - shrinkResources true - minifyEnabled true + shrinkResources false + minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } @@ -92,4 +93,4 @@ dependencies { implementation 'androidx.recyclerview:recyclerview:1.0.0' implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0-rc01' implementation 'androidx.annotation:annotation:1.0.0' -} \ No newline at end of file +}