Hi Group, was wondering if anyone can point me in ...
# multiplatform
d
Hi Group, was wondering if anyone can point me in the right direction. I have a multiplatform app but I wish to make different versions so as to be able to change the icons, theming, and text for the Android, iOS and desktop, similar to what we would of done with buildTypes and flavors in Android. I have read a bit that this can be done using modules and Gradle but my Gradle knowledge is limited. If anyone has a good example or documentation on how I could accomplish it would be very much appreciated, thanks.
To switch between themes change the value of
Copy code
# Flavor
flavorProvider=A
or
Copy code
# Flavor
flavorProvider=B
in
gradle.properties
file.
d
Hey @Pablichjenkov thank you for this, it looks good and what I have been looking for 👍
👍 1
p
The key element here is the classes and functions that you access from composeApp module, they have to be declared in the same package name in all the different modules.
d
Hi @Pablichjenkov, I have been working on it here and you are spot on, I have mirrored the packages and classes as needed. I have managed to build different flavors of the app now with different logos and theming so thank you again for pointing me in the right direction.
🎉 1