Skip to content

Commit 3adb5d8

Browse files
author
maskara
committed
Update Gradle plugin to 3.0
1 parent 6909ccf commit 3adb5d8

File tree

5 files changed

+44
-38
lines changed

5 files changed

+44
-38
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ android:
1919
components:
2020
- tools
2121
- platform-tools
22-
- build-tools-26.0.1
22+
- build-tools-26.0.2
2323
- extra-google-m2repository
2424
- extra-android-m2repository
2525
- ${ANDROID_TARGET}

app/build.gradle

+37-34
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,55 @@
11
apply plugin: 'com.android.application'
2-
apply plugin: 'me.tatarka.retrolambda'
32
apply plugin: 'jacoco-android'
43
apply from: 'quality.gradle'
54
apply plugin: 'com.getkeepsafe.dexcount'
65

76
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'){
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
}

build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ buildscript {
33
repositories {
44
jcenter()
55
mavenCentral()
6+
google()
67
}
78
dependencies {
89
classpath "com.android.tools.build:gradle:${project.gradleVersion}"
@@ -17,5 +18,6 @@ allprojects {
1718
jcenter()
1819
maven { url "https://jitpack.io" }
1920
maven { url "https://maven.google.com" }
21+
google()
2022
}
2123
}

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
gradleVersion = 2.3.3
1+
gradleVersion = 3.0.0
22

33
supportLibVersion = 26.1.0
44

55
compileSdkVersion = android-26
6-
buildToolsVersion = 26.0.1
6+
buildToolsVersion = 26.0.2
77

88
minSdkVersion = 15
99

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Thu Nov 02 02:18:35 IST 2017
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
34
zipStoreBase=GRADLE_USER_HOME
45
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0.1-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

0 commit comments

Comments
 (0)