❓ Keen to hear anyone's experiences of supporting multiple Android 'platforms' with Kotlin Multiplatform
I have a need to support iOS and Android (via KMM 👍), while I also need to have two major Android variants based on the hardware I will be deploying on...
Conceptually this could be supported with multiple
android(...)
platform entries in the
multiplatform
plugin, but have heard this is unsupported or problematic at the moment. Is it recommended to use Androids own flavour/dimensions instead? Does this Android feature play nicely with
multiplatform
source folders?
v
Vojtěch Pešek
06/23/2022, 7:02 AM
we have multiplatform project as a module in android and in android we have 3 different flavours. For example we have GooglePlay, AppGallery and APK flavour. That works ok.
👍 1
m
Mustafa Ozhan
06/25/2022, 1:15 PM
Yes i go with flavours also, for the purpose of huawei and google
d
darkmoon_uk
06/25/2022, 11:11 PM
Thank you @Vojtěch Pešek and @Mustafa Ozhan for confirming this approach. If I can ask, in your setups; does this still result in a single-level of source-set folders with
multiplatform
and flavours 'working together' to contribute to the folder names e.g. something like: