Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[in_app_purchase] presentCodeRedemptionSheet #3274

Merged
merged 25 commits into from
Mar 5, 2021

Conversation

ABausG
Copy link
Contributor

@ABausG ABausG commented Nov 18, 2020

Description

Add support for presentCodeRedemptionSheet added to enable users to redeem subscription offer codes that you generated in App Store Connect.

More Info on this can be found here https://developer.apple.com/documentation/storekit/skpaymentqueue/3566726-presentcoderedemptionsheet?language=objc

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See [Contributor Guide]).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the [Flutter Style Guide].
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy].
  • I updated CHANGELOG.md to add a description of the change.
  • I signed the [CLA].
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

@ABausG ABausG marked this pull request as draft December 2, 2020 08:44
Anton Borries added 3 commits January 13, 2021 10:06
…tion-sheet

# Conflicts:
#	.cirrus.yml
#	packages/in_app_purchase/CHANGELOG.md
#	packages/in_app_purchase/pubspec.yaml
@nt4f04uNd
Copy link
Member

@ABausG why is this drafted? is there anything else you need to do on that PR to get this ready for review?

@ABausG ABausG marked this pull request as ready for review March 1, 2021 12:50
…tion-sheet

# Conflicts:
#	packages/in_app_purchase/CHANGELOG.md
#	packages/in_app_purchase/pubspec.yaml
@ABausG
Copy link
Contributor Author

ABausG commented Mar 1, 2021

@cyanglaz Could you take a look at this? The failing check is because that is running on an image with xcode 11 but the feature is only available with xcode 12. Could you point me to a direction on how I could solve that problem?

…tion-sheet

# Conflicts:
#	packages/in_app_purchase/CHANGELOG.md
#	packages/in_app_purchase/pubspec.yaml
Copy link
Contributor

@cyanglaz cyanglaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % 1 nits. Thanks a lot for the contribution!

Comment on lines +210 to 212
return Future<void>.sync(() {});
}
return Future<void>.sync(() {});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: @cyanglaz i wonder why all over the plugins

Future<void>.sync(() {});

is used instead of

Future<void>.value();

@cyanglaz cyanglaz added the waiting for tree to go green (Use "autosubmit") This PR is approved and tested, but waiting for the tree to be green to land. label Mar 5, 2021
@fluttergithubbot
Copy link

This pull request is not suitable for automatic merging in its current state.

  • Please get at least one approved review before re-applying this label. Reviewers: If you left a comment approving, please use the "approve" review action instead.

@fluttergithubbot fluttergithubbot removed the waiting for tree to go green (Use "autosubmit") This PR is approved and tested, but waiting for the tree to be green to land. label Mar 5, 2021
Copy link
Contributor

@cyanglaz cyanglaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyanglaz cyanglaz added the waiting for tree to go green (Use "autosubmit") This PR is approved and tested, but waiting for the tree to be green to land. label Mar 5, 2021
@fluttergithubbot fluttergithubbot merged commit b709f7e into flutter:master Mar 5, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 5, 2021
NickalasB added a commit to NickalasB/plugins that referenced this pull request Mar 8, 2021
* master:
  [google_sign_in] fix test(flutter#3690)
  [extension_google_sign_in_as_googleapis_auth] Update import (flutter#3689)
  [google_sign_in] Updates google_sign_in_platform_interfaces adding parametrized `clientId` (flutter#3686)
  Import flutter_test for future compatibility (flutter#3665)
  [ci] Disable analyze on stable for web plugins that contains null safety integration tests.  (flutter#3681)
  Bring HTML inputs into view automatically (flutter#3655)
  [in_app_purchase] presentCodeRedemptionSheet (flutter#3274)
  [google_maps_flutter_web] Downgrade mockito in example app. (flutter#3679)
  Update CI config for Flutter 2 (flutter#3674)
  [image_picker] fix flutter/flutter#71927 (flutter#3676)
  [google_maps_flutter_web] Move integration tests to example. (flutter#3675)
  [google_maps_flutter_web] Make google_maps_flutter_web work with latest plugins  (flutter#3673)

# Conflicts:
#	packages/webview_flutter/CHANGELOG.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes p: in_app_purchase platform-ios waiting for tree to go green (Use "autosubmit") This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants