Skip to content
Snippets Groups Projects
Commit e5c567d6 authored by Taras's avatar Taras
Browse files

Add hilt dependency

parent d87f92bc
No related branches found
No related tags found
No related merge requests found
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: 'org.jetbrains.kotlin.android' apply plugin: 'org.jetbrains.kotlin.android'
apply plugin: 'androidx.navigation.safeargs.kotlin' apply plugin: 'androidx.navigation.safeargs.kotlin'
apply plugin: 'kotlin-kapt'
apply plugin: 'dagger.hilt.android.plugin'
android { android {
compileSdk rootProject.ext.sdkVersion compileSdk rootProject.ext.sdkVersion
...@@ -94,12 +96,21 @@ dependencies { ...@@ -94,12 +96,21 @@ dependencies {
//Log //Log
implementation 'com.jakewharton.timber:timber:5.0.1' implementation 'com.jakewharton.timber:timber:5.0.1'
//Hilt
def hilt = "2.45"
implementation "com.google.dagger:hilt-android:$hilt"
kapt "com.google.dagger:hilt-compiler:$hilt"
//test //test
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
} }
kapt {
correctErrorTypes = true
}
if (getGradle().getStartParameter().getTaskRequests().toString().toLowerCase().contains("gplay")) { if (getGradle().getStartParameter().getTaskRequests().toString().toLowerCase().contains("gplay")) {
apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics' apply plugin: 'com.google.firebase.crashlytics'
......
...@@ -14,6 +14,7 @@ buildscript { ...@@ -14,6 +14,7 @@ buildscript {
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$androidx_nav_version" classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$androidx_nav_version"
classpath 'com.google.gms:google-services:4.3.15' classpath 'com.google.gms:google-services:4.3.15'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.5' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.5'
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.45'
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment