Skip to content

[in_app_purchase_storekit] Fix type of error code returned from native code in SKReceiptManager.retrieveReceiptData #6265

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

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

blaugold
Copy link
Contributor

@blaugold blaugold commented Mar 5, 2024

The native code did not convert the integer code returned from FIAObjectTranslator getMapFromNSError to a string before passing it to FlutterError errorWithCode. This allowed an int to flow into a position where the corresponding Dart code expects a String.

Fixes flutter/flutter#144595

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

…e code in `SKReceiptManager.retrieveReceiptData`
@LouiseHsu
Copy link
Contributor

Ah, thanks a lot for the quick fix!! LGTM

@blaugold
Copy link
Contributor Author

blaugold commented Mar 5, 2024

@LouiseHsu Thanks for the review! Is there anything else left for me to do before this can be merged?

@LouiseHsu
Copy link
Contributor

Nope, go ahead and merge it :)

@blaugold
Copy link
Contributor Author

blaugold commented Mar 5, 2024

Great! Could you do that for me? 😊 I don't have the necessary permissions.

@LouiseHsu LouiseHsu merged commit 2aa6e3f into flutter:main Mar 5, 2024
@LouiseHsu
Copy link
Contributor

oops, didnt realize!

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 5, 2024
…om native code in `SKReceiptManager.retrieveReceiptData` (flutter/packages#6265)
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Mar 5, 2024
flutter/packages@0625827...2aa6e3f

2024-03-05 gabriel@terwesten.net [in_app_purchase_storekit] Fix type of error code returned from native code in `SKReceiptManager.retrieveReceiptData` (flutter/packages#6265)
2024-03-05 slowhand0309@gmail.com [video_player] Fix typo in readme (flutter/packages#6264)
2024-03-05 10687576+bparrishMines@users.noreply.github.com [pigeon] Separates message call code generation into separate methods in the SwiftGenerator (flutter/packages#5959)
2024-03-05 5384625+pzierahn@users.noreply.github.com [flutter_markdown] Fix WidgetSpan Support in MarkdownElementBuilder (flutter/packages#6225)
2024-03-04 stuartmorgan@google.com [webview_flutter] Make WebKitWebViewWidget unit tests stateless (flutter/packages#6228)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[in_app_purchase_storekit] Native code returns wrong type for error code in SKReceiptManager.retrieveReceiptData
2 participants