TP-12345 | Change HMS SDK Instance Scope (#10623)
This commit is contained in:
@@ -11,16 +11,16 @@ import android.content.Context
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.android.components.ViewModelComponent
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext
|
||||
import dagger.hilt.components.SingletonComponent
|
||||
import javax.inject.Singleton
|
||||
import dagger.hilt.android.scopes.ViewModelScoped
|
||||
import live.hms.video.sdk.HMSSDK
|
||||
|
||||
@Module
|
||||
@InstallIn(SingletonComponent::class)
|
||||
@InstallIn(ViewModelComponent::class)
|
||||
class SDKModule {
|
||||
|
||||
@Singleton
|
||||
@ViewModelScoped
|
||||
@HmsSDK
|
||||
@Provides
|
||||
fun providesHmsSDK(@ApplicationContext applicationContext: Context): HMSSDK {
|
||||
|
||||
Reference in New Issue
Block a user