mirror of
https://github.com/bitwarden/android.git
synced 2026-06-09 08:09:16 -05:00
BIT-282: Include Bitwarden SDK dependency (#44)
This commit is contained in:
committed by
Álison Fernandes
parent
8fdfcb1ea2
commit
dd4b937061
@@ -0,0 +1,22 @@
|
||||
package com.x8bit.bitwarden.data.platform.datasource.di
|
||||
|
||||
import com.bitwarden.sdk.Client
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.components.SingletonComponent
|
||||
import javax.inject.Singleton
|
||||
|
||||
/**
|
||||
* Provides dependencies related to encryption / decryption / secure generation.
|
||||
*/
|
||||
@Module
|
||||
@InstallIn(SingletonComponent::class)
|
||||
object EncryptionModule {
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun provideBitwardenClient(): Client {
|
||||
return Client(null)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user