ModuleSingleton

@Module
object ModuleSingleton

Dagger Module base for app

Functions

provideAppDatabase
Link copied to clipboard
@Provides
@Singleton
fun provideAppDatabase(application: Application): AppDatabase

A database that doesn't need migrations and encryption

provideAppHttpClient
Link copied to clipboard
@Provides
@Singleton
fun provideAppHttpClient(): AppHttpClient

Ktor http client

provideAppStorage
Link copied to clipboard
@Provides
@Singleton
fun provideAppStorage(context: Context): CrossStorage

Shared preferences

provideCoreSecurityDatabase
Link copied to clipboard
@Provides
@Singleton
fun provideCoreSecurityDatabase(application: Application): AppSecurityDatabase

Database with encryption and migrations

provideUsersDataService
Link copied to clipboard
@Provides
@Singleton
fun provideUsersDataService(db: AppDatabase, dbSecurity: AppSecurityDatabase): AppDataService

Database management service

Properties

migrations
Link copied to clipboard
private val migrations: <ERROR CLASS>

List with migrations for the database