Stay organized with collections Save and categorize content based on your preferences.

InstrumentationContext

interface InstrumentationContext : Serializable
com.android.build.api.instrumentation.InstrumentationContext

Instrumentation context data that will be injected to AsmClassVisitorFactory on instantiation.

Summary

Properties

abstract Property<Int>

The asm api version to be passed to the ClassVisitor constructor.

Properties

apiVersion

abstract val apiVersion: Property<Int>

The asm api version to be passed to the ClassVisitor constructor.

| AGP version | Corresponding ASM version |
|-------------|---------------------------|
| 4.2.0 - 7.0 |            ASM7           |
|    7.1.0+   |            ASM9           |