21 lines
523 B
Kotlin
21 lines
523 B
Kotlin
import com.looker.droidify.getLibrary
|
|
import com.looker.droidify.libs
|
|
import org.gradle.api.Plugin
|
|
import org.gradle.api.Project
|
|
import org.gradle.kotlin.dsl.dependencies
|
|
|
|
class AndroidHiltPlugin : Plugin<Project> {
|
|
override fun apply(target: Project) {
|
|
with(target) {
|
|
with(pluginManager) {
|
|
apply("com.google.dagger.hilt.android")
|
|
apply("com.google.devtools.ksp")
|
|
}
|
|
|
|
dependencies {
|
|
add("implementation", libs.getLibrary("hilt.android"))
|
|
add("ksp", libs.getLibrary("hilt.compiler"))
|
|
}
|
|
}
|
|
}
|
|
} |