Suppress deprecation warnings for now-deprecated Glean APIs
Glean v39 allows to specify types for event extra keys. The old API is therefore deprecated. To avoid to much churn right now and keep the build going let's suppress the deprecation warnings.
This commit is contained in:
parent
2d2be26fbc
commit
d55f55d70c
|
@ -99,10 +99,14 @@ private class EventWrapper<T : Enum<T>>(
|
|||
null
|
||||
}
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
// FIXME(#19967): Migrate to non-deprecated API.
|
||||
this.recorder(extras)
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
// FIXME(#19967): Migrate to non-deprecated API.
|
||||
private val Event.wrapper: EventWrapper<*>?
|
||||
get() = when (this) {
|
||||
is Event.OpenedApp -> EventWrapper(
|
||||
|
|
|
@ -35,6 +35,8 @@ class TelemetryLifecycleObserver(
|
|||
val lastState = pausedState ?: return
|
||||
val currentState = createTabState()
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
// FIXME(#19967): Migrate to non-deprecated API.
|
||||
EngineMetrics.foregroundMetrics.record(mapOf(
|
||||
MetricsKeys.backgroundActiveTabs to lastState.activeEngineTabs.toString(),
|
||||
MetricsKeys.backgroundCrashedTabs to lastState.crashedTabs.toString(),
|
||||
|
|
Loading…
Reference in New Issue
Block a user