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

Open
#377 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, java

Research direction

Start by reading rules/android_binary/impl.bzl around line 532, where the issue identifies processing deploy.jar as a possible integration point. Review how transitive dependencies and resources are handled there, then clarify the desired external transformer behavior; the issue provides no tests or acceptance criteria for determining when the work is done.

Written by the indexing model from the issue text.

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?

Dominant language
Java
Stars
205
Forks
113
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bazelbuild/rules_android

All issues in bazelbuild/rules_android

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.