-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix(capacitor): make switch statements exhaustive #3135
Conversation
@danielsogl It looks like the iOS build is failing for this PR, would you be able to look into it? |
@dwieeb I think the error is exclusive to iOS 14 because the new given options are not available for iOS 13. |
Yes, the additional cases will break compilation under previous versions of Xcode. This needs some |
I will update the PR |
} | ||
|
||
#endif |
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 #endif
needs to be moved up. When compiled out, it's breaking the brackets on the switch statement.
After some examination, the problem is a bit more complicated. I've opened a new PR, #3160, to clean things up with the enums. Please feel free to comment on that if you have any concerns. |
fixes: #3134