nucleus-ffm / foss_warn

An unofficial open source application to get emergency alerts from https://warnung.bund.de/meldungen.
GNU General Public License v3.0
98 stars 6 forks source link

Update dependencies and build tools #87

Closed MatsG23 closed 1 year ago

MatsG23 commented 1 year ago

Should we for now use

app_settings:
    git: https://github.com/spencerccf/app_settings.git

in pubspec.yaml as a temporary fix until version 4.3.0 is published?

nucleus-ffm commented 1 year ago

If that works without any problems, we can do that. We just use the plugin for a button in the settings to open the Android notification settings. Maybe we can even remove the plugin and replace it with a platform-specific call.

MatsG23 commented 1 year ago

If we would implement opening this specific settings page as a platform-specific call, the bundle size would also be reduced a bit (one less plugin). In the WelcomeView, we do already open the settings page for adding a battery excemption for the app using a platform-specific call. Doing the same for the notifications may be very similar to the short code we use for that. https://github.com/nucleus-ffm/foss_warn/blob/main/android/app/src/main/kotlin/de/nucleus/foss_warn/MainActivity.kt#L42

MatsG23 commented 1 year ago

The platform-specific call for Android is finished. But I cannot test it right now because of https://github.com/flutter/flutter/issues/128204