-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathbuild.gradle.kts
61 lines (51 loc) · 1.81 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
59
60
61
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("com.android.library")
id("kotlin-android")
id("android-defaults")
id("android-ui-tests")
id("published")
}
android {
buildFeatures.compose = true
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}
namespace = "com.squareup.workflow1.ui.compose"
testNamespace = "$namespace.test"
}
tasks.withType<KotlinCompile> {
kotlinOptions {
@Suppress("SuspiciousCollectionReassignment")
freeCompilerArgs += listOf(
"-opt-in=kotlin.RequiresOptIn"
)
}
}
dependencies {
val composeBom = platform(libs.androidx.compose.bom)
androidTestImplementation(libs.androidx.activity.core)
androidTestImplementation(composeBom)
androidTestImplementation(libs.androidx.compose.foundation)
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
androidTestImplementation(libs.androidx.test.core)
androidTestImplementation(libs.androidx.test.truth)
androidTestImplementation(libs.kotlin.test.jdk)
androidTestImplementation(project(":workflow-ui:internal-testing-compose"))
api(libs.androidx.compose.runtime)
api(libs.kotlin.common)
api(project(":workflow-ui:core-android"))
api(project(":workflow-ui:core-common"))
implementation(composeBom)
implementation(libs.androidx.activity.compose)
implementation(libs.androidx.compose.foundation.layout)
implementation(libs.androidx.compose.runtime.saveable)
implementation(libs.androidx.compose.ui)
implementation(libs.androidx.lifecycle.common)
implementation(libs.androidx.lifecycle.compose)
implementation(libs.androidx.lifecycle.core)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.squareup.okio)
implementation(project(":workflow-core"))
implementation(project(":workflow-runtime"))
}