Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 3585 - upgrade to flutter 3.7 #3666

Merged
merged 3 commits into from
Feb 3, 2023

Conversation

monsieurtanuki
Copy link
Contributor

Impacted files:

  • account_deletion_webview.dart: minor refactoring; could not test, unfortunately
  • background_task_badge.dart: minor refactoring
  • camera_scan_page.dart: minor refactoring
  • country_selector.dart: minor refactoring
  • generated_plugin_registrant.cc: wtf
  • generated_plugins.cmake: wtf
  • GeneratedPluginRegistrant.swift: wtf
  • Info.plist: wtf
  • knowledge_panel_world_map_card.dart: minor refactoring
  • network_config.dart: minor refactoring
  • Podfile.lock: wtf
  • product_query_page.dart: minor refactoring
  • project.pbxproj: wtf
  • pubspec.lock: wtf
  • apple_app_store/pubspec.yaml: to dart 2.19 without restriction for flutter
  • google_play/pubspec.yaml: to dart 2.19 without restriction for flutter
  • app_store/shared/pubspec.yaml: to dart 2.19 without restriction for flutter
  • uri_store/pubspec.yaml: to dart 2.19 without restriction for flutter
  • data_importer/pubspec.yaml: to dart 2.19 without restriction for flutter
  • data_importer_shared/pubspec.yaml: to dart 2.19 without restriction for flutter
  • mlkit/pubspec.yaml: to dart 2.19 without restriction for flutter
  • scanner/shared/pubspec.yaml: to dart 2.19 without restriction for flutter
  • zxing/pubspec.yaml: to dart 2.19 without restriction for flutter
  • smooth_app/pubspec.yaml: to dart 2.19 without restriction for flutter; upgraded the versions
  • user_preferences_page_test.dart: minor refactoring

What

  • Upgraded to dart 2.19 and removed restriction to flutter 3.0.5.
  • Upgraded the pubspec.yaml package versions, with minor related refactoring.

Part of

Impacted files:
* `account_deletion_webview.dart`: minor refactoring; could not test, unfortunately
* `background_task_badge.dart`: minor refactoring
* `camera_scan_page.dart`: minor refactoring
* `country_selector.dart`: minor refactoring
* `generated_plugin_registrant.cc`: wtf
* `generated_plugins.cmake`: wtf
* `GeneratedPluginRegistrant.swift`: wtf
* `Info.plist`: wtf
* `knowledge_panel_world_map_card.dart`: minor refactoring
* `network_config.dart`: minor refactoring
* `Podfile.lock`: wtf
* `product_query_page.dart`: minor refactoring
* `project.pbxproj`: wtf
* `pubspec.lock`: wtf
* `apple_app_store/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `google_play/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `app_store/shared/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `uri_store/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `data_importer/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `data_importer_shared/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `mlkit/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `scanner/shared/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `zxing/pubspec.yaml`: to dart 2.19 without restriction for flutter
* `smooth_app/pubspec.yaml`: to dart 2.19 without restriction for flutter; upgraded the versions
* `user_preferences_page_test.dart`: minor refactoring
@monsieurtanuki monsieurtanuki requested a review from a team as a code owner February 1, 2023 18:30
@github-actions github-actions bot added dependencies 🍎 iOS iOS specific issues or PRs MacOS 🤗 Onboarding We need to onboard users on how the app works, but also on content like Nutri-Score, Eco-Score… 🥫 Product page 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion… 🧪 Tests 🤳 ZXing labels Feb 1, 2023
Copy link
Member

@M123-dev M123-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks @monsieurtanuki are you able to again run the app

@monsieurtanuki
Copy link
Contributor Author

Looks good to me, thanks @monsieurtanuki are you able to again run the app

Not really: cannot compile on iOS for the moment (because apple stinks), and cannot run the app more than once on my Android smartphone (because of the months old bug regarding camera).
Besides, I think this PR is 99% OK. I could test the map but not the rest. In particular, the WebView should be tested again.
Feel free to merge if your tests are convincing - I wish I could test myself.

@M123-dev
Copy link
Member

M123-dev commented Feb 2, 2023

Just from looking at it, I would say, merge and test out in the internal release. Though there seems to be a problem with the web view

https://github.com/openfoodfacts/smooth-app/actions/runs/4067542669/jobs/7005015358#step:8:69

@monsieurtanuki
Copy link
Contributor Author

@M123-dev the thing is that webview is used only in a very specific case ("delete account" or something like that), which is not something we use everyday.

Additional thoughts:

  • If I have to test, that currently means on my smartphone, that means waiting half an hour just for the app to start after flutter run. So any help regarding that test would be welcomed.
  • It looks very strange to use a webview (whose usage is not that obvious, upgrade-wise), and to use it just in that off-the-map use-case. If we could get rid of it (and replace it with a launchUrl for instance), that would mean a simpler code and a package we could remove from pubspec

Impacted file:
* `user_preferences_page_test.dart`: minor cheat
Impacted file:
* `user_preferences_page_test.dart`: minor cheat
@codecov-commenter
Copy link

Codecov Report

Merging #3666 (af91844) into develop (ad7ac77) will decrease coverage by 0.99%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           develop   #3666      +/-   ##
==========================================
- Coverage    10.44%   9.45%   -0.99%     
==========================================
  Files          269     269              
  Lines        13578   13571       -7     
==========================================
- Hits          1418    1283     -135     
- Misses       12160   12288     +128     
Impacted Files Coverage Δ
...ooth_app/lib/background/background_task_badge.dart 9.09% <0.00%> (+0.75%) ⬆️
...ackages/smooth_app/lib/helpers/network_config.dart 0.00% <0.00%> (ø)
...owledge_panels/knowledge_panel_world_map_card.dart 0.00% <0.00%> (ø)
...oth_app/lib/pages/onboarding/country_selector.dart 0.00% <0.00%> (ø)
...ib/pages/preferences/account_deletion_webview.dart 0.00% <0.00%> (-91.31%) ⬇️
...p/lib/pages/product/common/product_query_page.dart 0.00% <0.00%> (ø)
...es/smooth_app/lib/pages/scan/camera_scan_page.dart 0.44% <ø> (+<0.01%) ⬆️
...ib/pages/preferences/user_preferences_account.dart 18.98% <0.00%> (-41.78%) ⬇️
...oth_app/lib/services/logs/smooth_logs_service.dart 5.55% <0.00%> (-22.23%) ⬇️
... and 12 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@monsieurtanuki monsieurtanuki merged commit ad46236 into openfoodfacts:develop Feb 3, 2023
monsieurtanuki added a commit to monsieurtanuki/smooth-app that referenced this pull request Feb 13, 2023
monsieurtanuki added a commit that referenced this pull request Feb 14, 2023
* Revert "feat: 3585 - upgrade to flutter 3.7 (#3666)"

This reverts commit ad46236.

* Update pubspec.yaml

* Update account_deletion_webview.dart
monsieurtanuki added a commit that referenced this pull request Feb 21, 2023
* Revert "feat: 3585 - upgrade to flutter 3.7 (#3666)"

This reverts commit ad46236.

* fix: 3622 - no autofocus and clean FocusNode management

Impacted files:
* `edit_new_packagings_component.dart`: applied best practices for `FocusNode` (had to switch to `StatefulWidget` for that)
* `Podfile.lock`: wtf
* `simple_input_number_field.dart`: removed `autofocus: true`
* `simple_input_text_field.dart`: removed `autofocus: true`
* `simple_input_widget.dart`: applied best practices for `FocusNode`
monsieurtanuki added a commit that referenced this pull request Feb 21, 2023
* Revert "feat: 3585 - upgrade to flutter 3.7 (#3666)"

This reverts commit ad46236.

* chore: off-dart 2.3.1 and its new sorted suggestions

Deleted file:
* `tmp_matched_product_v2.dart`: now in off-dart

Impacted files:
* `personalized_ranking_model.dart`: removed reference to now deleted file `tmp_matched_product_v2.dart`
* `personalized_ranking_page.dart`: removed reference to now deleted file `tmp_matched_product_v2.dart`
* `Podfile.lock`: wtf
* `pubspec.lock`: wtf
* `pubspec.yaml`: upgraded off-dart to 2.3.1
* `simple_input_text_field.dart`: now using the new `getSuggestions` method that sorts the result
monsieurtanuki added a commit that referenced this pull request Feb 23, 2023
…3734)

* Revert "feat: 3585 - upgrade to flutter 3.7 (#3666)"

This reverts commit ad46236.

* fix: 3723 - now always replaces decimal separator for number format

Impacted files:
* `strings_helper.dart`: removed now useless methods
* `text_input_formatters_helper.dart`: now works in all cases, regardless of the presence of group separator in the target language, given that we don't use group separators in our decimal number formats anyway

* fix: 3723 - unrelated localization fix

Impacted file:
* `app_ar.arb`
monsieurtanuki added a commit that referenced this pull request Feb 27, 2023
* Revert "feat: 3585 - upgrade to flutter 3.7 (#3666)"

This reverts commit ad46236.

* fix: 3723 - additional tests

Impacted file:
* `text_input_formatters_helper.dart`

* fix: 3723 - additional tests

Impacted file:
* `text_input_formatters_helper.dart`

* fix: 3723 - additional tests

Impacted file:
* `simple_input_number_field.dart`

* fix: 3723 - with "assert"

Impacted file:
* `text_input_formatters_helper.dart`
monsieurtanuki added a commit that referenced this pull request Feb 28, 2023
* Revert "feat: 3585 - upgrade to flutter 3.7 (#3666)"

This reverts commit ad46236.

* feat: 3749 - improvements for packaging suggestions

Impacted files:
* `edit_new_packagings.dart`: added categories parameter for suggestions
* `edit_new_packagings_component.dart`: added categories field; added categories parameters for shape search; added categories and shape parameters for material search; added specific minLengthForSuggestions parameter set to 0 for shape and material search
* `simple_input_text_field.dart`: added minLengthForSuggestions, categories and shape fields; added categories, shape and country parameters for `getSuggestions`
monsieurtanuki added a commit that referenced this pull request Mar 2, 2023
… in French) (#3753)

* Revert "feat: 3585 - upgrade to flutter 3.7 (#3666)"

This reverts commit ad46236.

* feat: new localized label 'sep' as separator before colon (especially in French)

Impacted files:
* `app_en.arb`: new label `'sep'` as separator before colon; minor consistency fix
* `app_fr.arb`: new label `'sep'` as separator before colon; minor consistency fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies 🍎 iOS iOS specific issues or PRs MacOS 🤗 Onboarding We need to onboard users on how the app works, but also on content like Nutri-Score, Eco-Score… 🥫 Product page 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion… 🧪 Tests 🤳 ZXing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants