mirror of
https://github.com/square/okhttp.git
synced 2026-01-12 10:23:16 +03:00
Resolve local.properties in a VS Code safe way (#9144)
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -17,6 +17,8 @@ pom.xml.*
|
||||
release.properties
|
||||
local.properties
|
||||
|
||||
.vscode
|
||||
|
||||
.idea
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
@@ -58,7 +58,7 @@ project(":okhttp-logging-interceptor").name = "logging-interceptor"
|
||||
|
||||
val androidHome = System.getenv("ANDROID_HOME")
|
||||
val localProperties = Properties().apply {
|
||||
val file = File("local.properties")
|
||||
val file = rootProject.projectDir.resolve("local.properties")
|
||||
if (file.exists()) {
|
||||
load(file.inputStream())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user