KingWu/flutter_starter_kit

Should not `lib/generated/` ignored?

mono0926 opened this issue · 3 comments

lib/generated/ is listed in .gitignore.

# Auto generate
lib/generated/

If the app is built by command on CI environment, how to generate the files?
I think it is better to not add lib/generated/ to .gitignore 🤔

After installed Flutter i18n plugin in Android Studio, the plugin will auto generate the localization file into lib/generated/

Suppose it will auto generate a new localization file when string_xx.arb files (located under res/values) have some changes

Okay, I understand that.
But if the app is built by command without Android Studio(CI environment, etc.), the localization files will be missing.

Yes. you are right. I add back the generated localization files