Run flatpak-builder
to configure the build environment, download dependencies, build, and install.
For the Adwaita version run
flatpak-builder build io.github.leolost2605.emergency-alerts-adwaita.yml --user --install --force-clean --install-deps-from=flathub
For the elementary OS version run
flatpak-builder build io.github.leolost2605.emergency-alerts.yml --user --install --force-clean --install-deps-from=appcenter
Only one of the two versions can be installed at the same time. To execute it run
flatpak run io.github.leolost2605.emergency-alerts
Contributions that add support for another provider are (like all other contributions as well) very welcome.
To do this you just have to add a YourProvider class that extends the Provider abstract class and implements its
methods as described by the comments. For reference you can take a look at Germany.vala
.
The general flow is:
- You've got multiple locations the user can choose from that will be requested by the client when the user starts a search
- The user chooses some locations
- From now on the client will automatically call refresh with the chosen locations on your provider
- You take the location, remove outdated warnings, add new ones, and update current ones
(This structure came from how the API of the German civil protection authority is structured.)
The code style used is the elementary OS code style. For vala documentation refer to the elementary OS developer docs and for API documentation to valadoc.