1
0
Fork 0
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:
Konstantin Ivanov 2025-05-07 18:02:03 +02:00 committed by GitHub
parent 0e9a997998
commit 01638ff2f7
Signed by: github
GPG key ID: B5690EEEBB952194
26 changed files with 273 additions and 10 deletions

View file

@ -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()
}
}

View file

@ -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)
}
}

View file

@ -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)
}

View file

@ -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)
}

View file

@ -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)
}
}