Browse Source

[Infra] Remove analytics-import-test scheme (#13309)

Nick Cooke 1 year ago
parent
commit
1a5ad4b82f

+ 0 - 2
.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

+ 0 - 8
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: [

+ 0 - 39
SwiftPMTests/analytics-import-test/analytics-import.swift

@@ -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])
-//  }
-}

+ 0 - 23
SwiftPMTests/analytics-import-test/firebase-import.swift

@@ -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])
-  }
-}

+ 0 - 52
scripts/spm_test_schemes/analytics-import-test.xcscheme

@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   LastUpgradeVersion = "1200"
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-   </BuildAction>
-   <TestAction
-      buildConfiguration = "Debug"
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      shouldUseLaunchSchemeArgsEnv = "YES">
-      <Testables>
-         <TestableReference
-            skipped = "NO">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "analytics-import-test"
-               BuildableName = "analytics-import-test"
-               BlueprintName = "analytics-import-test"
-               ReferencedContainer = "container:">
-            </BuildableReference>
-         </TestableReference>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      buildConfiguration = "Debug"
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      ignoresPersistentStateOnLaunch = "NO"
-      debugDocumentVersioning = "YES"
-      debugServiceExtension = "internal"
-      allowLocationSimulation = "YES">
-   </LaunchAction>
-   <ProfileAction
-      buildConfiguration = "Release"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      debugDocumentVersioning = "YES">
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>