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

Conversation

@tosaka07
Copy link

@tosaka07 tosaka07 commented Jul 22, 2022

Added IMMEDIATE_AND_CHARGE_FULL_PRICE to ProrationMode.

IMMEDIATE_AND_CHARGE_FULL_PRICE is new in Billing Library v4.
https://developer.android.com/google/play/billing/release-notes#4-0-0-summary-changes

This library has already been updated to v5, so there is no problem.

Fixes flutter/flutter#108164

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 relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart 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, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
    • just added the enum case.
  • All existing and new tests are passing.

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

@tosaka07 tosaka07 requested a review from GaryQian as a code owner July 22, 2022 11:46
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@google-cla
Copy link

google-cla bot commented Jul 22, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@stuartmorgan-g
Copy link
Contributor

Thanks for the contribution! You’ve checked boxes in the PR checklist above that are not reflected in this PR, so I’m assuming this is a work in progress and am marking it as a Draft. Please review the checklist, updating the PR as appropriate, and when the checklist reflects the state of the PR as posted please feel free to mark it as ready for review.

@stuartmorgan-g stuartmorgan-g marked this pull request as draft July 28, 2022 20:11
@tosaka07
Copy link
Author

@stuartmorgan
Sorry about that.
I have reviewed the checklist and updated CHANGELOG and pubspec.

ProrationMode is mapped to Int by JsonSerializable.
Therefore, I thought no additional test was needed, is that correct?

@stuartmorgan-g
Copy link
Contributor

ProrationMode is mapped to Int by JsonSerializable. Therefore, I thought no additional test was needed, is that correct?

As it says in the automated response text above:

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Would it matter to you if this enum value were accidentally dropped in a later update? Or if the value were accidentally changed to something other than 5 such that it didn't work correctly?

@GaryQian
Copy link
Contributor

#6415 is based off of this and has landed. @tosaka07 Thank you for your contribution!

@GaryQian GaryQian closed this Sep 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[in_app_purchase][android] Add IMMEDIATE_AND_CHARGE_FULL_PRICE to ProrationMode

3 participants