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: Capacitor 7 Support #362

Open
ckoon-infopro opened this issue Jan 23, 2025 · 1 comment
Open

feat: Capacitor 7 Support #362

ckoon-infopro opened this issue Jan 23, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ckoon-infopro
Copy link

Capacitor 7 has been released.
https://capacitorjs.com/docs/updating/7-0

After upgrading from Capacitor 6 to Capacitor 7, I encountered a syntax error while using this plugin.

error: cannot find symbol
            call.error("Camera is not running");
                ^
  symbol:   method error(String)

Plugin's success() and error() methods have been removed, use resolve() and reject() instead.

Source: https://capacitorjs.com/docs/updating/plugins/7-0

@ryaa ryaa self-assigned this Jan 27, 2025
@ryaa ryaa added the enhancement New feature or request label Jan 27, 2025
@ryaa ryaa pinned this issue Feb 3, 2025
@ryaa
Copy link
Member

ryaa commented Feb 3, 2025

@ckoon-infopro I have implemented the required changes to support Capacitor 7 (see #366). Can you please install capacitor-community/camera-preview v7.0.0 from my branch https://github.com/ryaa/camera-preview/tree/chore/update-to-capacitor-7 and check if this works as expected. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants