Updated on 2026-08-14
This commit is contained in:
parent
c153efaa88
commit
16bcc5c593
9 changed files with 130 additions and 6 deletions
|
|
@ -280,6 +280,8 @@ dependencies {
|
|||
implementation(tangemDeps.card.android) {
|
||||
exclude(module = "joda-time")
|
||||
}
|
||||
implementation(tangemDeps.hot.core)
|
||||
implementation(tangemDeps.hot.android)
|
||||
|
||||
/** DI */
|
||||
implementation(deps.hilt.android)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
package com.tangem.tap.di.hot
|
||||
|
||||
import android.content.Context
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import com.tangem.hot.sdk.TangemHotSdk
|
||||
import com.tangem.hot.sdk.android.create
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.android.components.ActivityComponent
|
||||
import dagger.hilt.android.qualifiers.ActivityContext
|
||||
import dagger.hilt.android.scopes.ActivityScoped
|
||||
|
||||
@Module
|
||||
@InstallIn(ActivityComponent::class)
|
||||
internal object TangemHotSdkModule {
|
||||
|
||||
@Provides
|
||||
@ActivityScoped
|
||||
fun provideRootAppComponentContext(@ActivityContext context: Context): TangemHotSdk {
|
||||
return TangemHotSdk.create(context as AppCompatActivity)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue