1
0
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:
Yuri Schimke
2025-10-11 10:17:37 +01:00
committed by GitHub
parent a480881021
commit fdbbdbdb50
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@@ -17,6 +17,8 @@ pom.xml.*
release.properties
local.properties
.vscode
.idea
*.iml
*.ipr

View File

@@ -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())
}