Allow disabling android resource merging via android_non_transitive_r_class configuration option#15806
Conversation
…r_class` configuration option With this change each `android_library` target will generate `R` class with entries only from current local target instead of including entries from transitive closure of dependencies usually created via a separate merging action. `R` entries from libraries should be referenced by their fully qualified name otherwise build would fail.
|
Hello @arunkumar9t2, Can you please check build failures and Code conflict. Thank you! |
|
@arunkumar9t2 We are marking the above PR as stale because it has not had any recent activity from many days. |
|
Thank you for contributing to the Bazel repository! This pull request has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-review", "awaiting-PR-merge". Please reach out to the triage team ( |
|
Thank you for contributing to the Bazel repository! This pull request has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this PR is still relevant and should stay open, please post any comment here and the PR will no longer be marked as stale. |
|
@arunkumar9t2 Is this still an issue in the Starlark Android rules? If so, shall we migrate this to rules_android? |
|
Let's close this and re-open in the Android rules repo if it still matters. |
With this change each
android_librarytarget will generateRclass with entries only from current local target instead of including entries from transitive closure of dependencies usually created via a separate merging action.Rentries from libraries should be referenced by their fully qualified name otherwise build would fail.Reference: https://developer.android.com/studio/build/optimize-your-build#use-non-transitive-r-classes
In our large android app, we save several thousand actions and reduce cache output by 1.1 GB.
Adapted from #11385 and renamed flag to be in line with Android Gradle plugin flag.
Fixes bazelbuild/rules_android#10