Add Noop variants for the new watcher interfaces in :analytics:api
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
29117ce93d
commit
f098c5e027
@@ -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() {}
|
||||||
|
}
|
||||||
@@ -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