mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Add Noop variants for the new watcher interfaces in :analytics:api
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
1c576fd42d
commit
ed020114dc
+19
@@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2025 Element Creations Ltd.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
||||||
|
* Please see LICENSE files in the repository root for full details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package io.element.android.services.analytics.noop.watchers
|
||||||
|
|
||||||
|
import dev.zacsweers.metro.AppScope
|
||||||
|
import dev.zacsweers.metro.ContributesBinding
|
||||||
|
import io.element.android.services.analytics.api.watchers.AnalyticsColdStartWatcher
|
||||||
|
|
||||||
|
@ContributesBinding(AppScope::class)
|
||||||
|
class NoopAnalyticsColdStartWatcher : AnalyticsColdStartWatcher {
|
||||||
|
override fun start() {}
|
||||||
|
override fun whenLoggingIn() {}
|
||||||
|
override fun onRoomListVisible() {}
|
||||||
|
}
|
||||||
+18
@@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2025 Element Creations Ltd.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
||||||
|
* Please see LICENSE files in the repository root for full details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package io.element.android.services.analytics.noop.watchers
|
||||||
|
|
||||||
|
import dev.zacsweers.metro.ContributesBinding
|
||||||
|
import io.element.android.libraries.di.SessionScope
|
||||||
|
import io.element.android.services.analytics.api.watchers.AnalyticsRoomListStateWatcher
|
||||||
|
|
||||||
|
@ContributesBinding(SessionScope::class)
|
||||||
|
class NoopAnalyticsRoomListStateWatcher : AnalyticsRoomListStateWatcher {
|
||||||
|
override fun start() {}
|
||||||
|
override fun stop() {}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user