diff --git a/.github/workflows/spm.yml b/.github/workflows/spm.yml index 003fd15a0fb..681af1be996 100644 --- a/.github/workflows/spm.yml +++ b/.github/workflows/spm.yml @@ -117,5 +117,3 @@ jobs: run: scripts/third_party/travis/retry.sh ./scripts/build.sh swift-test ${{ matrix.target }} spmbuildonly - name: Version Tests run: scripts/third_party/travis/retry.sh ./scripts/build.sh version-test ${{ matrix.target }} spm - - name: Analytics Build Tests - run: scripts/third_party/travis/retry.sh ./scripts/build.sh analytics-import-test tvOS spm diff --git a/Package.swift b/Package.swift index f8cecd999c2..ce9d6f4c6a8 100644 --- a/Package.swift +++ b/Package.swift @@ -1172,14 +1172,6 @@ let package = Package( ], path: "SwiftPMTests/swift-test" ), - .testTarget( - name: "analytics-import-test", - dependencies: [ - "FirebaseAnalyticsWrapper", - "Firebase", - ], - path: "SwiftPMTests/analytics-import-test" - ), .testTarget( name: "objc-import-test", dependencies: [ diff --git a/SwiftPMTests/analytics-import-test/analytics-import.swift b/SwiftPMTests/analytics-import-test/analytics-import.swift deleted file mode 100644 index 810f4bb29ca..00000000000 --- a/SwiftPMTests/analytics-import-test/analytics-import.swift +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// import FirebaseAnalytics -import XCTest - -// #if canImport(SwiftUI) -// import SwiftUI -// #endif - -class importTest: XCTestCase { - func testFoo() { - XCTAssert(true) - } -// func testAnalyticsImported() { -// Analytics.logEvent(AnalyticsEventPurchase, -// parameters: [AnalyticsParameterShipping: 10.0]) -// } -// -// @available(iOS 13.0, macOS 10.15, macCatalyst 13.0, tvOS 13.0, *) -// @available(watchOS, unavailable) -// func testAnalyticsSwiftImported() { -// _ = Text("Hello, Analytics") -// .analyticsScreen(name: "analytics_text", -// class: "Greeting", -// extraParameters: ["greeted": true]) -// } -} diff --git a/SwiftPMTests/analytics-import-test/firebase-import.swift b/SwiftPMTests/analytics-import-test/firebase-import.swift deleted file mode 100644 index c69ea2f640b..00000000000 --- a/SwiftPMTests/analytics-import-test/firebase-import.swift +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -import Firebase -import XCTest - -class firebaseImportTest: XCTestCase { - func testAnalyticsImported() { - Analytics.logEvent(AnalyticsEventPurchase, - parameters: [AnalyticsParameterShipping: 10.0]) - } -} diff --git a/scripts/spm_test_schemes/analytics-import-test.xcscheme b/scripts/spm_test_schemes/analytics-import-test.xcscheme deleted file mode 100644 index e47accce648..00000000000 --- a/scripts/spm_test_schemes/analytics-import-test.xcscheme +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - -