|
| 1 | +apply plugin: 'com.android.application' |
| 2 | +apply plugin: 'com.neenbedankt.android-apt' |
| 3 | + |
| 4 | +android { |
| 5 | + compileSdkVersion 23 |
| 6 | + buildToolsVersion "23.0.3" |
| 7 | + defaultConfig { |
| 8 | + applicationId "com.vogella.android.daggerjunitmockito" |
| 9 | + minSdkVersion 23 |
| 10 | + targetSdkVersion 23 |
| 11 | + versionCode 1 |
| 12 | + versionName "1.0" |
| 13 | + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
| 14 | + } |
| 15 | + buildTypes { |
| 16 | + release { |
| 17 | + minifyEnabled false |
| 18 | + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| 19 | + } |
| 20 | + } |
| 21 | +} |
| 22 | + |
| 23 | + |
| 24 | +// Define versions in a single place |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +ext { |
| 30 | + // App dependencies |
| 31 | + supportLibraryVersion = '23.4.0' |
| 32 | + guavaVersion = '18.0' |
| 33 | + glideVersion = '3.6.1' |
| 34 | + junitVersion = '4.12' |
| 35 | + mockitoVersion = '1.10.19' |
| 36 | + powerMockito = '1.6.2' |
| 37 | + hamcrestVersion = '1.3' |
| 38 | + runnerVersion = '0.5' |
| 39 | + rulesVersion = '0.5' |
| 40 | + espressoVersion = '2.2.2' |
| 41 | + DAGGER_VERSION ='2.4' |
| 42 | +} |
| 43 | + |
| 44 | +dependencies { |
| 45 | + // Dependencies for local unit tests |
| 46 | + testCompile "junit:junit:$junitVersion" |
| 47 | + testCompile "org.mockito:mockito-all:$mockitoVersion" |
| 48 | + testCompile "org.hamcrest:hamcrest-all:$hamcrestVersion" |
| 49 | + testCompile "org.powermock:powermock-module-junit4:$powerMockito" |
| 50 | + testCompile "org.powermock:powermock-api-mockito:$powerMockito" |
| 51 | + testCompile 'com.google.dagger:dagger:2.4' |
| 52 | + compile 'com.google.dagger:dagger:2.4' |
| 53 | + apt "com.google.dagger:dagger-compiler:$DAGGER_VERSION" |
| 54 | + testApt "com.google.dagger:dagger-compiler:$DAGGER_VERSION" |
| 55 | + provided 'javax.annotation:jsr250-api:1.0' |
| 56 | + |
| 57 | + compile fileTree(dir: 'libs', include: ['*.jar']) |
| 58 | + compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha3' |
| 59 | + compile 'javax.inject:javax.inject:1' |
| 60 | + |
| 61 | + androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2' |
| 62 | + androidTestCompile 'com.android.support.test:runner:0.5' |
| 63 | + androidTestCompile 'com.android.support:support-annotations:23.4.0' |
| 64 | + androidTestCompile 'org.mockito:mockito-core:2.0.57-beta' |
| 65 | + androidTestCompile "com.google.dexmaker:dexmaker:1.2" |
| 66 | + androidTestCompile "com.google.dexmaker:dexmaker-mockito:1.2" |
| 67 | + testCompile 'junit:junit:4.12' |
| 68 | + testCompile 'org.mockito:mockito-core:2.0.57-beta' |
| 69 | + testCompile 'junit:junit:4.12' |
| 70 | + testCompile 'javax.inject:javax.inject:1' |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | +} |
0 commit comments