From 90cf49cc96cf7b1dd9fa43418f55cfd953198bda Mon Sep 17 00:00:00 2001 From: ArielDemarco Date: Wed, 3 Jul 2024 18:32:37 -0300 Subject: [PATCH] Release 6.1 (#268) * Fixed compiling issues on tvOS * Removed unnecssary files * Rollbacked codecov@v4 to v3 --- .github/workflows/run-tests.yml | 2 +- .../Capture/WebView/WebViewCaptureService+Options.swift | 2 ++ Tests/TestSupport/Extensions/XCTestCase+Extension.swift | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index c4b5c928..3a0549b1 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -68,7 +68,7 @@ jobs: upload-bundles: true - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: diff --git a/Sources/EmbraceCore/Capture/WebView/WebViewCaptureService+Options.swift b/Sources/EmbraceCore/Capture/WebView/WebViewCaptureService+Options.swift index 18ba599e..9d4b9de8 100644 --- a/Sources/EmbraceCore/Capture/WebView/WebViewCaptureService+Options.swift +++ b/Sources/EmbraceCore/Capture/WebView/WebViewCaptureService+Options.swift @@ -2,6 +2,7 @@ // Copyright © 2024 Embrace Mobile, Inc. All rights reserved. // +#if canImport(WebKit) import Foundation extension WebViewCaptureService { @@ -20,3 +21,4 @@ extension WebViewCaptureService { } } } +#endif diff --git a/Tests/TestSupport/Extensions/XCTestCase+Extension.swift b/Tests/TestSupport/Extensions/XCTestCase+Extension.swift index c27a279b..1588c2ec 100644 --- a/Tests/TestSupport/Extensions/XCTestCase+Extension.swift +++ b/Tests/TestSupport/Extensions/XCTestCase+Extension.swift @@ -17,7 +17,7 @@ public extension XCTestCase { var testName: String { do { var testName = try XCTUnwrap(name.split(separator: " ").last) - if #available(iOS 16.0, *) { + if #available(iOS 16.0, tvOS 16.0, *) { let pattern = try Regex("]") testName = testName.replacing(pattern, with: "()") } else {