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
Derek Ellis
04/23/2021, 5:23 PM
You could use a library like BuildKonfig to set a flag for different environments?
b
Big Chungus
04/23/2021, 7:52 PM
Expect actual from shared code into platform specific resource loading apis (e.g. java properties on jvm)
m
MarkRS
04/28/2021, 2:32 PM
I've set up flavors for different environments and defined the different settings (scheme, host, path) as strings