Skip to content
New issue

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

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

Already on GitHub? # to your account

Feat: Capacitor v7 support #831

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Feat: Capacitor v7 support #831

wants to merge 3 commits into from

Conversation

lucas-zimerman
Copy link
Collaborator

@lucas-zimerman lucas-zimerman commented Jan 31, 2025

Depends on: #832
Fixes: #830

This PR adds support for Capacitor V7 to the SDK.
No break changes were introduced.

@lucas-zimerman lucas-zimerman marked this pull request as ready for review January 31, 2025 21:29
Comment on lines -20 to +21
# required minimum version of Capacitor 4.
miniOSVersion = '13.0'
# required minimum version of Capacitor 7.
miniOSVersion = '14.0'
Copy link
Member

Choose a reason for hiding this comment

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

This could be potentially breaking for some users, but since it's the fallback I think it's okay.

Comment on lines -25 to +32
if capacitorVersion.start_with?("2.") or capacitorVersion.start_with?("3.")
miniOSVersion = '12.0'
majorVersion = capacitorVersion.split('.').first.to_i

if majorVersion <= 3
miniOSVersion = '12.0' # Capacitor 3, 2.
elsif majorVersion < 7
miniOSVersion = '13.0' # Capacitor 6 or older.
else
miniOSVersion = '13.0' # Required for Capacitor 4 and newer.
miniOSVersion = '14.0' # Capacitor 7 or higher.
Copy link
Member

@krystofwoldrich krystofwoldrich Feb 4, 2025

Choose a reason for hiding this comment

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

Does the Capacitor V7 fail to build without the matching minimum target?

I would have expected that a library could specify an older target than the framework, but I see that they say to match the target when upgrading the plugins.

Copy link
Member

@krystofwoldrich krystofwoldrich left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Capacitor 7
2 participants