Add Dagger Hilt

This commit is contained in:
Kirill Kamakin
2021-11-07 10:21:05 +03:00
parent 54d6dd274d
commit 5d937e6d9e
5 changed files with 22 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.nav_version = "2.3.5"
ext.hilt_version = "2.38.1"
repositories {
google()
mavenCentral()
@@ -9,6 +10,7 @@ buildscript {
classpath "com.android.tools.build:gradle:7.0.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files