Skip to content

Commit

Permalink
Use ASM9 when AGP 7.1.0+ is used
Browse files Browse the repository at this point in the history
RELNOTES=Use ASM9 when AGP 7.1.0+ is used
PiperOrigin-RevId: 460752989
  • Loading branch information
java-team-github-bot authored and Dagger Team committed Jul 13, 2022
1 parent db6a656 commit df8b8e2
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -44,6 +44,7 @@ import org.gradle.api.attributes.Attribute
import org.gradle.api.provider.ProviderFactory
import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.process.CommandLineArgumentProvider
import org.objectweb.asm.Opcodes

/**
* A Gradle plugin that checks if the project is an Android project and if so, registers a
Expand Down Expand Up @@ -348,6 +349,9 @@ class HiltGradlePlugin @Inject constructor(
it.crossCompilationRootValidationDisabled.set(
hiltExtension.disableCrossCompilationRootValidation
)
if (SimpleAGPVersion.ANDROID_GRADLE_PLUGIN_VERSION >= SimpleAGPVersion(7, 1)) {
it.asmApiVersion.set(Opcodes.ASM9)
}
}

val componentClasses = project.files(
Expand Down

0 comments on commit df8b8e2

Please sign in to comment.