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 caching of task bundleJsAndAssets #24331
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Could you please add description. Did you tested the change? |
@dulmandakh just edited the description |
how do you handle a case where asset is removed or not used anymore? |
If assets are removed or added, gradle will automatically run the task again because the input has changed. More information here: https://docs.gradle.org/current/userguide/more_about_tasks.html#sec:task_inputs_outputs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's ship it!
Ah, actually @SimonSimya: do you mind signing the CLA? Just go to http://code.facebook.com/cla and follow the steps. Once that's done, I can merge your PR :) |
Unfortunately we cannot merge PRs without a CLA :( Let me know if you have a chance to sign it and I will reopen it. |
Although this change is outdated (with few extra deleteDirs added), is there any chance we can reopen this? |
You can re-submit this PR @amank22 |
I tried the changes on my company project with AGP 7.1.3
Maybe there are other things which needs to be done. Was about to give a PR but will see if I can find something more in detail. Thanks |
Summary
Fixes #24330
Changelog
[Android] [fixed] - Fixed #24330
Test Plan
./gradlew assembleRelease
./gradlew assembleRelease
without changesbundleReleaseJsAndAssets
is UP-TO-DATEI tested with multiple flavors. It works when cleaning the build before and with all subsequent builds.