-
Notifications
You must be signed in to change notification settings - Fork 65
/
build.gradle.kts
53 lines (47 loc) · 1.29 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
// Copyright (C) 2024 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
// Copyright (C) 2022 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
plugins {
alias(libs.plugins.agp.library)
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.compose)
alias(libs.plugins.mavenPublish)
alias(libs.plugins.baselineprofile)
}
kotlin {
// region KMP Targets
androidTarget { publishLibraryVariants("release") }
jvm()
iosX64()
iosArm64()
iosSimulatorArm64()
js(IR) {
moduleName = property("POM_ARTIFACT_ID").toString()
browser()
}
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
moduleName = property("POM_ARTIFACT_ID").toString()
browser()
}
// endregion
sourceSets {
commonMain {
dependencies {
api(libs.compose.runtime)
api(projects.circuitRuntime)
api(projects.circuitRuntimeScreen)
}
}
}
}
android { namespace = "com.slack.circuit.runtime.presenter" }
androidComponents { beforeVariants { variant -> variant.androidTest.enable = false } }
baselineProfile {
mergeIntoMain = true
saveInSrc = true
from(projects.samples.star.benchmark.dependencyProject)
filter { include("com.slack.circuit.runtime.presenter.**") }
}