You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class HiltConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
pluginManager.apply("com.google.devtools.ksp")
dependencies {
add("ksp", libs.findLibrary("hilt.compiler").get())
add("implementation", libs.findLibrary("hilt.core").get())
}
/** Add support for Android modules, based on [AndroidBasePlugin] */
pluginManager.withPlugin("com.android.base") {
pluginManager.apply("dagger.hilt.android.plugin")
dependencies {
add("implementation", libs.findLibrary("hilt.android").get())
}
}
}
}
}
When the one module was applied plugin com.android.base, It would be implementation hilt.core and hilt.android.
But the hilt.android contains hilt.core, so that hilt.core will be a redundant implementation.
Relevant logcat output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Is there a StackOverflow question about this issue?
What happened?
nowinandroid/build-logic/convention/src/main/kotlin/HiltConventionPlugin.kt
Lines 23 to 41 in 420076f
When the one module was applied plugin
com.android.base
, It would be implementationhilt.core
andhilt.android
.But the
hilt.android
containshilt.core
, so thathilt.core
will be a redundant implementation.Relevant logcat output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: