Skip to content

Commit

Permalink
Avoid Dagger Hilt ApplicationContextModule deprecation note
Browse files Browse the repository at this point in the history
As in <google/dagger#3601 (comment)>

Signed-off-by: Patryk Miś <foss@patrykmis.com>
  • Loading branch information
PatrykMis committed Aug 29, 2024
1 parent ca02c22 commit 9b47f54
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/src/main/java/com/neo/speaktouch/SpeakTouchApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,19 @@ package com.neo.speaktouch
import android.app.Application
import android.content.Context
import dagger.hilt.android.HiltAndroidApp
import dagger.hilt.android.qualifiers.ApplicationContext
import timber.log.Timber
import java.lang.ref.WeakReference
import javax.inject.Inject

@HiltAndroidApp
class SpeakTouchApplication : Application() {

// TODO Delete when https://github.com/google/dagger/issues/3601 is resolved.
@Inject
@ApplicationContext
lateinit var context: Context

override fun onCreate() {
super.onCreate()

Expand Down

0 comments on commit 9b47f54

Please # to comment.