-
Notifications
You must be signed in to change notification settings - Fork 29.8k
fix crash resulted from no flavor in mergeAssets task #29648
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
fix crash resulted from no flavor in mergeAssets task #29648
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
|
I signed it! |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
|
Are we not able to use the |
|
@dnfield not sure, can we do it in the gradle script? how can I check this? |
|
I'm asking if the existing flavor logic fails here. |
|
are you push this into master? I have meet the same problem now. |
|
Hello, are there any updates on this topic? Spent already 2 days to find that solution is here (since March) but no further steps have been taken since then. |
|
This sounds more like a bug in the way we merge the assets in add2app scenarios. I'd prefer we fix that logic in flutter.gradle directly. cc @xster |
|
+1. Having users pass something additional explicitly in is a bit inconvenient. We should fix the root issue in flutter.gradle. |
|
This is fixed in master. |
|
Hi @blasten |
|
He did reference #36805 (linked the other way around) |
Description
In packages/flutter_tools/gradle/flutter.gradle, if the Android existing app has flavors, we don't append the current flavor to find the correct mergeAssets task path.
Changes in this PR allows the developer to pass the current flavor of the app.
Besides,
wiki: https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps
should be updated after merging this PR.
Related Issues
This should fix #29646
Breaking Change
this is not a breaking change.
Similar PR
The idea of this PR is similar to this #27154 but here we pass the current flavor.