mirror of
https://github.com/AdrianKuta/android-challange-adrian-kuta.git
synced 2025-07-02 01:57:59 +02:00
Initial commit
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
import com.android.build.api.dsl.ApplicationExtension
|
||||
import dev.adriankuta.flights.configureHilt
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.kotlin.dsl.configure
|
||||
|
||||
@Suppress("unused") // This is called as a string in the gradle plugin block
|
||||
internal class AndroidApplicationHiltConvention : Plugin<Project> {
|
||||
override fun apply(target: Project) {
|
||||
with(target) {
|
||||
with(pluginManager) {
|
||||
apply("com.google.devtools.ksp")
|
||||
apply("dagger.hilt.android.plugin")
|
||||
}
|
||||
|
||||
// android block
|
||||
extensions.configure<ApplicationExtension> {
|
||||
configureHilt()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user