-
-
Notifications
You must be signed in to change notification settings - Fork 3
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/bugs in apple passkit getPasses #104
Conversation
return type; | ||
} | ||
} | ||
throw ArgumentError('Invalid PKPassType value: $jsonValue'); |
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.
What do you think of falling back to any
instead of throwing?
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.
I think it is a good solution, it removes the necessity for exception handling.
@@ -61,13 +61,42 @@ class ApplePkPass { | |||
} | |||
|
|||
/// Status after trying to add multiple passes. | |||
enum PkPassType { | |||
enum PKPassType { |
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.
Even though the name more closely resembles the iOS name, this is a breaking change. I don't think we should do a bump of the major version for this fix
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.
If you agree I will revert the name change, I think it is ok how it was before
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.
I've already done so
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.
Thanks for your fixes, I really appreciate it!
No description provided.