forked from mapbox/mapbox-navigation-android-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (72 loc) · 2.78 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
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.mapbox.maps.token'
apply from: "${rootDir}/gradle/script-git-version.gradle"
apply from: "${rootDir}/gradle/ktlint.gradle"
android {
compileSdkVersion 33
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "com.mapbox.navigation.examples.preview"
minSdkVersion 21
targetSdkVersion 33
versionCode gitNumberOfCommits
versionName gitTagDescription
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments clearPackageData: 'true'
vectorDrawables.useSupportLibrary = true
}
testOptions {
execution 'ANDROIDX_TEST_ORCHESTRATOR'
}
buildTypes {
debug {
testCoverageEnabled = false
manifestPlaceholders = [enableCrashReporting: "false"]
}
release {
minifyEnabled true
manifestPlaceholders = [enableCrashReporting: "true"]
}
}
lintOptions {
abortOnError false
}
buildFeatures {
viewBinding true
}
sourceSets {
main {
def srcDirs = file("$projectDir/src/main/java/com/mapbox/navigation/examples/preview")
.listFiles({ it.isDirectory() } as FileFilter)
.collect { it.name }
res.srcDirs = ['src/main/res']
srcDirs.forEach {
res.srcDirs += 'src/main/java/com/mapbox/navigation/examples/preview/' + it + '/res'
}
}
}
}
dependencies {
// Mapbox Navigation SDK
implementation "com.mapbox.navigationcore:copilot:3.0.2"
implementation "com.mapbox.navigationcore:android:3.0.2"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.21"
implementation "androidx.core:core-ktx:1.9.0"
implementation "com.google.android.material:material:1.7.0"
implementation "androidx.appcompat:appcompat:1.5.1"
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation "com.google.android.gms:play-services-location:20.0.0"
implementation "com.squareup.leakcanary:leakcanary-android:2.9.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
}