fluttercommunity / flutter_launcher_icons

Flutter Launcher Icons - A package which simplifies the task of updating your Flutter app's launcher icon. Fully flexible, allowing you to choose what platform you wish to update the launcher icon for and if you want, the option to keep your old launcher icon in case you want to revert back sometime in the future. Maintainer: @MarkOSullivan94
https://pub.dev/packages/flutter_launcher_icons
MIT License
2.01k stars 406 forks source link

[FEATURE REQUEST] Add option to run this as a builder #317

Open dvorapa opened 2 years ago

dvorapa commented 2 years ago

:speech_balloon: Description

When using package to extract pubspec.yaml values into dart file called pubspec_extract I have three choices. Either to install and run it globally, or to use it locally. Both should be possible with flutter_launcher_icons as well at the moment. But the most useful one, running it as a builder plugin (right before each build) is missing in this package. It might be useful to inspire yourself from their approach and make us able to use this way of running your script as well!

builders:
  flutter_launcher_icons: ^0.9.2

:question: Platform

I want this for Android, but it should be platform-independent thing.

bradintheusa commented 2 years ago

It seems overkill to run it at each build. Why do you need to run it so often?

dvorapa commented 2 years ago

Our git repo is constantly changing. There is no sense to run flutter_launcher_icons every time some minor graphical change is added. Thus it would be easier to run it only when preparing/building/packaging a production release for end users. Also we would avoid the case someone forgot to do this after their change to icons of our project.