Skip to content

Conversation

@jpnurmi
Copy link
Member

@jpnurmi jpnurmi commented Nov 7, 2020

Description

Same as flutter/plugins@2595703 for path_provider_windows.

Moves the real implementation of package_info_plus_windows behind a
conditional export, instead exporting a stub on platforms that don't
support dart:ffi. This avoids build breakage in web projects that have
transitive dependencies on package_info_plus (and thus
package_info_plus__windows due to manual endorsement).

This will no longer be necessary once
flutter/flutter#52267 is fixed, since only
Windows builds will ever need to have code-level dependency on
package_info_plus_windows.

Related Issues

flutter/flutter#52267

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

Same as for path_provider_windows:
flutter/plugins@2595703

Moves the real implementation of package_info_plus_windows behind a
conditional export, instead exporting a stub on platforms that don't
support dart:ffi. This avoids build breakage in web projects that have
transitive dependencies on package_info_plus (and thus
package_info_plus__windows due to manual endorsement).

This will no longer be necessary once
flutter/flutter#52267 is fixed, since only
Windows builds will ever need to have code-level dependency on
package_info_plus_windows.
@jpnurmi jpnurmi requested a review from mhadaily November 7, 2020 20:49
@jpnurmi jpnurmi changed the title Fix package_plus builds for Web [package_info_plus] fix web build (broken by windows & ffi) Nov 7, 2020
@jpnurmi jpnurmi added the package_info_plus stuff related to package_info_plus label Nov 7, 2020
Copy link
Member

@miquelbeltran miquelbeltran left a comment

Choose a reason for hiding this comment

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

🤯 nice!

@jpnurmi
Copy link
Member Author

jpnurmi commented Nov 8, 2020

"Nice" 😁

@jpnurmi jpnurmi merged commit cf13721 into fluttercommunity:main Nov 8, 2020
@jpnurmi jpnurmi deleted the fix/package_plus branch November 8, 2020 14:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

package_info_plus stuff related to package_info_plus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants