Skip to content

Commit 18600ef

Browse files
authored
Fix osx and watchOS build issue. (#10)
* Fix osx and watchOS build issue. * Updated CI
1 parent 91bd9fe commit 18600ef

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/swift.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717

1818
build_and_test_examples:
1919
needs: cancel_previous
20-
runs-on: macos-11
20+
runs-on: macos-latest
2121
steps:
2222
- uses: maxim-lobanov/setup-xcode@v1
2323
with:
24-
xcode-version: '13.0'
24+
xcode-version: latest-stable
2525
- uses: actions/checkout@v2
2626
- uses: actions/cache@v2
2727
with:

Example/BasicExample/BasicExample.xcworkspace/xcshareddata/swiftpm/Package.resolved

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"repositoryURL": "https://github.com/segmentio/analytics-swift",
77
"state": {
88
"branch": null,
9-
"revision": "26f23a2ae9b8dd47aeee1bdaa1e203f3bed6044e",
10-
"version": "1.4.0"
9+
"revision": "efc111b5fccaebd1063ef0db6d206c252da387ec",
10+
"version": "1.4.8"
1111
}
1212
},
1313
{
@@ -24,8 +24,8 @@
2424
"repositoryURL": "https://github.com/segmentio/Sovran-Swift.git",
2525
"state": {
2626
"branch": null,
27-
"revision": "944c17d7c46bd95fc37f09136cabd172be5b413b",
28-
"version": "1.0.3"
27+
"revision": "64f3b5150c282a34af4578188dce2fd597e600e3",
28+
"version": "1.1.0"
2929
}
3030
}
3131
]

Sources/SegmentMixpanel/MixpanelDestination.swift

+4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ public class MixpanelDestination: DestinationPlugin, RemoteNotifications {
6969
// see blog for reference:
7070
// https://help.mixpanel.com/hc/en-us/articles/115004600343-Autotrack-Retirement
7171
if let token = mixpanelSettings?.token {
72+
#if !os(OSX) && !os(watchOS)
7273
mixpanel = Mixpanel.initialize(token: token, trackAutomaticEvents: false)
74+
#else
75+
mixpanel = Mixpanel.initialize(token: token)
76+
#endif
7377
}
7478

7579
// Change the endpoint if euro one is set

0 commit comments

Comments
 (0)