Skip to content

Fix flavor-conditional asset bundling for path dependencies #156687

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

Merged

Conversation

andrewkolos
Copy link
Contributor

@andrewkolos andrewkolos commented Oct 14, 2024

Fixes #155755

When building the asset bundle during, the --flavor option isn't considered when searching for assets from dependencies. This PR fixes that.

It's possible that when initially implementing this feature, I thought that flavor-conditional assets didn't make sense for packages. While I still think that way regarding pub packages, using this feature makes a lot more sense for monorepo projects.

Pre-launch checklist

@andrewkolos andrewkolos added the tool Affects the "flutter" command-line tool. See also t: labels. label Oct 14, 2024
@andrewkolos andrewkolos marked this pull request as ready for review October 14, 2024 18:48
@andrewkolos andrewkolos requested a review from bkonyi October 14, 2024 18:49
@andrewkolos andrewkolos added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 15, 2024
@auto-submit auto-submit bot merged commit 2dad95b into flutter:master Oct 15, 2024
136 checks passed
@andrewkolos andrewkolos added the cp: beta cherry pick this pull request to beta release candidate branch label Oct 21, 2024
@flutteractionsbot
Copy link

Failed to create CP due to merge conflicts.
You will need to create the PR manually. See the cherrypick wiki for more info.

andrewkolos added a commit to andrewkolos/flutter that referenced this pull request Oct 21, 2024
…156687)

Fixes flutter#155755

When building the asset bundle during, the `--flavor` option isn't considered when searching for assets from dependencies. This PR fixes that.

It's possible that when initially implementing this feature, I thought that flavor-conditional assets didn't make sense for packages. While I still think that way regarding pub packages, using this feature makes a lot more sense for monorepo projects.

<details>

<summary> Pre-launch checklist </summary> 

</details>
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 cp: beta cherry pick this pull request to beta release candidate branch tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flavor-conditional asset bundling does not work when declared within a direct main path dependencies
3 participants