Skip to content

Commit

Permalink
Try something else
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 committed Jul 18, 2024
1 parent 35a4657 commit c5962ad
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions SwiftPMTests/analytics-import-test/analytics-import.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,28 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import FirebaseAnalytics
// import FirebaseAnalytics
import XCTest
#if canImport(SwiftUI)
import SwiftUI
#endif

class importTest: XCTestCase {
func testAnalyticsImported() {
Analytics.logEvent(AnalyticsEventPurchase,
parameters: [AnalyticsParameterShipping: 10.0])
}
// #if canImport(SwiftUI)
// import SwiftUI
// #endif

@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])
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 comments on commit c5962ad

Please sign in to comment.