Skip to content

Commit 6d14ca0

Browse files
committed
- Initial commit
1 parent eda9a58 commit 6d14ca0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ if (localPropertiesFile.exists()) {
1111
localProperties.load(localPropertiesFile.inputStream())
1212
}
1313

14-
val sdkDir: String by extra(localProperties.getProperty("sdk.dir"))
14+
val sdkDir: String by extra(
15+
localProperties.getProperty("sdk.dir")
16+
?: System.getenv("ANDROID_HOME")
17+
?: System.getenv("ANDROID_SDK_ROOT")
18+
?: ""
19+
)
1520

1621
fun String.execute(currentWorkingDir: File = file("./")): String {
1722
val byteOut = ByteArrayOutputStream()

0 commit comments

Comments
 (0)