https://kotlinlang.org logo
d

deviant

03/31/2021, 12:49 PM
hi guys! how you manage build flavors/variants in KMM projects? particularly multi dimensional flavors e.g. "staging/debug", "free/enterprise" etc
t

Tomasz Krakowiak

03/31/2021, 12:58 PM
I am working on some platform, that support multiple modules implementing single SPI. I have 2 implementations of backend - cloud and standalone. Cloud is used for production and standalone is used for development on modules. Cloud implementation has dependencies on DB, JMS, etc... while standalone version keeps everything in memory. I recommend keeping free/enterprise variants as separate modules or even projects with shared core. Regarding staging/debug I am not sure what you mean.
d

deviant

03/31/2021, 1:02 PM
staging/release sorry 🙂 in our current android application we have lot of dimensions. some of them have own business logic, some just distinct by resources, or pre-configuration/secrets. since KMM don't support android flavors we are trying to find a proper KMM replacement that will satisfy both android/ios teams
e

Eirik Vale Aase

03/31/2021, 1:07 PM
d

deviant

03/31/2021, 1:08 PM
yeah considering this one too. not sure yet if it's suitable enough
👍 1
24 Views