What's the best way to handle different server env...
# multiplatform
s
What's the best way to handle different server environments (eg. dev, staging, Prod) in KMM. The urls would remain same for both android and iOS apps. Any links for sample projects doing it would be great.. Thanks.
I use Ktor for network requests.
d
You could use a library like BuildKonfig to set a flag for different environments?
b
Expect actual from shared code into platform specific resource loading apis (e.g. java properties on jvm)
m
I've set up flavors for different environments and defined the different settings (scheme, host, path) as strings