mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3636 Notifications | Firebase messaging service implementation (#2383)
This commit is contained in:
parent
0e9a997998
commit
01638ff2f7
26 changed files with 273 additions and 10 deletions
|
@ -105,4 +105,8 @@ class AuthCacheDataStore(private val cache: AuthCache) : AuthDataStore {
|
|||
override suspend fun cancelAccountMigration(account: Id) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override suspend fun registerDeviceToken(request: Command.RegisterDeviceToken) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
|
@ -121,4 +121,8 @@ class AuthDataRepository(
|
|||
override suspend fun debugExportLogs(dir: String): String {
|
||||
return factory.remote.debugExportLogs(dir)
|
||||
}
|
||||
|
||||
override suspend fun registerDeviceToken(command: Command.RegisterDeviceToken) {
|
||||
factory.remote.registerDeviceToken(command)
|
||||
}
|
||||
}
|
|
@ -47,4 +47,6 @@ interface AuthDataStore {
|
|||
suspend fun getNetworkMode(): NetworkModeConfig
|
||||
suspend fun setNetworkMode(modeConfig: NetworkModeConfig)
|
||||
suspend fun debugExportLogs(dir: String): String
|
||||
|
||||
suspend fun registerDeviceToken(request: Command.RegisterDeviceToken)
|
||||
}
|
|
@ -28,4 +28,6 @@ interface AuthRemote {
|
|||
suspend fun getVersion(): String
|
||||
suspend fun setInitialParams(command: Command.SetInitialParams)
|
||||
suspend fun debugExportLogs(dir: String): String
|
||||
|
||||
suspend fun registerDeviceToken(command: Command.RegisterDeviceToken)
|
||||
}
|
|
@ -110,4 +110,8 @@ class AuthRemoteDataStore(
|
|||
override suspend fun debugExportLogs(dir: String): String {
|
||||
return authRemote.debugExportLogs(dir)
|
||||
}
|
||||
|
||||
override suspend fun registerDeviceToken(command: Command.RegisterDeviceToken) {
|
||||
authRemote.registerDeviceToken(command)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue