-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
base: main
Are you sure you want to change the base?
Conversation
# required minimum version of Capacitor 4. | ||
miniOSVersion = '13.0' | ||
# required minimum version of Capacitor 7. | ||
miniOSVersion = '14.0' |
There was a problem hiding this comment.
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.
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Depends on: #832
Fixes: #830
This PR adds support for Capacitor V7 to the SDK.
No break changes were introduced.