Skip to content

Commit

Permalink
Let's migrate the app to Flutter 3.24
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k committed Sep 25, 2024
1 parent 42d0201 commit 0026405
Show file tree
Hide file tree
Showing 91 changed files with 685 additions and 307 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Full list of features on the wiki: https://wiki.openfoodfacts.org/Mobile_App/Fea

- Make sure you have installed flutter and all the requirements
- [Official flutter installation guide](https://docs.flutter.dev/get-started/install)
- Currently, the app uses the following version of Flutter (3.22.x).
- Currently, the app uses the following version of Flutter (3.24.x).


We have predefined run configurations for Android Studio and Visual Studio Code
Expand Down
2 changes: 1 addition & 1 deletion flutter-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.22.2
3.24.3
8 changes: 5 additions & 3 deletions packages/app_store/apple_app_store/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.0.1
publish_to: "none"

environment:
sdk: '>=3.4.0 <4.0.0'
sdk: ^3.5.3

dependencies:
flutter:
Expand All @@ -18,6 +18,8 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: 2.0.3
flutter_lints: 4.0.0
openfoodfacts_flutter_lints:
git: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
git:
url: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
ref: flutter_3_24
8 changes: 5 additions & 3 deletions packages/app_store/google_play/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.0.1
publish_to: "none"

environment:
sdk: '>=3.4.0 <4.0.0'
sdk: ^3.5.3

dependencies:
flutter:
Expand All @@ -18,8 +18,10 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: 2.0.3
flutter_lints: 4.0.0
openfoodfacts_flutter_lints:
git: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
git:
url: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
ref: flutter_3_24

flutter:
8 changes: 5 additions & 3 deletions packages/app_store/shared/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.0
publish_to: "none"

environment:
sdk: '>=3.4.0 <4.0.0'
sdk: ^3.5.3

dependencies:
flutter:
Expand All @@ -13,8 +13,10 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: 2.0.3
flutter_lints: 4.0.0
openfoodfacts_flutter_lints:
git: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
git:
url: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
ref: flutter_3_24

flutter:
8 changes: 5 additions & 3 deletions packages/app_store/uri_store/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.0.1
publish_to: "none"

environment:
sdk: '>=3.4.0 <4.0.0'
sdk: ^3.5.3

dependencies:
flutter:
Expand All @@ -18,6 +18,8 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: 2.0.3
flutter_lints: 4.0.0
openfoodfacts_flutter_lints:
git: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
git:
url: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
ref: flutter_3_24
8 changes: 5 additions & 3 deletions packages/scanner/ml_kit/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.0
publish_to: "none"

environment:
sdk: '>=3.4.0 <4.0.0'
sdk: ^3.5.3

dependencies:
flutter:
Expand All @@ -20,6 +20,8 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: 2.0.2
flutter_lints: 4.0.0
openfoodfacts_flutter_lints:
git: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
git:
url: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
ref: flutter_3_24
8 changes: 5 additions & 3 deletions packages/scanner/shared/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.0
publish_to: "none"

environment:
sdk: '>=3.4.0 <4.0.0'
sdk: ^3.5.3

dependencies:
flutter:
Expand All @@ -16,8 +16,10 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: 2.0.3
flutter_lints: 4.0.0
openfoodfacts_flutter_lints:
git: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
git:
url: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
ref: flutter_3_24

flutter:
8 changes: 5 additions & 3 deletions packages/scanner/zxing/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.0
publish_to: "none"

environment:
sdk: '>=3.4.0 <4.0.0'
sdk: ^3.5.3

dependencies:
flutter:
Expand All @@ -18,6 +18,8 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: 2.0.3
flutter_lints: 4.0.0
openfoodfacts_flutter_lints:
git: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
git:
url: https://github.com/openfoodfacts/openfoodfacts_flutter_lints.git
ref: flutter_3_24
13 changes: 3 additions & 10 deletions packages/smooth_app/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,13 @@ target 'Runner' do
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
# target 'RunnerTests' do
# inherit! :search_paths
# end
end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)

target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'

config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
'PERMISSION_CAMERA=1',
'PERMISSION_PHOTOS=1',
]
end
end
end
Loading

0 comments on commit 0026405

Please sign in to comment.