-
Notifications
You must be signed in to change notification settings - Fork 320
Expand file tree
/
Copy pathbuild.gradle
More file actions
89 lines (76 loc) · 3.27 KB
/
build.gradle
File metadata and controls
89 lines (76 loc) · 3.27 KB
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
87
88
89
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-parcelize'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'com.jaredsburrows.license'
apply plugin: 'com.mapbox.android.sdk.versions'
apply from: "${rootDir}/gradle/ktlint.gradle"
apply from: file("${rootDir}/gradle/artifact-settings.gradle")
apply from: "${rootDir}/gradle/kdoc-settings.gradle"
version = project.ext.versionName
group = project.ext.mapboxArtifactGroupId
android {
compileSdkVersion androidVersions.compileSdkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
defaultConfig {
minSdkVersion androidVersions.carMinSdkVersion
targetSdkVersion androidVersions.targetSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard-rules.pro', "${rootDir}/proguard/proguard-project.pro"
}
testOptions {
unitTests.returnDefaultValues = true
unitTests.includeAndroidResources = true
}
}
dependencies {
// Includes a version of the Mapbox Android Auto extension. This library also includes the
// Jetpack car library.
api(dependenciesList.mapboxMapsAndroidAuto)
// This defines the minimum version of Maps, Navigation, and Search which are included in
// this SDK. To upgrade the SDK versions, you can specify a newer version in your downstream
// build.gradle.
def carNavVersion = "2.8.0-rc.1"
def carSearchVersion = "1.0.0-beta.36"
api("com.mapbox.search:mapbox-search-android:${carSearchVersion}")
// TODO use the carNavVersion when 2.9.0-alpha.2 is available
api(project(":libnavigation-android"))
// api("com.mapbox.navigation:android:${carNavVersion}")
implementation(dependenciesList.androidXAppCompat)
implementation(dependenciesList.coroutinesCore)
implementation(dependenciesList.androidXLifecycleRuntime)
implementation(dependenciesList.androidXLifecycleLivedata)
implementation(dependenciesList.androidXConstraintLayout)
implementation(dependenciesList.kotlinStdLib)
implementation(dependenciesList.coroutinesAndroid)
implementation(dependenciesList.glide)
apply from: "${rootDir}/gradle/unit-testing-dependencies.gradle"
testImplementation(project(':libtesting-utils'))
testImplementation(dependenciesList.androidXArchCoreTesting)
testImplementation(dependenciesList.androidXLifecycleTesting)
// Needed for the instrumentation tests in the androidTest module
androidTestImplementation(dependenciesList.testRunner)
androidTestImplementation(dependenciesList.testRules)
androidTestImplementation(dependenciesList.androidxTestCore)
androidTestImplementation(dependenciesList.mockkAndroid)
}
dokkaHtmlPartial {
outputDirectory.set(kdocPath)
moduleName.set("UI Car")
dokkaSourceSets {
configureEach {
reportUndocumented.set(true)
perPackageOption {
matchingRegex.set("com.mapbox.androidauto.internal.*")
suppress.set(true)
}
}
}
}
apply from: "${rootDir}/gradle/track-public-apis.gradle"
apply from: "${rootDir}/gradle/jacoco.gradle"
apply from: "${rootDir}/gradle/publish.gradle"