1 /* 2 * This file was generated by the Gradle 'init' task. 3 */ 4 5 rootProject.name = "aws-crt" 6 7 include(":native") 8 project(":native").projectDir = File("${settingsDir}/src/native") 9 10 11 val localPropertiesFile = File(rootProject.projectDir, "local.properties") 12 val localProperties = java.util.Properties() 13 if (localPropertiesFile.exists()) { 14 localProperties.load(localPropertiesFile.inputStream()) 15 } 16 17 val androidHomeSet = System.getenv().containsKey("ANDROID_HOME") || localProperties.containsKey("sdk.dir") 18 if (androidHomeSet) { 19 val androidHome = System.getenv()["ANDROID_HOME"] ?: localProperties.getProperty("sdk.dir") 20 println("Android home: $androidHome") 21 includeBuild("./android") 22 }else { 23 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 ") 24 } 25