diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index 8e58a01..e3c87f3 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -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) }