Skip to content

Commit

Permalink
Add hilt dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubMosakowski committed Jul 9, 2022
1 parent 04bc331 commit 3702396
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
}
apply from: "$rootDir/shared.gradle"

Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ buildscript {
dependencies {
classpath Classpaths.gradle
classpath Classpaths.kotlin
classpath Classpaths.hilt
}
}

Expand Down
2 changes: 2 additions & 0 deletions buildSrc/src/main/kotlin/Dependency.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ object Versions {
const val minSdk = 23
const val targetSdk = 32
const val gradle = "7.1.3"
const val hilt = "2.41"
const val kotlin = "1.7.10"
const val navigation = "2.5.0"
}

object Classpaths {
const val gradle = "com.android.tools.build:gradle:${Versions.gradle}"
const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}"
const val hilt = "com.google.dagger:hilt-android-gradle-plugin:${Versions.hilt}"
}
2 changes: 2 additions & 0 deletions data/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
}
apply from: "$rootDir/shared.gradle"

Expand Down
2 changes: 2 additions & 0 deletions domain/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
}
apply from: "$rootDir/shared.gradle"

Expand Down
2 changes: 2 additions & 0 deletions presentation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
}
apply from: "$rootDir/shared.gradle"

Expand Down
5 changes: 5 additions & 0 deletions shared.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ android {
jvmTarget = '1.8'
}
}

dependencies {
implementation "com.google.dagger:hilt-android:${Versions.hilt}"
kapt "com.google.dagger:hilt-compiler:${Versions.hilt}"
}

0 comments on commit 3702396

Please sign in to comment.