-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathbuild.gradle
53 lines (45 loc) · 1.19 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
import app.cash.redwood.buildsupport.FlexboxHelpers
import static app.cash.redwood.buildsupport.TargetGroup.ToolkitComposeUi
redwoodBuild {
targets(ToolkitComposeUi)
composeCompiler()
publishing()
}
apply plugin: 'org.jetbrains.kotlin.plugin.serialization'
apply plugin: 'app.cash.paparazzi'
kotlin {
sourceSets {
commonMain {
kotlin.srcDir(FlexboxHelpers.get(tasks, 'app.cash.redwood.layout.composeui').get())
dependencies {
api projects.redwoodLayoutWidget
implementation projects.redwoodWidgetCompose
implementation projects.redwoodYoga
implementation libs.jetbrains.compose.foundation
}
}
androidUnitTest {
dependencies {
implementation projects.redwoodLayoutSharedTest
implementation libs.testParameterInjector
}
}
}
}
android {
namespace 'app.cash.redwood.layout.composeui'
buildFeatures {
// For Paparazzi, which internally uses resources to set itself up.
androidResources = true
}
}
afterEvaluate {
spotless {
kotlin {
targetExclude(
// Apache 2-licensed file from AOSP.
"src/commonMain/kotlin/app/cash/redwood/layout/composeui/Box.kt",
)
}
}
}