Gradle: Bump android plugin to 2.0.0

Also add useProgard true, since minifyEnabled now refers to the new
experimental code shrinker.

I'm not removing proguard yet as we depend on it for the samsung
workaround. I also do not know how to port the rest of the config
options to the new shrinker.
This commit is contained in:
Daniel Martí 2016-04-13 13:25:53 +01:00
parent 127c65b78d
commit 27c9a21764
2 changed files with 2 additions and 1 deletions

View File

@ -134,6 +134,7 @@ android {
// release builds before.
all {
minifyEnabled true
useProguard true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
testProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro', 'src/androidTest/proguard-rules.pro'

View File

@ -3,7 +3,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.android.tools.build:gradle:2.0.0'
classpath files('libs/gradle-witness.jar')
}
}