-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle.kts
58 lines (53 loc) · 1.87 KB
/
build.gradle.kts
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
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("artifact-deploy")
}
android {
namespace = "com.arcgismaps.toolkit.indoors"
compileSdk = libs.versions.compileSdk.get().toInt()
defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}
buildTypes {
release {
isMinifyEnabled = false
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
@Suppress("UnstableApiUsage")
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidxComposeCompiler.get()
}
// If this were not an android project, we would just write `explicitApi()` in the Kotlin scope.
// but as an android project could write `freeCompilerArgs = listOf("-Xexplicit-api=strict")`
// in the kotlinOptions above, but that would enforce api rules on the test code, which we don't want.
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
if ("Test" !in name) {
kotlinOptions.freeCompilerArgs += "-Xexplicit-api=strict"
}
}
}
dependencies {
api(arcgis.mapsSdk)
implementation(libs.bundles.composeCore)
implementation(libs.bundles.core)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(libs.androidx.lifecycle.runtime.compose)
implementation(libs.androidx.activity.compose)
testImplementation(libs.bundles.unitTest)
androidTestImplementation(libs.bundles.composeTest)
androidTestImplementation(project(mapOf("path" to ":composable-map")))
debugImplementation(libs.bundles.debug)
}