-
Notifications
You must be signed in to change notification settings - Fork 89
/
build.gradle.kts
30 lines (27 loc) · 988 Bytes
/
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
import org.jetbrains.compose.ComposeExtension
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
}
tasks.register("setupCredentials") {
fun File.writeEnv(name: String) {
parentFile.mkdirs()
writeText(System.getenv(name))
}
doLast {
if (System.getenv("CI")?.isNotEmpty() == true) {
println("setting up google services...")
file("backend/datastore/src/jvmMain/resources/gcp_service_account_key.json").writeEnv("GOOGLE_SERVICES_JSON")
file("backend/service-graphql/src/main/resources/firebase_service_account_key.json").writeEnv("FIREBASE_SERVICES_JSON")
file("backend/service-graphql/src/main/resources/apollo.key").writeEnv("APOLLO_KEY")
}
}
}
tasks.register("quickChecks") {
dependsOn(
":backend:service-graphql:build",
":backend:service-import:build",
":androidApp:assembleDebug",
":wearApp:assembleDebug",
":wearApp:assembleDebugAndroidTest",
)
}