163 Commits

Author SHA1 Message Date
9ea2029191 chore(deps): bump device_info_plus and matomo_tracker in /packages/smooth_app (#6672)
* chore(deps): bump device_info_plus and matomo_tracker

Bumps [device_info_plus](https://github.com/fluttercommunity/plus_plugins/tree/main/packages/device_info_plus) and [matomo_tracker](https://github.com/Floating-Dartists/matomo-tracker). These dependencies needed to be updated together.

Updates `device_info_plus` from 10.1.2 to 11.5.0
- [Release notes](https://github.com/fluttercommunity/plus_plugins/releases)
- [Commits](https://github.com/fluttercommunity/plus_plugins/commits/device_info_plus-v11.5.0/packages/device_info_plus)

Updates `matomo_tracker` from 5.1.0 to 6.0.0-dev.1
- [Release notes](https://github.com/Floating-Dartists/matomo-tracker/releases)
- [Changelog](https://github.com/Floating-Dartists/matomo-tracker/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Floating-Dartists/matomo-tracker/compare/5.1.0...6.0.0-dev.1)

---
updated-dependencies:
- dependency-name: device_info_plus
  dependency-version: 11.5.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: matomo_tracker
  dependency-version: 6.0.0-dev.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cirrus CI <support@cirruslabs.org>
2025-07-01 15:46:53 +02:00
e3bc40fdf3 chore: Migration to Dart 3.8 (#6668)
* Migration to Dart 3.8

* New GA

* Fix dartdoc
2025-06-23 18:14:17 +02:00
dda75e283e feat: Flutter 3.32 (#6665)
* Migration to Flutter 3.32

* Temporary ignore dart formatter issues
2025-06-23 09:56:00 +02:00
8681098bd6 App review is back (#6367) 2025-02-11 11:36:53 +01:00
d5e3032d18 Don't force the product type with custom URLs (#6309) 2025-02-03 17:25:54 +01:00
42da7d7058 chore: 3 Providers lazy loaded (#6100)
* ColorProvider/TextConstrastProvider/AppNewsProvider lazy loaded

* Lazy permissionListener

* Fix warnings

* Fix tests not passing
2025-01-04 09:08:56 +01:00
388e4d0b90 feat: Switch to Material 3 (#5736)
* Switch to Material 3

* Upgrade Flutter goldens
2024-10-25 20:15:07 +02:00
2b47024f8e fix: 5591 - added a call to initialize rive (#5592) 2024-09-20 11:33:59 +02:00
a3e9bc24ec refactor: Rename tagline* to AppNews (#5377)
* Rename `tagline*` to `AppNews`

* Fix labeler path
2024-06-16 17:39:33 +02:00
2a08ab4114 Edge to edge mode on Android (#5378) 2024-06-15 17:21:09 +02:00
08071d273b feat: Custom domain + environment support for the TagLine (#5364)
* Support custom domain + env for the TagLine

* Update packages/smooth_app/lib/data_models/tagline/tagline_provider.dart

---------

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
2024-06-13 08:53:14 +02:00
41abf730fe feat: Tagline V3 (#5350)
* New JSON

* Tagline V3

* Refresh the tagline on language change

* Fix Lint errors

* Revert `SmoothScaffold` changes

* Filter news with startDate/endDate
2024-06-10 15:19:24 +02:00
b25a034697 Removal of device_preview (#5302) 2024-05-28 18:44:00 +02:00
fd9633c05a Force cookie to be saved if not (#5254) 2024-05-17 08:57:18 +02:00
f1d09923cc feat: 5095 - matomo anonymous visitor id now starts with a persistent letter (#5107)
Impacted files:
* `analytics_helper.dart`: new getter `_anonymousVisitorId`; refactoring
* `main.dart`: minor refactoring
* `user_preferences.dart`: new method `getUniqueRandom()` that is used to compute and store the first letter of the anonymous visitor ID.
2024-03-08 17:06:54 +01:00
09d32c12a6 feat: Use the search eye animation from the POC (#4833)
* Use the search eye animation from the POC

* Oops I forgot the translation

---------

Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2023-11-24 15:49:42 +01:00
bac58f9d6a Force the app language to be set by the router (where a Localization widget is available) (#4819) 2023-11-17 22:44:05 +01:00
0ddd5c6538 chore: upgraded flutter_map to 6.0.1 (#4757)
* chore: upgraded flutter_map to 6.0.1

Impacted files:
* `add_new_product_page.dart`: matomo upgrade
* `analytics_helper.dart`: matomo upgrade
* `camera_scan_page.dart`: matomo upgrade
* `forgot_password_page.dart`: matomo upgrade
* `knowledge_panel_page.dart`: matomo upgrade
* `knowledge_panel_world_map_card.dart`: flutter_map upgrade
* `login_page.dart`: matomo upgrade
* `main.dart`: matomo upgrade
* `new_product_page.dart`: matomo upgrade
* `personalized_ranking_page.dart`: matomo upgrade
* `product_list_page.dart`: matomo upgrade
* `product_query_page.dart`: matomo upgrade
* `pubspec.lock`: wtf
* `pubspec.yaml`: upgraded flutter_map to 6.0.1 (+ domino effect)
* `question_page.dart`: matomo upgrade
* `sign_up_page.dart`: matomo upgrade
* `user_preferences_page.dart`: matomo upgrade

* chore: upgrade flutter_map to 6.0.1

Impacted file:
* `mocks.dart`: matomo upgrade

* chore: unit test fix

* pubspec upgrade
2023-11-17 12:50:35 +01:00
75b6256b13 When the app fails to launch, the Exception is saved (#4810) 2023-11-16 18:23:33 +01:00
9d03d4b7f8 chore: Goodbye little Data Importer 👋 (#4781)
* Goodbye little boy

* Move the code to init the language

* A little change

---------

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2023-11-16 10:23:46 +01:00
c31e4582a4 chore: Migration to Flutter 3.13 (#4579)
Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2023-09-30 19:39:12 +02:00
d8042224f3 fix: 4575 - country is now always populated (#4591)
* fix: 4575 - country is now always populated

* Update packages/smooth_app/lib/query/product_query.dart

* fix: 4575 - reformatted
2023-08-26 17:11:53 +02:00
d1a7e9e3d9 chore: Upgrade Sentry + add screenshots (#4566)
* Upgrade Sentry + add screenshots

* Upgrade iOS & macOS dependencies

* Remove unused variable
2023-08-17 11:30:38 +02:00
f79bae611f feat: 4423 - specific "Not connected to internet" displayed error (#4455)
* feat: 4423 - specific "Not connected to internet" displayed error

Impacted files:
* `barcode_product_query.dart`: removed useless `try` as already `catch`'ed
* `continuous_scan_model.dart`: removed the `codeInvalid` case that could never happen
* `fetched_product.dart`: refactored with explicit constructors and additional exception and connectivity fields; removed the `codeInvalid` case that could never happen
* `new_product_page.dart`: minor refactoring
* `product_dialog_helper.dart`: removed the `codeInvalid` case that could never happen; minor refactoting
* `product_list_item_simple.dart`: removed the `codeInvalid` case that could never happen
* `product_loader_page.dart`: removed useless `try` as already `catch`'ed
* `product_refresher.dart`: added a specific "You're not connected to the internet" error message; refactored using more `FetchedProduct`; removed useless method
* `pubspec.lock`: wtf
* `pubspec.yaml`: added package `connectivity_plus`
* `question_card.dart`: refactored using `FetchedProduct`

* feat: 4423 - fixed pubspec.yaml

* feat: 4423 - new "server down" message after a ping attempt

Impacted files:
* `fetched_product.dart`: added field `failedPingedHost` where we store the host that we couldn't ping
* `generated_plugin_registrant.cc`: wtf
* `generated_plugins.cmake`: wtf
* `GeneratedPluginRegistrant.swift`: wtf
* `main.dart`: registered `DartPingIOS`
* `product_refresher.dart`: now trying to ping the server if exception and connection
* `pubspec.lock`: wtf
* `pubspec.yaml: added packages `dart_ping` and `dart_ping_ios`

* feat: 4423 - stupid lint check part 1

* feat: 4423 - stupid lint check part 2

* feat: 4423 - stupid lint check part 3

* feat: 4423 - stupid lint check part 5

* feat: 4423 - localizations

Impacted files:
* `app_en.arb`: 4 new labels when we couldn't retrieve a product (not found, no internet, server down, server error)
* `product_refresher.dart`: used the new labels
2023-08-16 12:01:25 +02:00
78884a6ad2 feat: App review in the "scan card" (#4450)
* App review in the "scan card"

* Add a keep alive to prevent many requests

* Add a missing call to super (for the KeepAlive mixin)

* Don't really understand what happened with this file 🤨
2023-08-05 17:27:59 +02:00
82b1db0b9d Pass SentryNavigatorObserver to the router (#4391) 2023-07-29 19:17:24 +02:00
7002a123a4 feat: Migration to Flutter 3.10 (#4142)
* Migration to Flutter 3.10

* Bump Flutter version on actions

* GitHub Actions: use channel instead of a fixed version of Flutter

* Add a missing argument due to the upgrade to Flutter 3.10

* Regenerate goldens

---------

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2023-06-14 18:33:22 +02:00
abab9342a9 Improve how we manager consent in the app (#4118) 2023-06-11 09:18:09 +02:00
4c44b06bcd feat: Support for deep links (#3995)
* Support for deep links on Android

* Deep links: Better support for network errors / unknown product

* iOS configuration for deep links

* Improve documentation

* Improve doc

* Support other domains

* Add an error page

* Upgrade to go_router 7.0.2

* Add some Sentry events

* Update packages/smooth_app/lib/helpers/extension_on_text_helper.dart

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>

* SizedBox -> EMPTY_WIDGET

* PreferencePageType: from name to tag

* Remove an unused async keyword

* Move internal app routes to an enum

* Add a clarification about `ProductLoaderPage`

* Update packages/smooth_app/lib/pages/navigator/app_navigator.dart

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>

* Revert how we open the product addition/creation on the product not found card

---------

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
2023-05-23 15:52:33 +02:00
fb164cbce2 feat: 3835 - country selector similar to language selector (#3936)
Impacted files:
* `consent_analytics_page.dart`: minor refactoring
* `country_selector.dart`: now using the preferences for initial country code; same UI as language selector
* `main.dart`: minor refactoring
* `next_button.dart`: minor refactoring
* `onboarding_flow_navigator.dart`: refactoring around `OnboardingPage`
* `permissions_page.dart`: minor refactoring
* `product_query.dart`: minor refactoring
* `user_preferences.dart`: minor refactoring
* `user_preferences_dev_mode.dart`: minor refactoring
* `user_preferences_page.dart`: minor UI fix (app bar title on 2 lines)
* `user_preferences_settings.dart`: added the "selected language" parameter; minor refactoring
* `welcome_page.dart`: fixed a visual overflow bug
2023-05-07 08:04:51 +02:00
63b65e6f79 fix: Stronger F-Droid analytics rules (#3902)
Co-authored-by: Cirrus CI <support@cirruslabs.org>
2023-04-24 19:43:34 +02:00
f7e42c762b chore: Shared common scanner (#3883)
* First movement

* devcotainer

* Lint fixes

* Shared visor

* Final moves

* Final lint fixes

* Empty widget, moved scan header

* Update scanner_ml_kit.dart

---------

Co-authored-by: Marvin Moeltgen
2023-04-18 21:05:28 +02:00
1734a20381 ci: Return to entrypoint based scanner (#3874)
* ci: Return to entrypoint based scanner

* Update basic_test.dart
2023-04-14 17:07:37 +02:00
08fd1349e6 feat: now we can switch the camera in the dev mode (#3784)
* dev: now we can switch the camera in the dev mode

* Update scan_page.dart

* fix
2023-03-20 17:26:31 +01:00
87d928039c feat: 3712 - new mlkit and zxing scanners on flutter 3.7 (#3767)
* feat/3712 - new mlkit and zxing scanners on flutter 3.7

New files:
* `smooth_barcode_scanner_mlkit.dart`: Barcode scanner based on MLKit.
* `smooth_barcode_scanner_mockup.dart`: Fake barcode scanner, for tests.
* `smooth_barcode_scanner_type.dart`: Barcode scanner types.
* `smooth_barcode_scanner_zxing.dart`: Barcode scanner based on ZXing.

Deleted files:
* `scanner`: removed folder
* `camera_controller.dart`
* `camera_image_cropper.dart`
* `camera_full_getter.dart`
* `camera_image_preview.dart`
* `camera_modes.dart`
* `lifecycle_aware_widget.dart`
* `lifecycle_manager.dart`
* `scan_flash_toggle.dart`
* `scan_visor.dart`
* `scanner_overlay.dart`
* `user_preferences_dialog_editor.dart`

Impacted files:
* `app_test.dart`: now uses new enum `SmoothBarcodeScannerType`
* `background_task_badge.dart`: now uses flutter 3.7 badge
* `basic_test.dart`: now uses new enum `SmoothBarcodeScannerType`
* `build.gradle`: upgraded kotlin to 1.8.0
* `camera_helper.dart`: simplified
* `camera_scan_page.dart`: simplified
* `constant_icons.dart`: added an adaptive "flip camera" icon
* `file_cache_manager_impl.dart`: minor 3.7 refactoring
* `goldens.dart`: minor 3.7 refactoring
* `labeler.yml`: removed references to delete files
* `main_fdroid.dart`: now uses new enum `SmoothBarcodeScannerType`
* `main_google_play.dart`: now uses new enum `SmoothBarcodeScannerType`
* `main_ios.dart`: now uses new enum `SmoothBarcodeScannerType`
* `network_config.dart`: minor 3.7 refactoring
* `new_product_page.dart`: minor 3.7 refactoring
* `onboarding_bottom_bar.dart`: minor 3.7 refactoring
* `pubspec.lock`: wtf
* `apple_app_store/pubspec.yaml`: minor 3.7 refactoring
* `google_play/pubspec.yaml`: minor 3.7 refactoring
* `shared/pubspec.yaml`: minor 3.7 refactoring
* `uri_store/pubspec.yaml`: minor 3.7 refactoring
* `data_importer/pubspec.yaml`: minor 3.7 refactoring
* `data_importer_shared/pubspec.yaml`: minor 3.7 refactoring
* `smooth_app/pubspec.yaml`: now includes mlkit and zxing scanners; minor 3.7 refactoring; removed now redundant `badge`; minor upgrades
* `scan_page.dart`: simplified
* `user_preferences.dart`: removed now useless methods
* `user_preferences_dev_mode.dart`: removed duration and scan parameter settings
* `user_preferences_settings.dart`: removed now useless parameter; minor 3.7 refactoring

* feat/3712 - new "no camera found" message

Impacted file:
* `camera_scan_page.dart`: new "no camera found" message

* fix github actions flutter version

* feat/3712 - localized "no camera found" message

Impacted files:
* `app_en.arb`: new label for "no camera found"
* `app_fr.arb`: new label for "no camera found"
* `camera_scan_page.dart`: localized "no camera found" message

---------

Co-authored-by: Marvin M <39344769+M123-dev@users.noreply.github.com>
2023-03-17 15:41:42 +01:00
0363affc81 feat: AMOLED Dark Mode (#3703)
* ignored some generated files

* init amoled mode

* color scheme

* test updated for amoled

* added accent color picker

* localized accent color picker

* added color provider

* Dark Mode changed to Theme mode

* Map key iteration only

* Update packages/smooth_app/lib/l10n/app_en.arb

Co-authored-by: Aman Raj <57723319+AshAman999@users.noreply.github.com>

* removed external dep

* updated golden test

* added comments

* using shade fun

* color scheme localization

* color scheme localization

* added textContrast

* color contrast app settings

* merged upstream

* typo fix

* added color to DropDownMenuItems

* SnackBar text, contrast level

* text contrast change to pass WCAG2.1

* snackBar Color Change

---------

Co-authored-by: Aman Raj <57723319+AshAman999@users.noreply.github.com>
2023-03-09 18:19:39 +01:00
ad94f80f93 chore: Warning when running out of main.dart (#3687)
* chore: Warning when running out of  main.dart

We got some questions on slack from people who had problems running the app:

root isolate couldn't be started

Which happens when you try to run the app from main.dart

* debug print

* Update pubspec.lock
2023-02-08 20:35:53 +01:00
8835f864ec fix: 3533 - added a "stamp" to background tasks, to identify similar tasks (#3548)
* fix: 3533 - added a "stamp" to background tasks, to identify similar tasks

Impacted files:
* `abstract_background_task.dart`: added a stamp; minor refactoring
* `add_basic_details_page.dart`: implemented the background stamp
* `add_other_details_page.dart`: implemented the background stamp
* `background_task_details.dart`: new `enum BackgroundTaskDetailsStamp`; added the background stamp
* `background_task_image.dart`: added the background stamp
* `background_task_manager.dart`: refactored the run queue; stops when there's not internet connection
* `background_task_refresh_later.dart`: added the background stamp
* `edit_ingredients_page.dart`: added the background stamp
* `edit_new_packagings.dart`: implemented the background stamp
* `local_database.dart`: unrelated removal of deprecated comment
* `main.dart`: slightly related fix of #3522, because we used to run background tasks before the language was set
* `nutrition_page_loaded.dart`: implemented the background stamp
* `ocr_helper.dart`: added a background stamp
* `ocr_ingredients_helper.dart`: implemented the background stamp
* `ocr_packaging_helper.dart`: implemented the background stamp
* `simple_input_page.dart`: added the background stamp; now we split the updates in as many minimum parts as possible
* `simple_input_page_helpers.dart`: added and implemented background stamps; unrelated fix (when the widget is not displayed, the data should be considered as "not changed")

* fix: 3533 - added a 5 second delay between runs

Impacted files:
* `background_task_details.dart`: more verbose tags for stamps
* `background_task_image.dart`: added language to stamp
* `background_task_manager.dart`: added a 5 second minimum delay between runs; added temporary debug prints
* `edit_product_page.dart`: added a task refresh
* `product_image_gallery_view.dart`: added a task refresh
2023-01-09 16:24:04 +01:00
7e861f569e refactor: upgrade to off-dart 2.0.0 (#3495)
Impacted files:
* `paged_to_be_completed_product_query.dart`: renamed `State` as `ProductState`
* `paged_user_product_query.dart`: created local `UserSearchType` instead of deprecated off-dart `UserProductSearchType`; used `ProductSearchQueryConfiguration` instead of deprecated `UserProductSearchQueryConfiguration`
* `product_query.dart`: now that we use fully v3, we don't need the temporary field list for user-related queries with v2
* `pubspec.lock`: wtf
* `pubspec.yaml`: upgrade to off-dart 2.0.0
* `user_preferences_account.dart`: now using new local class `UserSearchType`
* and reduced all off-dart imports to a single `import 'package:openfoodfacts/openfoodfacts.dart';`
2023-01-02 16:10:52 +01:00
d6dc91d0b7 fix: Language code usage (#3450)
* fix: Language code usage

* Update main.dart

* Fix for local != lc

* Update product_preferences.dart

* Update main.dart

* Fix tagline

* Update tagline.dart
2022-12-23 10:02:14 +01:00
a35b7db371 ci: Show flavour in about this app and sentry (#3429)
Co-authored-by: Aman Raj <57723319+AshAman999@users.noreply.github.com>
2022-12-10 11:14:22 +01:00
80fde5335b feat: In app review (#3333)
* Implementations for Apple App Store/Google Play/Uri based store

* App Store as a service

* In app review asked after being logged in for the first time

* Don't forget to use the new path for MLKit script

* Remove a warning about the context

* Fix tests not passing

* Update packages/app/lib/entrypoints/android/main_samsung_gallery.dart

Co-authored-by: Marvin M <39344769+M123-dev@users.noreply.github.com>

* Update packages/smooth_app/pubspec.yaml

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
Co-authored-by: Marvin M <39344769+M123-dev@users.noreply.github.com>
Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2022-11-26 14:30:03 +01:00
5304614c99 feat: 3263 - new BackgroundTaskManager that always works (#3339)
Deleted file:
* `background_task_helper.dart`

New files:
* `background_task_manager.dart`: Management of background tasks: single thread, block, restart, display.
* `dao_instant_string.dart`: Where we store strings that need INSTANT access (= not lazy, no await).

Impacted fles:
* `abstract_background_task.dart`: refactored
* `background_task_details.dart`: refactored around the changes in `AbstractBackgroundTask`
* `background_task_image.dart`: refactored around the changes in `AbstractBackgroundTask`
* `dao_string_list.dart`: refactoring around now managing several lists; removed unnecessary `await` for a non-lazy dao
* `local_database.dart`: added the new class `DaoInstantString`; relaunch the background task manager at every refresh
* `main.dart`: minor refactoring
* `new_crop_page.dart`: unrelated bug fix
* `offline_tasks_page.dart`: refactored around the new `BackgroundTaskManager`
* `operation_type.dart`: added helper methods
* `product_image_gallery_view.dart`: minor refactoring
* `product_image_viewer.dart`: unrelated bug fix - the product was not refreshed, and so wasn't the image even after a successful download
* `pubspec.lock`: wtf
* `pubspec.yaml`: removed `flutter_task_manager`
* `search_history_view.dart`: minor refactoring now that we have several lists in `DaoStringList`
* `search_page.dart`: minor refactoring now that we have several lists in `DaoStringList`
* `up_to_date_changes.dart`: minor refactoring
* `up_to_date_product_provider.dart`: minor refactoring
2022-11-25 17:31:25 +01:00
c27767df4e feat: MLKit as a dependency (#3193)
* MLKit as a dependency

* Fix tests

* Add IntelliJ/Android build configurations

* IJ config: Rename folders

* Dynamically add the right dependency on app/pubspec.yaml

(cherry picked from commit 15b5243cab764d40e303ac9db9f3eda0b7caec03)

* Ad all VSCode configs

* Enable MLKit dependency for GitHub actions
2022-10-27 18:33:14 +02:00
222eb6e69e fix: #3018 - UpToDateProductProvider now field of LocalDatabase (#3220)
Impacted files:
* `add_basic_details_page.dart`: got rid of `UpToDateProductProvider`
* `add_new_product_page.dart`: got rid of `UpToDateProductProvider`
* `edit_ingredients_page.dart`: got rid of `UpToDateProductProvider`
* `edit_product_page.dart`: got rid of `UpToDateProductProvider`
* `knowledge_panel_page.dart`: got rid of `UpToDateProductProvider`
* `local_database.dart`: added an `UpToDateProductProvider` field
* `main.dart`: got rid of `UpToDateProductProvider`
* `new_product_page.dart`: got rid of `UpToDateProductProvider`
* `nutrition_page_loaded.dart`: got rid of `UpToDateProductProvider`
* `personalized_ranking_model.dart`: got rid of `UpToDateProductProvider`
* `personalized_ranking_page.dart`: got rid of `UpToDateProductProvider`
* `Podfile.lock`: wtf
* `product_image_gallery_view.dart`: got rid of `UpToDateProductProvider`
* `product_list_item_simple.dart`: got rid of `UpToDateProductProvider`
* `product_list_page.dart`: got rid of `UpToDateProductProvider`
* `product_refresher.dart`: got rid of `UpToDateProductProvider`
* `simple_input_page.dart`: got rid of `UpToDateProductProvider`
* `summary_card.dart`: got rid of `UpToDateProductProvider`
* `up_to_date_product_provider.dart`: not a provider anymore; using `LocalDatabase` instead
2022-10-27 09:32:59 +02:00
e3564e53a4 refactor: Make smooth_app a module (also called step 1) (#3101)
* Make smooth_app a module (also called step 1)

Android impl is OK.
Still have to check for iOS and tests

* Fix scan sound not working

* Fix ci/pub_upgrade.sh issues

* Fix tests

* Some doc

* Fix build actions

* Fix iOS build

* Fix warnings

* Fix Flutter analyze

* Fix typo

* The CI needs at least one test

Co-authored-by: Marvin Möltgen <39344769+M123-dev@users.noreply.github.com>
2022-10-13 18:33:14 +02:00
0400c18874 fix: Check if user credential still holds (#3077)
* check if user credential still holds

* changes suggested on the pr
2022-10-01 14:05:01 +02:00
cf4fa6aebe fix: Background image upload (#2433)
* work manager used for bg schedule

* removed swith case

* remove unwanted contrains and randomize the taskid
as image.others might fail

* added translations

* new product image upload working

* removed debug for work manager

* delete photo when uploaded

* use await keywords while initializing

* refactor the code

* fix show image after queed

* serialize and deserialze input data seperately

* add an instant product in the loacl db to
let the user not confuse

* added smooth random class

* use smooth random to generate 8 digits

* remove unneccesary await

* update the local db with a product if not yet
uploaded

* update local databse after sucessful
update into server

* don't refresh automatically after upload queed

* supply language code to work manager

* import app localizations

* small refactoring

* refactor the code for work manager

* iOS Config for WorkManager

* formatting

* suggestion by tolemon

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>

* suggestion by tolemon

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>

* suggestion by tolemon

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>

* small fix

* add swith case to the workmanager

* efficient switch case

* Update packages/smooth_app/lib/l10n/app_en.arb

Suggested by tolemon

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>

* minor fix

* Basic Input details add are now run in background

* basic details are now updated immediatly
even without internet

* nutrient edit task are now background
and also conflict when recheduling task is managed

* menu screen for background tasks and
nutrition edits are now backgrounded

* button for retry now works in the bg tasks screen

* formatting

* genaralised function for non image tasks

* should retry set default to false

* better mechanism for retries and refactor

* refactor and consts duration of 3s for snackbars

* now language country and user are properly dropped

* Update packages/smooth_app/ios/Runner/Info.plist

* Update packages/smooth_app/ios/Runner/AppDelegate.swift

* Error messages fixed

* custom workmanager dependencies added

* migrated basic detail task from work manager to
taskmanager

* chanages to do the product edit changes in bg

* dart format

* cleaned the function calls when doing bg task

* dao_task edited

* unnecessary methods removed

* use int as id instead of string

* added comments and made fields final

* used const variable instead of hardcoded ones

* get pending tasks from taskManager class

* refactor

* handled exceptions

* string instead of int

* remove unused plugin

* removed unnessary files

* update to localdatabase working without islotes

* suggestions left as comments on PR

* deleted unncessary Random class

* doc added

* Remove WorkManager iOS code

* reset publock

* reset publock

* remove harcoded color

* used duration constant class instead of harcoded

* make methods to generate taskId

* dart frmt

* changes as per the code review

* string buffer , var documentation and rename

* error fix

* refactor and spelling corrections

* /// instead of //

* dart ff formater

* more refactorings

* Update background_task_helper.dart

* dart ff fix

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
Co-authored-by: Edouard Marquez <g123k@users.noreply.github.com>
Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2022-09-01 12:15:09 +02:00
180c817562 fix: #2291 - removed flawed specific font (back to default fonts) (#2657)
Deleted files:
* `OFL.txt`
* `PlusJakartaSans-Bold.ttf`
* `PlusJakartaSans-Regular.ttf`

Impacted files:
* `main.dart`: removed font licence registering
* `pubspec.yaml`: removed specified fonts (back to default fonts)
* `smooth_theme.dart`: removed specified fonts (back to default fonts)
2022-07-27 14:16:15 +02:00
1e889df3df Force a light status bar on all screens + a SmoothScaffold now handles correctly the brightness (#2343) 2022-07-04 16:58:55 +02:00