Skip to content

Instantly share code, notes, and snippets.

@romtsn
Created December 6, 2021 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romtsn/d0d0f355534e0750e1b263532552e4b3 to your computer and use it in GitHub Desktop.
Save romtsn/d0d0f355534e0750e1b263532552e4b3 to your computer and use it in GitHub Desktop.
Bytecode Transformations: transformClassesWith
variant.transformClassesWith(
SpanAddingClassVisitorFactory::class.java,
InstrumentationScope.ALL
) { params ->
if (extension.tracingInstrumentation.forceInstrumentDependencies.get()) {
params.invalidate.setDisallowChanges(System.currentTimeMillis())
}
params.debug.setDisallowChanges(
extension.tracingInstrumentation.debug.get()
)
params.tmpDir.set(tmpDir)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment