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

fix: 3816 - upgrade to mlkit 4.0.0 and clean rebuild of the pods #3837

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

monsieurtanuki
Copy link
Contributor

Impacted files:

  • ios-release-to-org-openfoodfacts-scanner.yml: clean rebuild of the pods
  • Podfile.lock: wtf
  • pubspec.lock: wtf
  • pubspec.yaml: upgraded mobile_scanner, that recently upgraded to mlkit 4.0.0

What

  • We temporarily used a branch of mobile_scanner - now we point to the regular pub.dev version
  • Here we rebuild the pods too, which is a bit experimental but could prove useful given the confusion around ios pods

Part of

Impacted files:
* `ios-release-to-org-openfoodfacts-scanner.yml`: clean rebuild of the `pod`s
* `Podfile.lock`: wtf
* `pubspec.lock`: wtf
* `pubspec.yaml`: upgraded `mobile_scanner`, that upgraded to mlkit 4.0.0
@monsieurtanuki monsieurtanuki requested a review from a team as a code owner April 2, 2023 10:48
@github-actions github-actions bot added dependencies GitHub 🍎 iOS iOS specific issues or PRs labels Apr 2, 2023
@monsieurtanuki monsieurtanuki requested a review from M123-dev April 2, 2023 10:48
@codecov-commenter
Copy link

Codecov Report

Merging #3837 (06461fc) into develop (23377d9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #3837   +/-   ##
========================================
  Coverage    10.77%   10.77%           
========================================
  Files          269      269           
  Lines        13416    13416           
========================================
  Hits          1446     1446           
  Misses       11970    11970           

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

@teolemon teolemon added 🤳 MLKit 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion… labels Apr 4, 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.

As I'm not affected nor can say what impact what decision which way has, let's try to merge after addressing my comment (the one with directly for the code) and then hope that we don't get bothered again.

Copy link
Member

Choose a reason for hiding this comment

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

Now we rebuild the pods on every release. Didn't we decide to rather update them on every opened PR and commit the new podspec to it

Does this even have any effect on the code base and the developers, I don't know. When running flutter run, they should install anyway don't they.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now we rebuild the pods on every release. Didn't we decide to rather update them on every opened PR and commit the new podspec to it

That would probably make sense; here it's just a test. And it looks like the pods failed even when not related to a release, just a PR merge, didn't they?
Which yml file would that be?

Does this even have any effect on the code base and the developers, I don't know. When running flutter run, they should install anyway don't they.

Actually I'm (temporarily?) not very affected either, as for some reason flutter builds have started failing on my ios emulator for a couple of weeks. It looks like I need to upgrade to Xcode 14 and Monterey, which is not straightforward (but still possible) on my macbook. For the next macos version that will be impossible because apple decided so.

@@ -105,7 +105,7 @@ jobs:
VERSION_CODE: ${{ inputs.VERSION_CODE }}

- name: Build app
run: cd ./packages/smooth_app && cd ios && pod update Sentry && pod update GoogleMLKit/BarcodeScanning && cd .. && flutter build ios --release --no-codesign -t lib/entrypoints/ios/main_ios.dart
run: cd ./packages/smooth_app && cd ios && rm -rf Pods && rm Podfile.lock && flutter pub get && pod install && cd .. && flutter build ios --release --no-codesign -t lib/entrypoints/ios/main_ios.dart
Copy link
Member

Choose a reason for hiding this comment

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

I'm guessing flutter pub get will fail, as it is called in the /ios folder

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm guessing flutter pub get will fail, as it is called in the /ios folder

No it's OK, as long as flutter is in the PATH (which is likely).

@monsieurtanuki monsieurtanuki merged commit 77c676a into openfoodfacts:develop Apr 6, 2023
@monsieurtanuki
Copy link
Contributor Author

Thank you @M123-dev for the review!

Again, it's rather a test, but if we could get rid with those painful pod issues we could spend more time on painful issues that are not related to pods 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies GitHub 🍎 iOS iOS specific issues or PRs 🤳 MLKit 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion…
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants