-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support kt_android and kt_android_local_test (bazelbuild/intellij PR …
…import #5789) The Bazel Intellij/Aswb plugins internally iterate over the `RuleTypes` enum values when deciding what target kinds to recognize. Example [KotlinBlazeRules](https://github.com/bazelbuild/intellij/blob/google/kotlin/src/com/google/idea/blaze/kotlin/KotlinBlazeRules.java#L60-L64) `rules_kotlin` internally has native rules backing the `kt_jvm_` targets which is why targets of these rule kinds are recognized today. The `kt_android_` rules in rules_kotlin are using a macro/rule "sandwich" where the top level `kt_android_` targets are just macros that eventually create a `android_library`/`android_local_test` target that's recognized by Aswb/ijwb. We have a branch of `rules_kotlin` that drops the macro/rule sandwiches in favor of a single `kt_android_` rule. This pull request simply enables support for that branch allowing aswb/ijwb to recognize those proper `kt_android_` rule kinds, allowing features like resource resolution, running tests from the gutter, and debugging tests. Closes #5789 PiperOrigin-RevId: 591014584
- Loading branch information
1 parent
7fff27a
commit 6f40cdd
Showing
9 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters