@@ -37,6 +37,7 @@ android {
3737 minSdkVersion 16
3838 targetSdkVersion 24
3939
40+ multiDexEnabled true
4041 vectorDrawables. useSupportLibrary = true
4142 buildConfigField " boolean" , " IN_APP_BILLING_AVAILABLE" , " false"
4243 }
@@ -52,18 +53,20 @@ android {
5253 wasabi { // "hot" version, can be installed along release, alpha or beta versions
5354 buildConfigField " boolean" , " IN_APP_BILLING_AVAILABLE" , " true"
5455 applicationId " org.wordpress.android.beta"
56+ minSdkVersion 21 // to take advantage of "fast" multi dex (pre-dex each module)
5557 }
5658 }
5759
5860 buildTypes {
5961 release {
60- // Proguard is only used to fix an issue with some Samsung device
61- // https://github.com/wordpress-mobile/WordPress-Android/issues/2151
62+ // Proguard is used to shrink our apk, and reduce the number of methods in our final apk,
63+ // but we don't obfuscate the bytecode.
6264 minifyEnabled true
6365 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard.cfg'
6466 }
6567
6668 debug {
69+ minifyEnabled false
6770 buildConfigField " String" , " APP_PN_KEY" , " \" org.wordpress.android.debug.build\" "
6871 ext. enableCrashlytics = false
6972 }
@@ -85,6 +88,7 @@ dependencies {
8588 }
8689 compile ' com.google.code.gson:gson:2.6.+'
8790 compile ' org.ccil.cowan.tagsoup:tagsoup:1.2.1'
91+ compile ' com.android.support:multidex:1.0.1'
8892 compile ' com.android.support:support-v13:24.0.0'
8993 compile ' com.android.support:appcompat-v7:24.0.0'
9094 compile ' com.android.support:cardview-v7:24.0.0'
0 commit comments