Skip to content

Commit

Permalink
fix: nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
storytellerF committed Feb 16, 2025
1 parent 8e1f4e2 commit 02a5a5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,12 @@ buildkonfig {
if (file.exists())
load(FileInputStream(file))
}
val serverUrl = properties["SERVER_URL"] as String
val wsServerUrl = properties["WS_SERVER_URL"] as String
val serverUrl = properties["SERVER_URL"] as? String
val wsServerUrl = properties["WS_SERVER_URL"] as? String
defaultConfigs {
buildConfigField(STRING, "PROJECT_PATH", layout.projectDirectory.asFile.absolutePath, const = true)
buildConfigField(STRING, "SERVER_URL", serverUrl, const = true)
buildConfigField(STRING, "WS_SERVER_URL", wsServerUrl, const = true)
buildConfigField(STRING, "SERVER_URL", serverUrl ?: "", const = true)
buildConfigField(STRING, "WS_SERVER_URL", wsServerUrl ?: "", const = true)
buildConfigField(BOOLEAN, "IS_PROD", isProd.toString(), const = true)
buildConfigField(STRING, "FLAVOR", flavorStr, const = true)
}
Expand Down

0 comments on commit 02a5a5e

Please sign in to comment.