11apply plugin : ' com.android.application'
2- apply plugin : ' me.tatarka.retrolambda'
32apply plugin : ' jacoco-android'
43apply from : ' quality.gradle'
54apply plugin : ' com.getkeepsafe.dexcount'
65
76dependencies {
8- compile ' com.github.nicolas-raoul:Quadtree:ac16ea8035bf07'
9- compile ' fr.avianey.com.viewpagerindicator:library:2.4.1.1@aar'
10- compile ' in.yuvi:http.fluent:1.3'
11- compile ' com.android.volley:volley:1.0.0'
12- compile ' ch.acra:acra:4.7.0'
13- compile ' org.mediawiki:api:1.3'
14- compile ' commons-codec:commons-codec:1.10'
15- compile ' com.github.pedrovgs:renderers:3.3.3'
16- compile ' com.google.code.gson:gson:2.8.1'
17- compile ' com.jakewharton.timber:timber:4.5.1'
18- compile ' info.debatty:java-string-similarity:0.24'
19- compile (' com.mapbox.mapboxsdk:mapbox-android-sdk:5.1.0@aar' ){
7+ implementation ' com.github.nicolas-raoul:Quadtree:ac16ea8035bf07'
8+ implementation ' fr.avianey.com.viewpagerindicator:library:2.4.1.1@aar'
9+ implementation ' in.yuvi:http.fluent:1.3'
10+ implementation ' com.android.volley:volley:1.0.0'
11+ implementation ' ch.acra:acra:4.7.0'
12+ implementation ' org.mediawiki:api:1.3'
13+ implementation ' commons-codec:commons-codec:1.10'
14+ implementation ' com.github.pedrovgs:renderers:3.3.3'
15+ implementation ' com.google.code.gson:gson:2.8.1'
16+ implementation ' com.jakewharton.timber:timber:4.5.1'
17+ implementation ' info.debatty:java-string-similarity:0.24'
18+ implementation (' com.mapbox.mapboxsdk:mapbox-android-sdk:5.1.0@aar' ){
2019 transitive= true
2120 }
2221
23- compile " com.android.support:support-v4:${ project.supportLibVersion} "
24- compile " com.android.support:appcompat-v7:${ project.supportLibVersion} "
25- compile " com.android.support:design:${ project.supportLibVersion} "
22+ implementation " com.android.support:support-v4:${ project.supportLibVersion} "
23+ implementation " com.android.support:appcompat-v7:${ project.supportLibVersion} "
24+ implementation " com.android.support:design:${ project.supportLibVersion} "
2625
27- compile " com.android.support:cardview-v7:${ project.supportLibVersion} "
26+ implementation " com.android.support:cardview-v7:${ project.supportLibVersion} "
2827
29- compile " com.jakewharton:butterknife:$BUTTERKNIFE_VERSION "
28+ implementation " com.jakewharton:butterknife:$BUTTERKNIFE_VERSION "
3029 annotationProcessor " com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION "
3130
32- compile ' com.squareup.okhttp3:okhttp:3.8.1'
33- compile ' com.squareup.okio:okio:1.13.0'
31+ implementation ' com.squareup.okhttp3:okhttp:3.8.1'
32+ implementation ' com.squareup.okio:okio:1.13.0'
3433
35- compile ' io.reactivex.rxjava2:rxandroid:2.0.1'
34+ implementation ' io.reactivex.rxjava2:rxandroid:2.0.1'
3635 // Because RxAndroid releases are few and far between, it is recommended you also
3736 // explicitly depend on RxJava's latest version for bug fixes and new features.
38- compile ' io.reactivex.rxjava2:rxjava:2.1.2'
39- compile ' com.jakewharton.rxbinding2:rxbinding:2.0.0'
40- compile ' com.jakewharton.rxbinding2:rxbinding-support-v4:2.0.0'
41- compile ' com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.0.0'
42- compile ' com.jakewharton.rxbinding2:rxbinding-design:2.0.0'
37+ implementation ' io.reactivex.rxjava2:rxjava:2.1.2'
38+ implementation ' com.jakewharton.rxbinding2:rxbinding:2.0.0'
39+ implementation ' com.jakewharton.rxbinding2:rxbinding-support-v4:2.0.0'
40+ implementation ' com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.0.0'
41+ implementation ' com.jakewharton.rxbinding2:rxbinding-design:2.0.0'
4342
44- compile ' com.facebook.fresco:fresco:1.3.0'
45- compile ' com.facebook.stetho:stetho:1.5.0'
43+ implementation ' com.facebook.fresco:fresco:1.3.0'
44+ implementation ' com.facebook.stetho:stetho:1.5.0'
4645
47- testCompile ' junit:junit:4.12'
48- testCompile ' org.robolectric:robolectric:3.4'
46+ testImplementation ' junit:junit:4.12'
47+ testImplementation ' org.robolectric:robolectric:3.4'
4948
50- testCompile ' com.squareup.okhttp3:mockwebserver:3.8.1'
51- androidTestCompile ' com.squareup.okhttp3:mockwebserver:3.8.1'
52- androidTestCompile " com.android.support:support-annotations:${ project.supportLibVersion} "
53- androidTestCompile ' com.android.support.test.espresso:espresso-core:3.0.1'
49+ testImplementation ' com.squareup.okhttp3:mockwebserver:3.8.1'
50+ androidTestImplementation ' com.squareup.okhttp3:mockwebserver:3.8.1'
51+ androidTestImplementation " com.android.support:support-annotations:${ project.supportLibVersion} "
52+ androidTestImplementation ' com.android.support.test.espresso:espresso-core:3.0.1'
5453
5554 debugCompile ' com.squareup.leakcanary:leakcanary-android:1.5.1'
5655 releaseCompile ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
@@ -83,6 +82,7 @@ android {
8382 }
8483 }
8584
85+ flavorDimensions ' tier'
8686 productFlavors {
8787 prod {
8888 buildConfigField " String" , " WIKIMEDIA_API_HOST" , " \" https://commons.wikimedia.org/w/api.php\" "
@@ -94,6 +94,7 @@ android {
9494 buildConfigField " String" , " EVENTLOG_WIKI" , " \" commonswiki\" "
9595 buildConfigField " String" , " SIGNUP_LANDING_URL" , " \" https://commons.m.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page&returntoquery=welcome%3Dyes\" "
9696 buildConfigField " String" , " SIGNUP_SUCCESS_REDIRECTION_URL" , " \" https://commons.m.wikimedia.org/w/index.php?title=Main_Page&welcome=yes\" "
97+ dimension ' tier'
9798 }
9899
99100 beta {
@@ -107,6 +108,7 @@ android {
107108 buildConfigField " String" , " EVENTLOG_WIKI" , " \" commonswiki\" "
108109 buildConfigField " String" , " SIGNUP_LANDING_URL" , " \" https://commons.m.wikimedia.beta.wmflabs.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page&returntoquery=welcome%3Dyes\" "
109110 buildConfigField " String" , " SIGNUP_SUCCESS_REDIRECTION_URL" , " \" https://commons.m.wikimedia.beta.wmflabs.org/w/index.php?title=Main_Page&welcome=yes\" "
111+ dimension ' tier'
110112 }
111113 }
112114
@@ -125,4 +127,5 @@ android {
125127 configurations. all {
126128 resolutionStrategy. force ' com.android.support:support-annotations:25.2.0'
127129 }
130+ buildToolsVersion buildToolsVersion
128131}
0 commit comments