Added required dependencies for hilt integration

This commit is contained in:
Prachi
2021-08-24 13:49:01 +05:30
parent d9f735689d
commit 0c8fe006b9
3 changed files with 20 additions and 0 deletions

View File

@@ -13,6 +13,11 @@ plugins {
id('com.google.firebase.crashlytics')
id('com.google.gms.google-services')
id('com.google.firebase.firebase-perf')
id('dagger.hilt.android.plugin')
}
kapt {
correctErrorTypes true
}
def VERSION_NAME = "1.8.1"
@@ -367,6 +372,17 @@ dependencies {
debugImplementation 'com.readystatesoftware.chuck:library:1.1.0'
releaseImplementation 'com.readystatesoftware.chuck:library-no-op:1.1.0'
implementation 'com.google.dagger:hilt-android:2.38.1'
kapt 'com.google.dagger:hilt-compiler:2.38.1'
// For instrumentation tests
androidTestImplementation 'com.google.dagger:hilt-android-testing:2.38.1'
kaptAndroidTest 'com.google.dagger:hilt-compiler:2.38.1'
// For local unit tests
testImplementation 'com.google.dagger:hilt-android-testing:2.38.1'
kaptTest 'com.google.dagger:hilt-compiler:2.38.1'
}
tasks.withType(Compiler) {

View File

@@ -12,8 +12,10 @@ import androidx.multidex.MultiDexApplication
import com.naviapp.BuildConfig
import com.naviapp.analytics.utils.NaviTrackEvent
import com.naviapp.utils.DEV
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber
@HiltAndroidApp
class NaviApplication : MultiDexApplication() {
override fun onCreate() {

View File

@@ -20,6 +20,8 @@ buildscript {
// Add the Crashlytics Gradle plugin.
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
classpath 'com.google.firebase:perf-plugin:1.3.4'
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.38.1'
}
}