Remove the workaround for AIDL generated class is not visible to KSP

This commit is contained in:
Zongle Wang
2024-10-03 16:23:53 +08:00
committed by GitHub
parent 380f49a9e4
commit e8c925b78f

View File

@@ -23,18 +23,6 @@ android {
addFrameworkJar('framework-14.jar')
compileOnlyCommonJars()
// Workaround for https://github.com/google/dagger/issues/4158
androidComponents {
onVariants(selector().all(), { variant ->
afterEvaluate {
def capName = variant.name.capitalize()
tasks.getByName("ksp${capName}Kotlin") {
setSource(tasks.getByName("compile${capName}Aidl").outputs)
}
}
})
}
dependencies {
implementation "com.google.dagger:hilt-android:$daggerVersion"
ksp "com.google.dagger:hilt-compiler:$daggerVersion"