Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[various] Add Swift Package Manager integration to example apps #8219

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

loic-sharma
Copy link
Member

@loic-sharma loic-sharma commented Dec 3, 2024

This migrates various example apps to have Swift Package Manager integration. This raises the example apps' Flutter SDK requirement to 3.24.0 or higher.

I will get a text exemption for this change.

The example apps were migrated using the following commands:

dart run script/tool/bin/flutter_plugin_tools.dart build-examples --ios --swift-package-manager
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --macos --swift-package-manager

⚠️ The following plugins' example apps are not included in this change as their migration included non-SPM changes that require closer review:

  1. google_sign_in
  2. google_sign_in_ios
  3. image_picker
  4. image_picker_ios
  5. image_picker_macos
  6. pigeon

Part of: flutter/flutter#159173

Pre-launch Checklist

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

@@ -247,12 +255,10 @@
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh",
"${PODS_CONFIGURATION_BUILD_DIR}/in_app_purchase_storekit/in_app_purchase_storekit_privacy.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/shared_preferences_foundation/shared_preferences_foundation_privacy.bundle",
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 is expected: in_app_purchase_storekit hasn't been migrated to SPM yet, but shared_preferences_foundation has.

@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 60;
objectVersion = 54;
Copy link
Member Author

@loic-sharma loic-sharma Dec 3, 2024

Choose a reason for hiding this comment

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

I'm not sure why this was changed. However, this seems reasonable. Please let me know if you'd like me to revert this line.

Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC this is just based on what version of Xcode was last used to write the project file; it shouldn't matter.

@@ -471,7 +461,6 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
// DEVELOPMENT_TEAM = S8QB4VV633;
Copy link
Member Author

Choose a reason for hiding this comment

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

FYI this isn't related to SPM but is a reasonable change

@loic-sharma loic-sharma force-pushed the spm_example_apps_integration branch from b2f75ea to c5f3f9f Compare December 3, 2024 23:08
@@ -3,14 +3,15 @@
archiveVersion = 1;
classes = {
};
objectVersion = 60;
objectVersion = 54;
Copy link
Member Author

Choose a reason for hiding this comment

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

Same comment as #8219 (comment)

@loic-sharma loic-sharma marked this pull request as ready for review December 4, 2024 00:19
@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, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!).

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. The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

Copy link
Contributor

@tarrinneal tarrinneal left a comment

Choose a reason for hiding this comment

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

Shared Prefs approval

Copy link
Contributor

@LouiseHsu LouiseHsu left a comment

Choose a reason for hiding this comment

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

in app purchase ell gee tee em

@stuartmorgan
Copy link
Contributor

test-exempt: configuration change

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

lgtm for google maps!

Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

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

LGTM for all packages

@loic-sharma loic-sharma added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 4, 2024
@auto-submit auto-submit bot merged commit bd8dafa into flutter:main Dec 4, 2024
77 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 6, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 6, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 9, 2024
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Dec 9, 2024
flutter/packages@bc0c22d...45bcc32

2024-12-05 [email protected] [various] Add
Swift Package Manager integration to Google sign in example apps
(flutter/packages#8230)
2024-12-05 [email protected] Roll Flutter from
e1e4ee9 to ab5b20c (7 revisions) (flutter/packages#8236)
2024-12-05 [email protected] [various] Update iOS/macOS Pigeon
versions (flutter/packages#8226)
2024-12-05 [email protected] [ci] Adds google_adsense to labeler.yml
(flutter/packages#8231)
2024-12-05 [email protected] [pigeon] adds event channel support for
kotlin and swift (flutter/packages#7892)
2024-12-04 [email protected] [google_adsense]
(Experimental) AdSense plugin for Flutter Web (flutter/packages#6871)
2024-12-04 [email protected] [various] Add
Swift Package Manager integration to image picker examp…
(flutter/packages#8227)
2024-12-04 [email protected] [pigeon] Add
Swift Package Manager integration to example app (flutter/packages#8225)
2024-12-04 [email protected] [video_player_avfoundation]
Split iOS native code into multiple files (flutter/packages#8171)
2024-12-04 [email protected] Roll Flutter from
e64ee5d to e1e4ee9 (18 revisions) (flutter/packages#8224)
2024-12-04 [email protected] [various] Add
Swift Package Manager integration to example apps
(flutter/packages#8219)
2024-12-04 [email protected] [google_maps_flutter] Annotate
deprecated member usage (flutter/packages#8214)
2024-12-04 [email protected] [pigeon]
Fixes channel names of the named constructors of ProxyApis.
(flutter/packages#8201)
2024-12-03 [email protected] [local_auth] Add compatibility with
intl 0.20 (flutter/packages#8217)
2024-12-03 [email protected] [various] Replaces deprecated
`whereNotNull()` (flutter/packages#8215)
2024-12-03 [email protected] Roll Flutter from
08e26a3 to e64ee5d (20 revisions) (flutter/packages#8213)
2024-12-02 [email protected] [shared_preferences] Limit Android
decoding (flutter/packages#8187)
2024-12-02 49699333+dependabot[bot]@users.noreply.github.com
[camera_android]: Bump androidx.annotation:annotation from 1.9.0 to
1.9.1 in /packages/camera/camera_android/android (flutter/packages#8164)
2024-12-02 49699333+dependabot[bot]@users.noreply.github.com [gradle]:
Bump org.jetbrains.kotlin:kotlin-gradle-plugin from 2.0.21 to 2.1.0 in
/packages/pigeon/platform_tests/test_plugin/android
(flutter/packages#8205)
2024-11-28 [email protected] Roll Flutter from
fae695e to 08e26a3 (19 revisions) (flutter/packages#8197)

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 [email protected] 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants