Improve WASM client reusability

This commit is contained in:
2026-08-24 18:17:37 +02:00
parent 223ec3b886
commit 8928446444
5 changed files with 84 additions and 15 deletions
-12
View File
@@ -154,16 +154,4 @@ fun envValue(key: String): String? {
}
.firstOrNull { it.first == key }?.second
}
}
buildConfig {
sourceSets.getByName("wasmJsMain") {
val serverUrl = envValue("WASM_SERVER_URL") ?:
throw GradleException("MISSING CONFIGURATION: WASM_SERVER_URL. Please set it as environment variable or `.env` variable.")
className("WasmConfig")
packageName("com.jaytux.phoebench.clients")
useKotlinOutput()
buildConfigField("SERVER_URL", serverUrl)
}
}