forked from thunderbird/thunderbird-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProviderModule.kt
More file actions
25 lines (20 loc) · 914 Bytes
/
ProviderModule.kt
File metadata and controls
25 lines (20 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package net.thunderbird.android.provider
import app.k9mail.core.android.common.provider.NotificationIconResourceProvider
import com.fsck.k9.preferences.FilePrefixProvider
import net.thunderbird.core.common.provider.AppNameProvider
import net.thunderbird.core.common.provider.BrandNameProvider
import net.thunderbird.core.ui.theme.api.FeatureThemeProvider
import net.thunderbird.core.ui.theme.api.ThemeProvider
import org.koin.android.ext.koin.androidContext
import org.koin.dsl.binds
import org.koin.dsl.module
internal val providerModule = module {
single {
TbAppNameProvider(androidContext())
} binds arrayOf(AppNameProvider::class, BrandNameProvider::class, FilePrefixProvider::class)
single<ThemeProvider> { TbThemeProvider() }
single<FeatureThemeProvider> { TbFeatureThemeProvider() }
single<NotificationIconResourceProvider> {
TbAppIconNotificationProvider()
}
}