forked from ACINQ/phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
29 lines (24 loc) · 999 Bytes
/
settings.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
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
rootProject.name = "phoenix"
// Android apps (legacy and kmm) may be skipped to make life easier on iOS developers.
// Use `skip.android` in `local.properties` to define whether android app are built or not.
// By default, Android apps are NOT skipped.
val skipAndroid = File("$rootDir/local.properties").takeIf { it.exists() }
?.inputStream()?.use { java.util.Properties().apply { load(it) } }
?.run { getProperty("skip.android", "false")?.toBoolean() }
?: false
// Inject the skip value in System properties so that it can be used in other gradle build files.
System.setProperty("includeAndroid", (!skipAndroid).toString())
// The shared app is always included.
include(":phoenix-shared")
// Android apps are optional.
if (!skipAndroid) {
include(":phoenix-android")
include(":phoenix-legacy")
}