feat: add no op push manager for de-googled
parent
8d4f2445f2
commit
7762d534bb
@ -0,0 +1,14 @@
|
|||||||
|
package org.thoughtcrime.securesms.notifications
|
||||||
|
|
||||||
|
import org.session.libsignal.utilities.Log
|
||||||
|
|
||||||
|
class NoOpPushManager: PushManager {
|
||||||
|
|
||||||
|
override fun register(force: Boolean) {
|
||||||
|
Log.d("NoOpPushManager", "Push notifications not supported, not registering for push notifications")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun unregister(token: String) {
|
||||||
|
Log.d("NoOpPushManager", "Push notifications not supported, not unregistering for push notifications")
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package org.thoughtcrime.securesms.notifications
|
||||||
|
|
||||||
|
import dagger.Module
|
||||||
|
import dagger.Provides
|
||||||
|
import dagger.hilt.InstallIn
|
||||||
|
import dagger.hilt.components.SingletonComponent
|
||||||
|
import javax.inject.Singleton
|
||||||
|
|
||||||
|
@Module
|
||||||
|
@InstallIn(SingletonComponent::class)
|
||||||
|
class NoOpPushModule {
|
||||||
|
@Provides
|
||||||
|
@Singleton
|
||||||
|
fun provideNoOpManager(): PushManager = NoOpPushManager()
|
||||||
|
}
|
Loading…
Reference in New Issue