这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[in_app_purchase] Explanation for casting details to implementations #4008

Conversation

renefloor
Copy link
Contributor

@renefloor renefloor commented Jun 3, 2021

The platform specific properties of ProductDetails and PurchaseDetails are removed in the platform interface, but can easily be retrieved by casting the object to the platform specific implementations. This PR adds a section to the readme explaining the casts of both types.

Fixes flutter/flutter#83140

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides. (Note that unlike the flutter/flutter repo, the flutter/plugins repo does use dart format. See plugin_tool format)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • 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 updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test exempt.
  • All existing and new tests are passing.

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

Copy link
Contributor

@mvanbeusekom mvanbeusekom left a comment

Choose a reason for hiding this comment

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

The description looks good, nice and detailed. I added some suggestions that you can have a look at.

One thing in particular, I learned from Stuart that we should try to refrain from using "you" as it might lead to confusion (who is the "you" that is being referred to). If have marked a few places where "you" is used but not all of them. It would be good to go over the whole paragraph and make the necessary updates.

renefloor added 2 commits June 3, 2021 16:12
and other textual improvements
@renefloor renefloor requested a review from mvanbeusekom June 4, 2021 07:12
renefloor added 2 commits June 4, 2021 09:14
# Conflicts:
#	packages/in_app_purchase/in_app_purchase/CHANGELOG.md
Copy link
Contributor

@mvanbeusekom mvanbeusekom left a comment

Choose a reason for hiding this comment

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

@renefloor I have added two more change suggestions, have a look if you agree

Co-authored-by: Maurits van Beusekom <maurits@vnbskm.nl>
@renefloor renefloor requested a review from mvanbeusekom June 4, 2021 07:33
Copy link
Contributor

@mvanbeusekom mvanbeusekom left a comment

Choose a reason for hiding this comment

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

LGTM

@mvanbeusekom mvanbeusekom 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 Jun 4, 2021
Co-authored-by: Daniël <32639467+danielroek@users.noreply.github.com>
@fluttergithubbot fluttergithubbot merged commit 7f21f86 into flutter:master Jun 4, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 4, 2021
fluttergithubbot pushed a commit to flutter/flutter that referenced this pull request Jun 4, 2021
@renefloor renefloor deleted the feature/docs-for-platform-productdetails branch June 16, 2021 09:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes p: in_app_purchase 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.

[in_app_purchase] Bring back SkuDetailsWrapper, SKProductWrapper for ProductDetails
6 participants