1
1
apply plugin : ' com.android.application'
2
- apply plugin : ' me.tatarka.retrolambda'
3
2
apply plugin : ' jacoco-android'
4
3
apply from : ' quality.gradle'
5
4
apply plugin : ' com.getkeepsafe.dexcount'
6
5
7
6
dependencies {
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' ){
20
19
transitive= true
21
20
}
22
21
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} "
26
25
27
- compile " com.android.support:cardview-v7:${ project.supportLibVersion} "
26
+ implementation " com.android.support:cardview-v7:${ project.supportLibVersion} "
28
27
29
- compile " com.jakewharton:butterknife:$BUTTERKNIFE_VERSION "
28
+ implementation " com.jakewharton:butterknife:$BUTTERKNIFE_VERSION "
30
29
annotationProcessor " com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION "
31
30
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'
34
33
35
- compile ' io.reactivex.rxjava2:rxandroid:2.0.1'
34
+ implementation ' io.reactivex.rxjava2:rxandroid:2.0.1'
36
35
// Because RxAndroid releases are few and far between, it is recommended you also
37
36
// 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'
43
42
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'
46
45
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'
49
48
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'
54
53
55
54
debugCompile ' com.squareup.leakcanary:leakcanary-android:1.5.1'
56
55
releaseCompile ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
@@ -83,6 +82,7 @@ android {
83
82
}
84
83
}
85
84
85
+ flavorDimensions ' tier'
86
86
productFlavors {
87
87
prod {
88
88
buildConfigField " String" , " WIKIMEDIA_API_HOST" , " \" https://commons.wikimedia.org/w/api.php\" "
@@ -94,6 +94,7 @@ android {
94
94
buildConfigField " String" , " EVENTLOG_WIKI" , " \" commonswiki\" "
95
95
buildConfigField " String" , " SIGNUP_LANDING_URL" , " \" https://commons.m.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page&returntoquery=welcome%3Dyes\" "
96
96
buildConfigField " String" , " SIGNUP_SUCCESS_REDIRECTION_URL" , " \" https://commons.m.wikimedia.org/w/index.php?title=Main_Page&welcome=yes\" "
97
+ dimension ' tier'
97
98
}
98
99
99
100
beta {
@@ -107,6 +108,7 @@ android {
107
108
buildConfigField " String" , " EVENTLOG_WIKI" , " \" commonswiki\" "
108
109
buildConfigField " String" , " SIGNUP_LANDING_URL" , " \" https://commons.m.wikimedia.beta.wmflabs.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page&returntoquery=welcome%3Dyes\" "
109
110
buildConfigField " String" , " SIGNUP_SUCCESS_REDIRECTION_URL" , " \" https://commons.m.wikimedia.beta.wmflabs.org/w/index.php?title=Main_Page&welcome=yes\" "
111
+ dimension ' tier'
110
112
}
111
113
}
112
114
@@ -125,4 +127,5 @@ android {
125
127
configurations. all {
126
128
resolutionStrategy. force ' com.android.support:support-annotations:25.2.0'
127
129
}
130
+ buildToolsVersion buildToolsVersion
128
131
}
0 commit comments