Skip to content

Commit

Permalink
check env exists
Browse files Browse the repository at this point in the history
  • Loading branch information
storytellerF committed Feb 16, 2025
1 parent d4f439b commit 346bd0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ buildkonfig {
objectName = "AppConfig"
val properties = Properties().apply {
val file = layout.projectDirectory.file("../${flavorStr}.env").asFile
load(FileInputStream(file))
if (file.exists())
load(FileInputStream(file))
}
val serverUrl = properties["SERVER_URL"] as String
val wsServerUrl = properties["WS_SERVER_URL"] as String
Expand Down

0 comments on commit 346bd0a

Please sign in to comment.