2020-04-30 00:37:58 +02:00
|
|
|
package info.nightscout.androidaps.dependencyInjection
|
|
|
|
|
|
|
|
import dagger.Module
|
|
|
|
import dagger.android.ContributesAndroidInjector
|
|
|
|
import info.nightscout.androidaps.plugins.general.maintenance.ImportExportPrefs
|
2020-05-05 18:35:10 +02:00
|
|
|
import info.nightscout.androidaps.plugins.general.maintenance.PrefFileListProvider
|
2020-04-30 00:37:58 +02:00
|
|
|
import info.nightscout.androidaps.plugins.general.maintenance.formats.ClassicPrefsFormat
|
|
|
|
import info.nightscout.androidaps.plugins.general.maintenance.formats.EncryptedPrefsFormat
|
|
|
|
import info.nightscout.androidaps.utils.CryptoUtil
|
|
|
|
|
|
|
|
@Module
|
|
|
|
@Suppress("unused")
|
|
|
|
abstract class PreferencesModule {
|
|
|
|
|
|
|
|
@ContributesAndroidInjector abstract fun cryptoUtilInjector(): CryptoUtil
|
|
|
|
@ContributesAndroidInjector abstract fun importExportPrefsInjector(): ImportExportPrefs
|
|
|
|
@ContributesAndroidInjector abstract fun encryptedPrefsFormatInjector(): EncryptedPrefsFormat
|
|
|
|
@ContributesAndroidInjector abstract fun classicPrefsFormatInjector(): ClassicPrefsFormat
|
2020-05-05 18:35:10 +02:00
|
|
|
@ContributesAndroidInjector abstract fun prefImportListProviderInjector(): PrefFileListProvider
|
2020-04-30 00:37:58 +02:00
|
|
|
}
|