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 v7 support #831

Merged
merged 4 commits into from
Feb 6, 2025
Merged

Feat: Capacitor v7 support #831

merged 4 commits into from
Feb 6, 2025

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 -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
Collaborator Author

Choose a reason for hiding this comment

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

it did for me, the sdk was set with min iOS version 13 and it was complaining that the project required version 14.

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 🚀

@lucas-zimerman
Copy link
Collaborator Author

Dependency Review failed with issues in regard to the new sample, those issues will not impact the user code so I will only take actions about it after the PR

@lucas-zimerman lucas-zimerman merged commit efa0115 into main Feb 6, 2025
14 of 15 checks passed
@lucas-zimerman lucas-zimerman deleted the feat/cap7 branch February 6, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Capacitor 7
2 participants