fun platformModule()

in shared/src/androidMain/kotlin/org/jetbrains/kotlinconf/platformModule.android.kt [11:30]


fun platformModule(
    application: Application,
    notificationIconId: Int,
    notificationConfig: NotificationPlatformConfiguration.Android,
): Module {
    return module {
        single<ObservableSettings> {
            SharedPreferencesSettings(PreferenceManager.getDefaultSharedPreferences(application))
        }
        single<LocalNotificationService> {
            AndroidLocalNotificationService(
                timeProvider = get(),
                context = application,
                iconId = notificationIconId,
                logger = get(),
            )
        }
        single<NotificationPlatformConfiguration> { notificationConfig}
    }
}