-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (43 loc) · 1.43 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
buildscript {
repositories {
gradlePluginPortal()
mavenLocal()
google()
mavenCentral()
maven(url = "https://jitpack.io")
maven(url = "https://oss.sonatype.org/content/repositories/snapshots/")
}
dependencies {
classpath(libs.agp)
classpath(libs.kotlin.gradle)
classpath(libs.kotlin.serialization.gradle)
classpath(libs.brooklyn.gradle)
classpath(libs.paparazzi.gradle)
classpath(libs.firebase.crashlytics.gradle)
classpath(libs.google.services.gradle)
}
}
Commercial.isCommercialAvailable = file("private").list()?.isNotEmpty() ?: false
subprojects {
plugins.withId("app.cash.paparazzi") {
afterEvaluate {
// https://cashapp.github.io/paparazzi/changelog/#132-2024-01-13
dependencies.constraints {
add("testImplementation", "com.google.guava:guava") {
attributes {
attribute(
TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE,
objects.named(TargetJvmEnvironment::class, TargetJvmEnvironment.STANDARD_JVM)
)
}
because("https://cashapp.github.io/paparazzi/changelog/#132-2024-01-13")
}
}
}
}
}
tasks.register<Delete>("clean") {
doLast {
delete(rootProject.buildDir)
}
}