/* * This file was generated by the Gradle 'init' task. */ rootProject.name = "aws-crt" include(":native") project(":native").projectDir = File("${settingsDir}/src/native") val localPropertiesFile = File(rootProject.projectDir, "local.properties") val localProperties = java.util.Properties() if (localPropertiesFile.exists()) { localProperties.load(localPropertiesFile.inputStream()) } val androidHomeSet = System.getenv().containsKey("ANDROID_HOME") || localProperties.containsKey("sdk.dir") if (androidHomeSet) { val androidHome = System.getenv()["ANDROID_HOME"] ?: localProperties.getProperty("sdk.dir") println("Android home: $androidHome") includeBuild("./android") }else { logger.warn("Android SDK dir not set, android build disabled. Define location with `sdk.dir` in local.properties file or with `ANDROID_HOME` environment variable ") }