Skip to content

Commit 3c616b0

Browse files
committed
Update Gradle notation for dependencies and plugins
* don't let the build fail on linter issues * update gradle build tools, slf4j for Android and OSMDroid
1 parent fff913d commit 3c616b0

2 files changed

Lines changed: 21 additions & 14 deletions

File tree

app/build.gradle

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
apply plugin: 'com.android.application'
1+
plugins {
2+
id 'com.android.application'
3+
}
24

35
android {
46
compileSdkVersion 16
5-
buildToolsVersion "22.0.1"
7+
buildToolsVersion "27.0.3"
68

79
defaultConfig {
810
applicationId "me.guillaumin.android.osmtracker"
911
minSdkVersion 8
1012
targetSdkVersion 16
13+
multiDexEnabled true
1114

1215
testApplicationId "me.guillaumin.android.osmtracker.test"
1316
testInstrumentationRunner "android.test.InstrumentationTestRunner"
1417
}
1518

1619
signingConfigs {
17-
18-
1920
// Create a file $HOME/.gradle/gradle.properties
2021
// containing the values signing.storeFile=..., etc.
2122
if (project.hasProperty('signing.storeFile')) {
@@ -41,21 +42,25 @@ android {
4142
}
4243

4344
packagingOptions {
45+
exclude 'META-INF/DEPENDENCIES'
4446
exclude 'META-INF/LICENSE.txt'
4547
exclude 'META-INF/NOTICE.txt'
4648
}
47-
49+
android {
50+
lintOptions {
51+
abortOnError false
52+
}
53+
}
4854
}
4955

5056
dependencies {
51-
compile 'org.apache.james:apache-mime4j-core:0.7.2'
52-
compile 'org.apache.httpcomponents:httpclient:4.2.1'
53-
compile 'org.apache.httpcomponents:httpcore:4.2.1'
54-
compile 'org.apache.httpcomponents:httpmime:4.2.1'
55-
compile 'org.osmdroid:osmdroid-android:5.5:release@aar'
56-
compile 'oauth.signpost:signpost-commonshttp4:1.2.1.2'
57-
compile 'oauth.signpost:signpost-core:1.2.1.2'
58-
compile 'org.slf4j:slf4j-android:1.6.1-RC1'
57+
implementation 'org.apache.james:apache-mime4j-core:0.7.2'
58+
implementation 'org.apache.httpcomponents:httpclient:4.2.1'
59+
implementation 'org.apache.httpcomponents:httpcore:4.2.1'
60+
implementation 'org.apache.httpcomponents:httpmime:4.2.1'
61+
implementation 'org.osmdroid:osmdroid-android:5.6.5'
62+
implementation 'oauth.signpost:signpost-commonshttp4:1.2.1.2'
63+
implementation 'org.slf4j:slf4j-android:1.7.25'
5964
}
6065

6166
task copyNorwegianValues(type: Copy) {

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
33
repositories {
4+
google()
45
jcenter()
56
}
67
dependencies {
7-
classpath 'com.android.tools.build:gradle:2.2.2'
8+
classpath 'com.android.tools.build:gradle:3.0.1'
89
}
910
}
1011

1112
allprojects {
1213
repositories {
14+
google()
1315
jcenter()
1416
}
1517
}

0 commit comments

Comments
 (0)