Skip to content

Commit f604e78

Browse files
committed
Merge pull request commons-app#411 from domdomegg/update-gradle
2 parents b157d4b + 6c70318 commit f604e78

File tree

5 files changed

+25
-23
lines changed

5 files changed

+25
-23
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ android:
33
components:
44
- platform-tools
55
- tools
6-
- build-tools-25.0.0
6+
- build-tools-25.0.1
77
- extra-google-m2repository
88
- extra-android-m2repository
9-
- android-23
9+
- android-25
1010
- sys-img-x86-android-18
1111
jdk:
1212
# - openjdk8 # not yet available

app/build.gradle

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,24 @@ dependencies {
1212
compile 'ch.acra:acra:4.7.0'
1313
compile 'org.mediawiki:api:1.3'
1414
compile 'commons-codec:commons-codec:1.10'
15-
compile 'com.android.support:support-v4:25.0.0'
16-
compile 'com.android.support:appcompat-v7:25.0.0'
17-
compile 'com.android.support:design:25.0.0'
15+
compile "com.android.support:support-v4:${project.supportLibVersion}"
16+
compile "com.android.support:appcompat-v7:${project.supportLibVersion}"
17+
compile "com.android.support:design:${project.supportLibVersion}"
18+
compile 'com.google.code.gson:gson:2.7'
1819

1920
testCompile 'junit:junit:4.12'
20-
21-
//noinspection GradleDependency - old version has required feature
22-
compile 'com.google.code.gson:gson:1.4'
2321
}
2422

2523
android {
26-
compileSdkVersion 23
27-
buildToolsVersion '25'
24+
compileSdkVersion project.compileSdkVersion
25+
buildToolsVersion project.buildToolsVersion
2826

29-
useLibrary 'org.apache.http.legacy'
27+
useLibrary 'org.apache.http.legacy'
3028

3129
defaultConfig {
32-
applicationId "fr.free.nrw.commons"
33-
minSdkVersion 15
34-
targetSdkVersion 23
35-
36-
ndk {
37-
moduleName "libtranscode"
38-
}
30+
applicationId 'fr.free.nrw.commons'
31+
minSdkVersion project.minSdkVersion
32+
targetSdkVersion project.targetSdkVersion
3933
}
4034

4135
buildTypes {
@@ -50,4 +44,4 @@ android {
5044
disable 'ExtraTranslation'
5145
abortOnError false
5246
}
53-
}
47+
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
mavenCentral()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.3'
8+
classpath "com.android.tools.build:gradle:${project.gradleVersion}"
99
}
1010
}
1111

gradle.properties

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
android.useDeprecatedNdk=true
1+
gradleVersion = 2.3.0
2+
3+
supportLibVersion = 25.2.0
4+
5+
compileSdkVersion = android-25
6+
buildToolsVersion = 25.0.1
7+
8+
minSdkVersion = 15
9+
targetSdkVersion = 25
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Aug 17 16:02:52 NZST 2016
1+
#Wed Mar 08 18:04:14 GMT 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=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

0 commit comments

Comments
 (0)