I have an app with multiple flavours. Assets are flavour-specific, and I'm looking for a way to filter out the assets that don't apply for the current flavour. The current structure looks like
assets
flavour1
image.jpg
flavour2
image.jpg
In other words, how do I make sure that when I compile flavour1 the assets folder gets truncated down to
assets
flavour1
image.jpg
This must work since flutter released this : https://docs.flutter.dev/deployment/flavors#conditionally-bundling-assets-based-on-flavor
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With