[go: nahoru, domu]

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

[in_app_purchase] Update minimum Flutter version to 3.3 and iOS 11 #6873

Merged
merged 4 commits into from
Feb 17, 2023

Conversation

jmagman
Copy link
Member
@jmagman jmagman commented Dec 21, 2022

in_app_purchase part of flutter/flutter#101965.

Built the in_app_purchase and in_app_purchase_ios example projects on Flutter 3.3. and let the tool auto-migrate various Xcode project/Podfile files.

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.
  • All existing and new tests are passing.

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

@@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>11.0</string>
Copy link
Member Author

Choose a reason for hiding this comment

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

The changes in packages/in_app_purchase/in_app_purchase/example/ and the Xcode project files/Podfile were automatically applied by the Flutter tool.

Comment on lines +227 to +230
NSLocale *system = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
NSDictionary *map = [FIAObjectTranslator getMapFromNSLocale:system];
XCTAssertEqualObjects(map[@"currencySymbol"], system.currencySymbol);
XCTAssertEqualObjects(map[@"countryCode"], system.countryCode);
Copy link
Member Author
@jmagman jmagman Dec 22, 2022

Choose a reason for hiding this comment

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

I edited this manually, removing the @available check.

@@ -20,7 +20,7 @@ Downloaded by pub (not CocoaPods).
s.public_header_files = 'Classes/**/*.h'
s.ios.dependency 'Flutter'
s.osx.dependency 'FlutterMacOS'
s.ios.deployment_target = '9.0'
s.ios.deployment_target = '11.0'
Copy link
Member Author

Choose a reason for hiding this comment

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

I also edited this manually.

@@ -1,3 +1,7 @@
## 0.3.5
Copy link
Member Author

Choose a reason for hiding this comment

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

@stuartmorgan I bumped the iOS federated version by a minor version for the iOS minimum change, wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems reasonable. There's a lot of grey area in minor vs bugfix.

@jmagman jmagman changed the title [in_app_purchase] Bump minimum Flutter version to 3.3 for iOS plugins [in_app_purchase] Update minimum Flutter version to 3.3 and iOS 11 Dec 22, 2022
@@ -1,3 +1,7 @@
## NEXT
Copy link
Contributor

Choose a reason for hiding this comment

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

We should do a version bump and README update here, as with ios_platform_images.

(It's arguable in the federated world what "supported version" actually means, since technically you could use 3.1.1 or whatever with iOS 9 and an older version of Flutter and the resolver would just give you an older version of the implementation package, but I think having the current implementation's version in the main package is the least confusing.)

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right, not sure how I missed this chart in the README:

| **Support** | SDK 16+ | 9.0+ | 10.15+ |

Will add a patch bump.

@@ -2,7 +2,7 @@ name: in_app_purchase_storekit
description: An implementation for the iOS and macOS platforms of the Flutter `in_app_purchase` plugin. This uses the StoreKit Framework.
repository: https://github.com/flutter/plugins/tree/main/packages/in_app_purchase/in_app_purchase_storekit
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
version: 0.3.4
version: 0.3.5

environment:
sdk: ">=2.14.0 <3.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

The next line (I can't comment there since it's outside the context) is missing the flutter minimum update to 3.3.

Copy link
Member Author

Choose a reason for hiding this comment

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

🤦‍♀️ this was hard to keep all these package changes organized, thanks for catching. Glad I split it into reviewable-sized changes.

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

@jmagman jmagman added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 16, 2023
@auto-submit auto-submit bot merged commit ea048a2 into flutter:main Feb 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 17, 2023
@jmagman jmagman deleted the iap-bump-version-33 branch February 17, 2023 18:08
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 17, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 17, 2023
* cd09d9d31 [ci] Update iOS simulator (flutter/plugins#7131)

* 016c3b7f1 Roll Flutter from df41e58 to 22e17bb (28 revisions) (flutter/plugins#7186)

* 7160f55e8 [ios_platform_images] Update minimum version to iOS 11 (flutter/plugins#6874)

* ea048a249 [in_app_purchase] Update minimum Flutter version to 3.3 and iOS 11 (flutter/plugins#6873)

* 530442456 [google_sign_in_web] Migrate to the GIS SDK. (flutter/plugins#6921)

* 9a3a77e6c [image_picker] Fix images changing to incorrect orientation (flutter/plugins#7187)

* 8f3419be5 Roll Flutter from 22e17bb to 298d8c7 (20 revisions) (flutter/plugins#7190)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: in_app_purchase platform-ios
Projects
None yet
3 participants