sushma nayak

    sushma nayak

    1 year ago
    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.
    Derek Ellis

    Derek Ellis

    1 year ago
    You could use a library like BuildKonfig to set a flag for different environments?
    Big Chungus

    Big Chungus

    1 year ago
    Expect actual from shared code into platform specific resource loading apis (e.g. java properties on jvm)
    m

    MarkRS

    1 year ago
    I've set up flavors for different environments and defined the different settings (scheme, host, path) as strings