|
|
@ -26,8 +26,14 @@ class HiltConventionPlugin : Plugin<Project> {
|
|
|
|
pluginManager.apply("com.google.devtools.ksp")
|
|
|
|
pluginManager.apply("com.google.devtools.ksp")
|
|
|
|
dependencies {
|
|
|
|
dependencies {
|
|
|
|
add("ksp", libs.findLibrary("hilt.compiler").get())
|
|
|
|
add("ksp", libs.findLibrary("hilt.compiler").get())
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Add support for Jvm Module, base on org.jetbrains.kotlin.jvm
|
|
|
|
|
|
|
|
pluginManager.withPlugin("org.jetbrains.kotlin.jvm") {
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
add("implementation", libs.findLibrary("hilt.core").get())
|
|
|
|
add("implementation", libs.findLibrary("hilt.core").get())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** Add support for Android modules, based on [AndroidBasePlugin] */
|
|
|
|
/** Add support for Android modules, based on [AndroidBasePlugin] */
|
|
|
|
pluginManager.withPlugin("com.android.base") {
|
|
|
|
pluginManager.withPlugin("com.android.base") {
|
|
|
|