Is your feature request related to a problem? Please describe.
I want to add a GitHub action to verify that the checked-in code is up-to-date with the latest splash configuration. I currently have this:
- name: Verify splash screen is up-to-date
run: |
flutter pub run flutter_native_splash:create
# Ignore changes to index.html
git add web/index.html
# Exit code 1 if differences were found
git diff --exit-code
I have to ignore changes to web/index.html because of the newlines whitespace added each time. You can reproduce this issue by running the create script once, adding the changes, running it again, and seeing the new diff.
Describe the solution you'd like
Runs of create with the same configuration should be idempotent. Maybe just don't add all this whitespace to index.html?
Describe alternatives you've considered
I just ignore changes to index.html right now.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
I want to add a GitHub action to verify that the checked-in code is up-to-date with the latest splash configuration. I currently have this:
I have to ignore changes to
web/index.htmlbecause of the newlines whitespace added each time. You can reproduce this issue by running thecreatescript once, adding the changes, running it again, and seeing the new diff.Describe the solution you'd like
Runs of
createwith the same configuration should be idempotent. Maybe just don't add all this whitespace toindex.html?Describe alternatives you've considered
I just ignore changes to
index.htmlright now.Additional context
Add any other context or screenshots about the feature request here.