From 1db8993bcd57375697842feced848c92db4ad00f Mon Sep 17 00:00:00 2001 From: Maciek Grzybowski Date: Mon, 4 Apr 2022 09:29:22 +0200 Subject: [PATCH] Fix `dogfooding` branch build after adding tvOS support to `develop` --- Sources/Datadog/RUM/RUMMonitor/Scopes/RUMViewScope.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Datadog/RUM/RUMMonitor/Scopes/RUMViewScope.swift b/Sources/Datadog/RUM/RUMMonitor/Scopes/RUMViewScope.swift index c0effe8fd1..24cce20baf 100644 --- a/Sources/Datadog/RUM/RUMMonitor/Scopes/RUMViewScope.swift +++ b/Sources/Datadog/RUM/RUMMonitor/Scopes/RUMViewScope.swift @@ -355,7 +355,7 @@ internal class RUMViewScope: RUMScope, RUMContextProvider { ) ) -#if DD_SDK_ENABLE_INTERNAL_MONITORING +#if DD_SDK_ENABLE_INTERNAL_MONITORING && !os(tvOS) if #available(iOS 15, *) { // Starting MetricKit monitor from here, to ensure that our launch time was already reported // in `.applicationStart` action and we could compare both measurements. @@ -563,7 +563,7 @@ internal class RUMViewScope: RUMScope, RUMContextProvider { /// THE FOLLOWING IMPLEMENTATION SHALL BE REMOVED ONCE /// METRICKIT HAS BEEN EVALUATED. /// -#if DD_SDK_ENABLE_INTERNAL_MONITORING +#if DD_SDK_ENABLE_INTERNAL_MONITORING && !os(tvOS) import MetricKit /// The MetricMonitor only exists for internal testing, it will log the MetricKit payloads at reception to