openfoodfacts / smooth-app

🤳🥫 The new Open Food Facts mobile application for Android and iOS, crafted with Flutter and Dart
https://world.openfoodfacts.org/open-food-facts-mobile-app?utm_source=off&utf_medium=web&utm_campaign=github-repo
Apache License 2.0
839 stars 280 forks source link

Check that a new version is available #3202

Open g123k opened 2 years ago

g123k commented 2 years ago

Hi everyone,

Once all PRs surrounding the modularization of the app are merged, we will be able to check per store if a new version is available.

For the App Store & Google Play, we can use a plugin directly like this one. But for other stores, no API is available.

In that case, the solution would be to have a JSON file containing the latest version available per store. But where to store this file? Directly in this Git and accessing via raw.github.com? Or directly by hosting it on OFF's server?

M123-dev commented 2 years ago

Thats a good question not only for that but also for the tagline, because I fear that this great feature will get into oblivion because it is not used.

The key aspects for the release json would be:

  1. How reliable this github, do they block is if they get multiple thousand requests per day
  2. How to update this file on a new release
g123k commented 1 year ago

1) For GitHub, we won't have any issue, regarding the number of active users we have 2) Manually? Via a GitHub Action?

The file can be stored elsewhere, but we have no tool for that. Basically a Firebase Remote Config would be perfect for that, but once again that's annoying with F-Droid "Non-Google way of viewing things"