ModuleDefault

@Module
object ModuleDefault

Dagger Module base for module (core)

Author

Vitaliy Zarubin

Functions

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

A database that doesn't need migrations and encryption

provideCoreSecurityDatabase
Link copied to clipboard
@Provides
fun provideCoreSecurityDatabase(context: Context): CoreSecurityDatabase

Database with encryption and migrations

provideSharedPreferences
Link copied to clipboard
@Provides
fun provideSharedPreferences(context: Context): CorePreferences

Shared preferences service

provideUsersDataService
Link copied to clipboard
@Provides
fun provideUsersDataService(db: CoreDatabase, dbSecurity: CoreSecurityDatabase): CoreDataService

Database management service

Properties

migrations
Link copied to clipboard
private val migrations: List<Migration>

List with migrations for the database

password
Link copied to clipboard
private const val password: String

Base encryption key