bryankeltonadams
06/08/2024, 5:06 AMPablichjenkov
06/08/2024, 5:48 AMflavors
or targets
doesn't seem to be supported just yet. However, gradle is really good at switching modules and with proper abstraction you can leverage that to conditionally include modules in your build.
So you can have 2 modules that offer the same functionality and select one of them to a specific build base on some build properties.
That's basically what flavors are or even better.Pablichjenkov
06/08/2024, 5:51 AMBlaž Vantur
06/10/2024, 5:52 AMPablichjenkov
06/10/2024, 7:04 AMbuild-config
file that brings these properties using a Gradle task which does a request to your company app builds management systemBlaž Vantur
06/10/2024, 7:09 AMPablichjenkov
06/10/2024, 7:39 AMdistribution/consumption
is easier.Pablichjenkov
06/10/2024, 7:47 AMBlaž Vantur
06/10/2024, 8:12 AMPablichjenkov
06/10/2024, 8:24 AMflavor
approach doesn't scale well when you have many small features.
Flavors are good for 1 or 2 dimensions that represent a wide difference between the 2 produced Apps. Like the case of style.
For more granular features, it is better to use the plug-in
modular approach.