To install SophiTracker with SPM:
- In Xcode, select File > Swift Packages > Add Package Dependency
- Add the url where to download the library: https://github.com/globeandmail/sophi-sdk-ios-spm
import SophiSDK
let tracker = SophiTracker.shared
let config = SophiTracker.Config(client: "APP_ID",
deviceType: .mobile,
environment: .dev,
appVersion: "1.0",
userID: nil)
tracker?.setUpTracker(config: config)
For more information and examples, please refer to the file Metrics.swift
in SophiTestApp in https://github.com/globeandmail/sophi-sdk-ios-test-app