diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index b7f32f6..1281416 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -17,11 +17,11 @@ jobs: build_and_test_examples: needs: cancel_previous - runs-on: macos-11 + runs-on: macos-latest steps: - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '13.0' + xcode-version: latest-stable - uses: actions/checkout@v2 - uses: actions/cache@v2 with: diff --git a/Example/BasicExample/BasicExample.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Example/BasicExample/BasicExample.xcworkspace/xcshareddata/swiftpm/Package.resolved index d998217..76e6d2d 100644 --- a/Example/BasicExample/BasicExample.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Example/BasicExample/BasicExample.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -6,8 +6,8 @@ "repositoryURL": "https://github.com/segmentio/analytics-swift", "state": { "branch": null, - "revision": "26f23a2ae9b8dd47aeee1bdaa1e203f3bed6044e", - "version": "1.4.0" + "revision": "efc111b5fccaebd1063ef0db6d206c252da387ec", + "version": "1.4.8" } }, { @@ -24,8 +24,8 @@ "repositoryURL": "https://github.com/segmentio/Sovran-Swift.git", "state": { "branch": null, - "revision": "944c17d7c46bd95fc37f09136cabd172be5b413b", - "version": "1.0.3" + "revision": "64f3b5150c282a34af4578188dce2fd597e600e3", + "version": "1.1.0" } } ] diff --git a/Sources/SegmentMixpanel/MixpanelDestination.swift b/Sources/SegmentMixpanel/MixpanelDestination.swift index 9c77a35..af8a1f5 100644 --- a/Sources/SegmentMixpanel/MixpanelDestination.swift +++ b/Sources/SegmentMixpanel/MixpanelDestination.swift @@ -69,7 +69,11 @@ public class MixpanelDestination: DestinationPlugin, RemoteNotifications { // see blog for reference: // https://help.mixpanel.com/hc/en-us/articles/115004600343-Autotrack-Retirement if let token = mixpanelSettings?.token { +#if !os(OSX) && !os(watchOS) mixpanel = Mixpanel.initialize(token: token, trackAutomaticEvents: false) +#else + mixpanel = Mixpanel.initialize(token: token) +#endif } // Change the endpoint if euro one is set