Added required dependencies for hilt integration
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user