mirror of
https://github.com/yairm210/Unciv.git
synced 2025-08-03 04:27:56 -04:00

* Do not make android module existence dependent on flaky checks * Update developer documentation * Make android project visible to Gradle Sync V2
24 lines
661 B
Plaintext
24 lines
661 B
Plaintext
import java.util.Properties
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
mavenLocal() // To get the compiler plugin locally
|
|
gradlePluginPortal() // So other plugins can be resolved
|
|
}
|
|
}
|
|
|
|
include("desktop", "core", "tests", "server")
|
|
|
|
private fun getSdkPath(): String? {
|
|
val localProperties = file("local.properties")
|
|
return if (localProperties.exists()) {
|
|
val properties = Properties()
|
|
localProperties.inputStream().use { properties.load(it) }
|
|
|
|
properties.getProperty("sdk.dir") ?: System.getenv("ANDROID_HOME")
|
|
} else {
|
|
System.getenv("ANDROID_HOME")
|
|
}
|
|
}
|
|
if (getSdkPath() != null) include("android")
|