Hello, I was thinking what will be the best approa...
# multiplatform
j
Hello, I was thinking what will be the best approach to configure API base urls for different
buildTypes
in KMM project? In a plain android project (without KMM) I could have a different base urls written inside app
build.gradle
and then I can access that values from code for ex:
BuildConfig.BaseUrl
so how to achieve similar behaviour for KMM shared module? as I know I can't access buildConfig from that module.
should I pass the url from app module to the shared module?
m
if you need in shared module then this is the library to go: https://github.com/yshrsmz/BuildKonfig
j
thanks will check it 🙌