forked from home-assistant/android
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPushProviderModule.kt
More file actions
29 lines (24 loc) · 830 Bytes
/
PushProviderModule.kt
File metadata and controls
29 lines (24 loc) · 830 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
26
27
28
29
package io.homeassistant.companion.android.push
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import dagger.multibindings.IntoSet
import io.homeassistant.companion.android.common.push.PushProvider
/**
* Dagger module that provides push provider implementations for the full flavor.
* Includes FCM, UnifiedPush, and WebSocket providers.
*/
@Module
@InstallIn(SingletonComponent::class)
abstract class PushProviderModule {
@Binds
@IntoSet
abstract fun bindFcmPushProvider(provider: FcmPushProvider): PushProvider
@Binds
@IntoSet
abstract fun bindUnifiedPushProvider(provider: UnifiedPushProvider): PushProvider
@Binds
@IntoSet
abstract fun bindWebSocketPushProvider(provider: WebSocketPushProvider): PushProvider
}