Assigned
Status Update
Comments
ro...@sentry.io <ro...@sentry.io> #2
I think this should be under AGP's issue tracker
ro...@sentry.io <ro...@sentry.io> #3
Please move this to the AGP tracker.
Thanks.
am...@google.com <am...@google.com> #4
We can add the class reader object to ClassContext
, however, we'll need to restrict calling certain methods in ClassReader
which might impact the transformation later.
Description
Would it be possible to expose the ClassReader that is used to read classes' bytecode in the new Instrumentation API? I know it's probably gonna be a breaking change for
createClassVisitor
method, but perhaps this could be part ofInstrumentationContext
or something alike?My use-case is I'd like to read some constants (in particular, the R8 marker ) from the classes' constant pool and now I need to do a bunch of reflection to reach the originating
ClassReader
, which isn't great obviously.Studio Build: N/A Version of Gradle Plugin: 7.2.0 Version of Gradle: N/A Version of Java: N/A OS: N/A