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