-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[in_app_purchase]IAP/platform interface add cancel status #4093
[in_app_purchase]IAP/platform interface add cancel status #4093
Conversation
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
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.
Approved a bit too fast. It would actually be good to add unit-tests that will verify the amount of elements in the enum and check that their index is correct.
Here are two examples:
- Test to verify the amount of enum values:
plugins/packages/camera/camera_platform_interface/test/types/exposure_mode_test.dart
Line 10 in 971d6c3
test('ExposureMode should contain 2 options', () { - Test to verify the index of each enum value:
plugins/packages/camera/camera_platform_interface/test/types/exposure_mode_test.dart
Line 16 in 971d6c3
test("ExposureMode enum should have items in correct index", () {
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, needs a rebase to resolve conflicts but can be merged afterwards
# Conflicts: # packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md # packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml
# Conflicts: # packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md # packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml
What's the status of this PR? |
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
@ydag Maybe rebase master to fix CI? |
This pull request is not suitable for automatic merging in its current state.
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
* master: [webview_flutter] Deprecate evaluateJavascript in favour of runJavaScript and runJavaScriptForResult. (flutter#4403) [webview_flutter] Add interface methods to load local files and HTML strings. (flutter#4446) [ci] add pedantic dep to new in_app_purchase pkgs (flutter#4471) [ci] Remove unused dep from file_selector. (flutter#4468) [ci] update build_runner dep in android_intent and file_selector example (flutter#4467) [webview_flutter] Add platform interface method `loadRequest`. (flutter#4450) Remove -Werror from deprecated plugin Android builds (flutter#4466) [webview_flutter] Update webview packages for Android and iOS to implement `runJavascript` and `runJavascriptReturningResult`. (flutter#4402) [camera] Fix CamcorderProfile Usages (flutter#4423) [google_sign_in] Use a transparent image as a placeholder for the `GoogleUserCircleAvatar` (flutter#4391) [in_app_purchase]IAP/platform interface add cancel status (flutter#4093) [image_picker] doc:readme image picker misprints (flutter#4421) Support Hybrid Composition through the GoogleMaps Widget (flutter#4082) [path_provider] started supporting background platform channels (flutter#4443) [device_info] started using Background Platform Channels (flutter#4456) # Conflicts: # packages/webview_flutter/webview_flutter/CHANGELOG.md # packages/webview_flutter/webview_flutter/pubspec.yaml
This PR adds a new
PurchaseStatus
namedcanceled
to distinguish between an error and user cancellation.Related issues:
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist
dart format
.)[shared_preferences]
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.