Why are these files being created in the Android APK?
Our real localization files are in assets/locale and we have 8 of them. However there are 4 other json files that are not in our source folder ANYWHERE. How can they be getting in the final APK? Any ideas? Is it coming from some 3rd party library perhaps?
From APK explorer:
en.jsonen-US.jsonar.jsonar-DZ.json
{
"test": "test",
"day": {
"zero": "{} days",
"one": "{} day",
"two": "{} days",
"few": "{} few days",
"many": "{} many days",
"other": "{} other days"
},
"hat": {
"zero": "no hats",
"one": "one hat",
"two": "two hats",
"few": "few hats",
"many": "many hats",
"other": "other hats"
},
"hat_other": {
"other": "other hats"
}
}
They are part of easy_localization's code for some reason:
https://github.com/aissat/easy_localization/tree/develop/i18n
Good find! and referenced here: https://github.com/aissat/easy_localization/blob/develop/pubspec.yaml
and that's why they get packaged. I propose removing this from that file:
flutter:
assets:
- i18n/
Why would that be needed?
I did an experiment and the files are needed for easy_localization_widget_test.dart apparently. Too bad they are packaged in the final distributed build.