File tree Expand file tree Collapse file tree
src/test/java/com/danikula/videocache Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 components :
44 - platform-tools
55 - tools
6- - build-tools-22 .0.1
6+ - build-tools-25 .0.2
77 - android-23
88 - extra
Original file line number Diff line number Diff line change 11buildscript {
22 repositories {
3- mavenCentral ()
3+ jcenter ()
44 }
55 dependencies {
6- classpath ' com.android.tools.build:gradle:2.1.3 '
6+ classpath ' com.android.tools.build:gradle:2.3.1 '
77 }
88}
99
Original file line number Diff line number Diff line change 1- # Mon Sep 05 18:06:17 MSK 2016
1+ # Tue Apr 18 11:58:38 MSK 2017
22distributionBase =GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-2.14.1 -all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-3.3 -all.zip
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ buildscript {
33 jcenter()
44 }
55 dependencies {
6- classpath ' com.novoda:bintray-release:0.3.4 '
6+ classpath ' com.novoda:bintray-release:0.4.0 '
77 }
88}
99
@@ -13,7 +13,7 @@ apply plugin: 'bintray-release'
1313
1414android {
1515 compileSdkVersion 23
16- buildToolsVersion ' 22 .0.1 '
16+ buildToolsVersion ' 25 .0.2 '
1717
1818 defaultConfig {
1919 minSdkVersion 9
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ apply plugin: 'com.neenbedankt.android-apt'
1616
1717android {
1818 compileSdkVersion 23
19- buildToolsVersion ' 22 .0.1 '
19+ buildToolsVersion ' 25 .0.2 '
2020
2121 defaultConfig {
2222 applicationId ' com.danikula.videocache.sample'
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ apply plugin: 'com.android.application'
66
77android {
88 compileSdkVersion 23
9- buildToolsVersion ' 22 .0.1 '
9+ buildToolsVersion ' 25 .0.2 '
1010
1111 defaultConfig {
1212 applicationId ' com.danikula.proxycache.test'
@@ -21,11 +21,18 @@ android {
2121 }
2222}
2323
24+ // temporary workaround for Robolectric issue https://github.com/robolectric/robolectric/issues/2647
25+ android. applicationVariants. all { variant ->
26+ def productFlavor = variant. productFlavors[0 ] != null ? " ${ variant.productFlavors[0].name.capitalize()} " : " "
27+ def buildType = " ${ variant.buildType.name.capitalize()} "
28+ tasks[" compile${ productFlavor}${ buildType} UnitTestSources" ]. dependsOn(tasks[" merge${ productFlavor}${ buildType} Assets" ])
29+ }
30+
2431dependencies {
2532 compile project(' :library' )
2633 testCompile ' org.slf4j:slf4j-simple:1.7.21'
2734 testCompile ' junit:junit:4.12'
28- testCompile ' org.robolectric:robolectric:3.1 '
35+ testCompile ' org.robolectric:robolectric:3.3.2 '
2936 testCompile ' com.squareup:fest-android:1.0.0'
3037 testCompile ' com.google.guava:guava-jdk5:17.0'
3138 testCompile(' com.danikula:android-garden:2.1.4' ) {
Original file line number Diff line number Diff line change 33import com .danikula .videocache .test .BuildConfig ;
44
55import org .junit .runner .RunWith ;
6- import org .robolectric .RobolectricGradleTestRunner ;
6+ import org .robolectric .RobolectricTestRunner ;
77import org .robolectric .annotation .Config ;
88
9- @ RunWith (RobolectricGradleTestRunner .class )
9+ @ RunWith (RobolectricTestRunner .class )
1010@ Config (constants = BuildConfig .class )
1111public abstract class BaseTest {
1212
You can’t perform that action at this time.
0 commit comments