Skip to content

Commit

Permalink
Fix osx and watchOS build issue. (#10)
Browse files Browse the repository at this point in the history
* Fix osx and watchOS build issue.

* Updated CI
  • Loading branch information
bsneed authored Nov 28, 2023
1 parent 91bd9fe commit 18600ef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand All @@ -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"
}
}
]
Expand Down
4 changes: 4 additions & 0 deletions Sources/SegmentMixpanel/MixpanelDestination.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18600ef

Please sign in to comment.