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

Move SDK summary generation to a separate library #3431

Merged
merged 2 commits into from Jan 3, 2023
Merged

Conversation

natebosch
Copy link
Member

The details of finding or generating the SDK summary are different
internally, so this code gets patched. The patch file ends up needing
frequent maintenance to keep up with unrelated other changes in this
file. Separate the SDK summary related code into it's own library which
will have a patch so that it is more isolated from other changes.

Move isFlutter to sdk_summary.dart since it is used there, and it is
related to the SDK. Update the test which imports from src.

Move packagePath to build_asset_uri_generator so it can be used in
both resolver.dart and sdk_summary.dart.

The details of finding or generating the SDK summary are different
internally, so this code gets patched. The patch file ends up needing
frequent maintenance to keep up with unrelated other changes in this
file. Separate the SDK summary related code into it's own library which
will have a patch so that it is more isolated from other changes.

Move `isFlutter` to `sdk_summary.dart` since it is used there, and it is
related to the SDK. Update the test which imports from `src`.

Move `packagePath` to `build_asset_uri_generator` so it can be used in
both `resolver.dart` and `sdk_summary.dart`.
@jakemac53 jakemac53 merged commit bbbe12c into master Jan 3, 2023
@jakemac53 jakemac53 deleted the simplify-patch branch January 3, 2023 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants