Skip to content

[in_app_purchase] Add api to expose country code - #6540

Merged
auto-submit[bot] merged 20 commits into
flutter:mainfrom
reidbaker:i141627-country-code-api-top-line
Apr 17, 2024
Merged

[in_app_purchase] Add api to expose country code#6540
auto-submit[bot] merged 20 commits into
flutter:mainfrom
reidbaker:i141627-country-code-api-top-line

Conversation

@reidbaker

@reidbakerreidbaker commented Apr 15, 2024

Copy link
Copy Markdown
Contributor
  • Add changelog and version bump
  • dependency override from package tool

Fixesflutter/flutter/issues/141627

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/packages repo does use dart format.)
  • I signed the [CLA].
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I [linked to 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].
  • All existing and new tests are passing.

@reidbaker
reidbaker marked this pull request as ready for review April 15, 2024 19:06

@LouiseHsuLouiseHsu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ios side lgtm! thanks for adding the ios implementation too!

@gmackallgmackall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Android LGTM! Just some nitpicky docs comments

Comment threadpackages/in_app_purchase/in_app_purchase/lib/in_app_purchase.dart Outdated
Comment threadpackages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md Outdated
reidbakerand others added 3 commits April 16, 2024 14:10
Co-authored-by: Gray Mackall <34871572+gmackall@users.noreply.github.com>
…ANGELOG.md
Co-authored-by: Gray Mackall <34871572+gmackall@users.noreply.github.com>
…b/src/in_app_purchase_platform.dart
Co-authored-by: Gray Mackall <34871572+gmackall@users.noreply.github.com>

@stuartmorgan-gstuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor comments, but this looks good to split out the first PR (with just the platform interface part).

///
///
Future<void> countryCode() =>
throw UnimplementedError('countryCode() has not been implemented.');

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be calling the new platform interface method?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

And you'll want to add Dart unit tests at this layer that it is in fact calling through.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Done! Thanks for the out of band explanation of this packages value.

version: 3.2.0

environment:
sdk: ^3.1.0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

FYI these values will need to be updated to match i_a_p_storekit's lower limits when you do the final app-facing PR, otherwise pub get will fail.

Comment threadpackages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md Outdated
… have a test in addition to in_app_purchase_interface

@LouiseHsuLouiseHsu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@reidbakerreidbaker added the override: no versioning needed Override the check requiring version bumps for most changes label Apr 17, 2024
@reidbaker

This comment was marked as outdated.

@reidbakerreidbaker removed the override: no versioning needed Override the check requiring version bumps for most changes label Apr 17, 2024
@reidbakerreidbaker added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 17, 2024
@auto-submit
auto-submitBot merged commit 3f4c0f5 into flutter:mainApr 17, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 18, 2024
auto-submitBot pushed a commit to flutter/flutter that referenced this pull request Apr 18, 2024
flutter/packages@d39830e...0e3809d
2024-04-18 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.0 to 3.25.1 (flutter/packages#6562)
2024-04-18 stuartmorgan@google.com [ci] Add Linux desktop support to Linux custom_package_tests (flutter/packages#6551)
2024-04-17 katelovett@google.com [two_dimensional_scrollables] Refactor Spans for common use (flutter/packages#6550)
2024-04-17 reidbaker@google.com [in_app_purchase] Add api to expose country code (flutter/packages#6540)
2024-04-17 stuartmorgan@google.com [camera] Initial iOS Pigeon conversion (flutter/packages#6553)
2024-04-17 reidbaker@google.com [in_app_purchase] Add countryCode implementation to android and storekit (flutter/packages#6556)
2024-04-17 magder@google.com [google_sign_in_ios] Upgrade GoogleSignIn iOS SDK to 7.1 (flutter/packages#6404)
2024-04-17 reidbaker@google.com [in_app_purchase_platform_interface] Adds countryCode API (flutter/packages#6548)
2024-04-17 stuartmorgan@google.com [google_maps_flutter] Update app-facing package iOS requirements (flutter/packages#6552)
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
@vmeretinvmeretin mentioned this pull request Apr 19, 2024
11 tasks
@reidbaker
reidbaker deleted the i141627-country-code-api-top-line branch April 19, 2024 15:28
gilnobrega pushed a commit to gilnobrega/flutter that referenced this pull request Apr 22, 2024
flutter/packages@d39830e...0e3809d
2024-04-18 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.0 to 3.25.1 (flutter/packages#6562)
2024-04-18 stuartmorgan@google.com [ci] Add Linux desktop support to Linux custom_package_tests (flutter/packages#6551)
2024-04-17 katelovett@google.com [two_dimensional_scrollables] Refactor Spans for common use (flutter/packages#6550)
2024-04-17 reidbaker@google.com [in_app_purchase] Add api to expose country code (flutter/packages#6540)
2024-04-17 stuartmorgan@google.com [camera] Initial iOS Pigeon conversion (flutter/packages#6553)
2024-04-17 reidbaker@google.com [in_app_purchase] Add countryCode implementation to android and storekit (flutter/packages#6556)
2024-04-17 magder@google.com [google_sign_in_ios] Upgrade GoogleSignIn iOS SDK to 7.1 (flutter/packages#6404)
2024-04-17 reidbaker@google.com [in_app_purchase_platform_interface] Adds countryCode API (flutter/packages#6548)
2024-04-17 stuartmorgan@google.com [google_maps_flutter] Update app-facing package iOS requirements (flutter/packages#6552)
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
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
- **Add changelog and version bump**
- **dependency override from package tool**
Fixesflutter/flutter/issues/141627
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
- **Add changelog and version bump**
- **dependency override from package tool**
Fixesflutter/flutter/issues/141627
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
- **Add changelog and version bump**
- **dependency override from package tool**
Fixesflutter/flutter/issues/141627
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appp: in_app_purchase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[in_app_purchase] Feature Request: add store's countryCode to API

4 participants

@reidbaker@stuartmorgan-g@gmackall@LouiseHsu