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

Fix/bugs in apple passkit getPasses #104

Merged
merged 2 commits into from
Nov 29, 2024

Conversation

pedro-j-morais
Copy link
Contributor

No description provided.

@ueman
Copy link
Owner

ueman commented Nov 28, 2024

That's awesome! Thanks!

Does this fix #102 and #103?

@pedro-j-morais
Copy link
Contributor Author

Yes, with this fix both #102 and #103 are fixed

return type;
}
}
throw ArgumentError('Invalid PKPassType value: $jsonValue');
Copy link
Owner

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?

Copy link
Contributor Author

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 {
Copy link
Owner

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

Copy link
Contributor Author

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

Copy link
Owner

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

Copy link
Owner

@ueman ueman left a 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!

@ueman ueman merged commit 2a75121 into ueman:master Nov 29, 2024
1 check failed
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.

2 participants