Skip to content

Commit de8ddcb

Browse files
committed
Don't make local.properties required
1 parent df2b75e commit de8ddcb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

demos/supabase-todolist/shared/build.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,9 @@ android {
9999

100100
val localProperties =
101101
Properties().apply {
102-
try {
103-
load(parent!!.file("local.properties").reader())
104-
} catch (ignored: java.io.IOException) {
105-
throw Error("local.properties file not found")
102+
val localPropertiesFile = parent!!.file("local.properties")
103+
if (localPropertiesFile.exists()) {
104+
localPropertiesFile.inputStream().use { load(it) }
106105
}
107106
}
108107

0 commit comments

Comments
 (0)