'can we exclude a particular file alone while building apk in flutter
There is 2 product flavour in my project and i do not want some files to be added while building the .apk or app bundle and the below solution is not working .
android {
packagingOptions {
exclude 'lib/widgets/hotel.dart'
exclude 'lib/widgets/hotel_list_view.dart'
exclude 'lib/widgets/hotel_list_data.dart'
exclude 'lib/widgets/smooth_star_rating.dart'
}
}
Solution 1:[1]
You do not need to worry about that the files which are not used will automatically removed from the code
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ekko ecbee |
