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

⚡ Capacitor 6 #108

Closed
robingenz opened this issue Dec 14, 2023 · 1 comment · Fixed by #146
Closed

⚡ Capacitor 6 #108

robingenz opened this issue Dec 14, 2023 · 1 comment · Fixed by #146
Assignees
Labels
breaking change Breaking change feature Feature
Milestone

Comments

@robingenz
Copy link
Member

According to this blog post, Capacitor 6 will be the latest version from February 2024. From this point on, all plugins in this repository should also support Capacitor 6. Capacitor 5 will no longer be supported from this date.

@robingenz robingenz added feature Feature breaking change Breaking change labels Dec 14, 2023
@robingenz robingenz added this to the v6.0.0 milestone Dec 14, 2023
@robingenz robingenz self-assigned this Dec 14, 2023
@robingenz robingenz pinned this issue Dec 14, 2023
@extropyst
Copy link

extropyst commented Jan 28, 2024

Correct configuration of dependencies for "@capacitor-mlkit/barcode-scanning" with capacitor 6.


Hello, I tell you that I am having problems using capacitor-mlkit (as seen in images number 1, 5, and 6 of the "project data" table). Specifically, I can't get the camera to run. That is to say, my camera component only works up to the point where permissions are requested (which are granted), however then the page goes blank (or at least the background of the page), and is left undone. nothing even if the "scan()" button is pressed multiple times.

Since when building the APK it was mentioned (as seen in image number 1) that it had to use Android SDK 34 (because it was using the latest versions of the dependencies, since it had had problems with previous versions), and since this requires gradle 8.2+, so I updated both things. However, that did not solve the problem.

Therefore I updated to Capacitor 6 to see if it worked, and since this requires @capacitor/core 6 (which in turn requires google services 4.4), I have migrated all capacitors to version 6 (including @capacitor/android), which which can be seen in image number 5.

                                              Project Data                                              
Reference Image
1 Package Build Logs npm install
2 variables.gradle variables.gradle
3 build.gradle build.gradle
4 gradle-wrapper.properties gradle-wrapper.properties
5 ionic info ionic info
6 npm install npm install

However since I am getting dependency conflict errors (because apparently barcode-scanning requires @capacitor/core 5.6), I was thinking if it would be advisable to use "--legacy-peer-deps", however since in the documentation of Capacitor to upgrade to version 6 mentions this:

Capacitor Docs (Updating to Cap 6)
npm install

(...Therefore I cannot find the correct configuration for each dependency of "@capacitor-mlkit/barcode-scanning".)


@robingenz robingenz unpinned this issue Apr 16, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking change Breaking change feature Feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants