Updated on 2026-08-14
This commit is contained in:
parent
dd4584835f
commit
424c9f8898
2 changed files with 20 additions and 0 deletions
18
app/src/main/java/com/tangem/di/AppModule.kt
Normal file
18
app/src/main/java/com/tangem/di/AppModule.kt
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package com.tangem.di
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import dagger.Module
|
||||
import javax.inject.Singleton
|
||||
import dagger.Provides
|
||||
|
||||
@Module
|
||||
class AppModule {
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun provideContext(application: Application): Context {
|
||||
return application
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -24,4 +24,6 @@ class ToastHelper {
|
|||
}.show()
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue