-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
86 lines (69 loc) · 2.33 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply plugin: 'jacoco'
version '0.10.8-SNAPSHOT'
project.version = this.version
jacoco {
toolVersion = jacocoVersion
}
android {
namespace "io.ona.kujaku.utils"
compileSdk rootProject.ext.compileSdkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
minSdkVersion 21
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName this.version
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
// See bug https://github.com/vanniktech/gradle-android-junit-jacoco-plugin/issues/183
testCoverageEnabled true
}
}
lintOptions {
abortOnError false
}
}
dependencies {
androidTestImplementation ('androidx.test.espresso:espresso-core:3.6.1', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.cocoahero.android:geojson:1.0.1@jar'
implementation (mapboxSDK) {
transitive = true
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.android.support', module: 'support-fragment'
}
// The local build has an issue fetching this library for some reason which
// is a dependency of the mapbox-android-sdk. The mapbox-sdk-turf is declared as
// a runtime dependency
implementation mapboxSDKTurf
implementation mapboxStyleEx
implementation mapboxLocation
implementation mapboxGestures
//implementation mapboxAnnotationPlugin
testImplementation junit
testImplementation robolectric
testImplementation 'org.skyscreamer:jsonassert:1.5.3'
}
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*']
}
task printTasks {
System.out.println("Jacoco version ${jacoco.toolVersion}")
}
// Add github packages, maven-central and sonatype publishing
apply from: '../publish.gradle'
apply from: '../jacoco-report.gradle'