Hi guys, I have ktor set up in my kmm project, and...
# multiplatform
d
Hi guys, I have ktor set up in my kmm project, and was wondering how I could make my API urls configurable, since I want to use a different api url for development compared to when I'm building the app for production. Any tips on how to achieve this?
m
I use build flavours to do this, setting up resource files in the flavours with the different URLs in strings
x
You can configure your api url as a build config field. There’s a BuildConfig multiplatform implementation here https://github.com/yshrsmz/BuildKonfig