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

Reland "[url_launcher] Add Swift Package Manager integration to example app" #8148

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

loic-sharma
Copy link
Member

@loic-sharma loic-sharma commented Nov 22, 2024

Relands #8128 which had been reverted due to license check errors (see #8137).

Original PR description

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

Scenarios:

  1. Run the example app using Flutter 3.24 or higher with SwiftPM feature on: Plugin is added using Swift Package Manager.
  2. Run the example app using Flutter 3.24 or higher with SwiftPM feature off: Plugin is added using CocoaPods. The tool generates an empty FlutterGeneratedPluginSwiftPackage local package.
  3. Run the example app using Flutter version lower than 3.24: you get a build error because the example app's Xcode project expects a FlutterGeneratedPluginSwiftPackage local package but cannot find it.

Part of: flutter/flutter#159173

Tests

Current tests build the example apps twice: once with SwiftPM on, once with SwiftPM off.

Currently, the tests with SwiftPM on also migrate the example app to add SwiftPM integration. After this change, these tests will no longer need to migrate the example app as it is already migrated.

In other words, this change is covered by existing tests.

Migration steps

The app was migrated using these steps:

flutter channel master
flutter upgrade
flutter config --enable-swift-package-manager
flutter build ios --config-only
flutter build macos --config-only

Pre-launch Checklist

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

…lutter#8128)

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

Scenarios:

1. **Run the example app using Flutter 3.24 or higher with SwiftPM feature on**: Plugin is added using Swift Package Manager.
2. **Run the example app using Flutter 3.24 or higher with SwiftPM feature off**: Plugin is added using CocoaPods. The tool generates an empty `FlutterGeneratedPluginSwiftPackage` local package.
3. **Run the example app using Flutter version lower than 3.24**: you get a build error because the example app's Xcode project expects a `FlutterGeneratedPluginSwiftPackage` local package but cannot find it.

Part of: flutter/flutter#159173

### Tests

Current tests build the example apps twice: once with SwiftPM on, once with SwiftPM off. 

Currently, the tests with SwiftPM on also migrate the example app to add SwiftPM integration. After this change, these tests will no longer need to migrate the example app as it is already migrated.

In other words, this change is covered by existing tests.

### Migration steps

The app was migrated using these steps:

```console
flutter channel master
flutter upgrade
flutter config --enable-swift-package-manager
flutter build ios --config-only
flutter build macos --config-only
```
@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

@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

@stuartmorgan
Copy link
Contributor

test-exempt: configuration change

@stuartmorgan stuartmorgan added override: no changelog needed Override the check requiring CHANGELOG updates for most changes autosubmit Merge PR when tree becomes green via auto submit App labels Nov 22, 2024
@auto-submit auto-submit bot merged commit 9203213 into flutter:main Nov 22, 2024
77 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 22, 2024
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Nov 22, 2024
flutter/packages@913b99e...9203213

2024-11-22 [email protected] Reland
"[url_launcher] Add Swift Package Manager integration to example app"
(flutter/packages#8148)
2024-11-22 [email protected] [webview_flutter_wkwebview] Webkit
webview controller multiple registration fix (flutter/packages#8078)
2024-11-22 [email protected] [quick_actions_plaform_interface] add
localizedSubtitle (flutter/packages#8112)
2024-11-22 [email protected] [tools] Don't
check license of generated Swift package (flutter/packages#8137)
2024-11-21 [email protected] Roll Flutter from
8536b96 to 93d772c (37 revisions) (flutter/packages#8147)
2024-11-21 [email protected] [go_router] Fix: Consistent PopScope
Handling on Root Routes issue #140869 (flutter/packages#8045)
2024-11-21 [email protected] [in_app_purchase_storekit] fix price
displayed with wrong precision (flutter/packages#8127)
2024-11-21 [email protected] [pigeon]
Removes the `@protected` annotation from the InstanceManager field of
the `PigeonInternalProxyApiBaseClass` (flutter/packages#8125)
2024-11-21 [email protected] [google_maps_flutter] Use structured
Pigeon data on iOS (flutter/packages#8142)

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
@loic-sharma loic-sharma deleted the spm_reland_8128 branch November 22, 2024 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App override: no changelog needed Override the check requiring CHANGELOG updates for most changes p: url_launcher platform-ios platform-macos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants