Upgraded android gradle plugin to 2.3.3 (#431)
* Added dependency on assembleFullDebug before running unit tests. Apparently assembleFullDebugUnitTest does not include the sourceset for fullDebug as defined in app/build.gradle
This commit is contained in:
parent
6d779af3b1
commit
8cd974137b
|
@ -161,4 +161,15 @@ afterEvaluate {
|
||||||
task.dependsOn grantAnimationPermissionDev
|
task.dependsOn grantAnimationPermissionDev
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Android gradle plugin 2.3.x contains a bug where the assets for fullDebug
|
||||||
|
* are not copied. The task assembleFullDebug does copy the required assets,
|
||||||
|
* so this dependency fixes the issue.
|
||||||
|
*/
|
||||||
|
tasks.whenTaskAdded { task ->
|
||||||
|
if (task.name.contains("testFullDebugUnitTest")) {
|
||||||
|
task.dependsOn assembleFullDebug
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -5,7 +5,7 @@ buildscript {
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.1.3'
|
classpath 'com.android.tools.build:gradle:2.3.3'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#Wed Aug 24 16:59:02 CEST 2016
|
#Fri Aug 04 21:29:21 CEST 2017
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
|
||||||
|
|
Loading…
Reference in New Issue