Skip to content

Conversation

@loic-sharma
Copy link
Member

@loic-sharma loic-sharma commented Aug 15, 2024

The Flutter tool has a bug where removing the last Flutter plugin does not correctly update the CocoaPods integration.

This adds a test to ensure that the generated Swift package is properly updated when the last Flutter plugin is removed.

See: #11819 (comment)

Pre-launch Checklist

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

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Aug 15, 2024
@loic-sharma loic-sharma requested a review from jmagman August 15, 2024 20:00
@loic-sharma loic-sharma force-pushed the spm_remove_last_plugin branch from e62421e to 0743da7 Compare August 15, 2024 20:02
expect(generatedManifestFile.existsSync(), isTrue);

generatedManifest = generatedManifestFile.readAsStringSync();
const String emptyDependencies = 'dependencies: [\n \n ],\n';
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 doesn't use the multi-line string syntax as code editors often aggressively trim trailing whitespace on save, which breaks the test.

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for adding this test!

@loic-sharma loic-sharma added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 16, 2024
@auto-submit auto-submit bot merged commit 15876ff into flutter:master Aug 16, 2024
@loic-sharma loic-sharma deleted the spm_remove_last_plugin branch August 16, 2024 14:04
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Aug 16, 2024
flutter/flutter@bced008...a0c0453

2024-08-16 nate.w5687@gmail.com Style Guide updates (flutter/flutter#152525)
2024-08-16 engine-flutter-autoroll@skia.org Roll Packages from 86d15a6 to 2c37fb0 (5 revisions) (flutter/flutter#153571)
2024-08-16 zanderso@users.noreply.github.com Move Android API level 35 emulator tests to staging (flutter/flutter#153568)
2024-08-16 engine-flutter-autoroll@skia.org Roll Flutter Engine from a8fefc81188e to d5bf3afc601f (2 revisions) (flutter/flutter#153565)
2024-08-16 737941+loic-sharma@users.noreply.github.com [Swift Package Manager] Test removing the last Flutter plugin (flutter/flutter#153519)

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
Please CC rmistry@google.com,stuartmorgan@google.com,tarrinneal@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: 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
DBowen33 pushed a commit to DBowen33/flutter that referenced this pull request Aug 16, 2024
…r#153519)

The Flutter tool has a bug where removing the last Flutter plugin does not correctly update the CocoaPods integration.

This adds a test to ensure  that the generated Swift package is properly updated when the last Flutter plugin is removed.

See: flutter#11819 (comment)
Buchimi pushed a commit to Buchimi/flutter that referenced this pull request Sep 2, 2024
…r#153519)

The Flutter tool has a bug where removing the last Flutter plugin does not correctly update the CocoaPods integration.

This adds a test to ensure  that the generated Swift package is properly updated when the last Flutter plugin is removed.

See: flutter#11819 (comment)
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 tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants