bazelbuild / bazelbuild/rules_android

[QUESTION] Any suggestions for doing some global ASM instrumentation processing?

Open
#377 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
203
Forks
95
PR merge metrics
No merged PRs in 30d

Description

In our scenarios, we do have some requirements for checking or instrumenting the final deploy_jar.

I've considered using singlejar to run all the transitive dependencies and then putting them into the android_binary dependencies, but it still relies on dependency parsing for parts such as resources.

At the moment, it seems that inserting a processor to pass an external transformer to handle deploy.jar at https://github.com/bazelbuild/rules_android/blob/5238060315a8117c96b62cb528a4c933bd85e5e6/rules/android_binary/impl.bzl#L532 is the most feasible way. I would like to ask if there are any more suitable suggestions?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.