Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add dagger to dependencies
  • Loading branch information
ouattararomuald committed Sep 2, 2021
commit 65e731fe9977061c68f9f434aa64c557f094d007
9 changes: 9 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id 'kotlin-android-extensions'
id 'kotlin-kapt'
id 'androidx.navigation.safeargs'
id 'dagger.hilt.android.plugin'
}

android {
Expand Down Expand Up @@ -80,4 +81,12 @@ dependencies {

//Kotlin SharedPreference
implementation 'androidx.preference:preference-ktx:1.1.1'

// Dagger Hilt
implementation "com.google.dagger:hilt-android:$hilt_version"
kapt "com.google.dagger:hilt-compiler:$hilt_version"
}

kapt {
correctErrorTypes true
}
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ buildscript {
ext{
kotlin_version = "1.5.20"
gradle_version = '7.0.1'
hilt_version = '2.38.1'
coroutines_version = "1.5.0"
navigation_version = "2.3.5"
room_version = "2.3.0"
Expand All @@ -16,6 +17,7 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21"
classpath "com.android.tools.build:gradle:$gradle_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_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
Expand Down