Skip to content

Commit fbc4699

Browse files
authored
Fix macos version discrepancy (#16)
* Fix macos version discrepancy * Added objc support * Bumped analytics-swift dependency to latest. * Updated CI versions
1 parent f5480b7 commit fbc4699

File tree

5 files changed

+42
-37
lines changed

5 files changed

+42
-37
lines changed

.github/workflows/swift.yml

Lines changed: 2 additions & 2 deletions
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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"repositoryURL": "https://github.com/segmentio/analytics-swift",
1616
"state": {
1717
"branch": null,
18-
"revision": "af7f1d2fe6e48b1760538739f13f44ba71c1a61c",
19-
"version": "1.3.4"
18+
"revision": "c8fd5fdf59299f00b3e4303a1b12a6d88893bf56",
19+
"version": "1.4.7"
2020
}
2121
},
2222
{
@@ -114,8 +114,8 @@
114114
"repositoryURL": "https://github.com/segmentio/Sovran-Swift.git",
115115
"state": {
116116
"branch": null,
117-
"revision": "944c17d7c46bd95fc37f09136cabd172be5b413b",
118-
"version": "1.0.3"
117+
"revision": "64f3b5150c282a34af4578188dce2fd597e600e3",
118+
"version": "1.1.0"
119119
}
120120
},
121121
{

Package.resolved

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,83 +3,83 @@
33
"pins": [
44
{
55
"package": "abseil",
6-
"repositoryURL": "https://github.com/firebase/abseil-cpp-SwiftPM.git",
6+
"repositoryURL": "https://github.com/google/abseil-cpp-binary.git",
77
"state": {
88
"branch": null,
9-
"revision": "d302de612e3d57c6f4afaf087da18fba8eac72a7",
10-
"version": "0.20220203.1"
9+
"revision": "bfc0b6f81adc06ce5121eb23f628473638d67c5c",
10+
"version": "1.2022062300.0"
1111
}
1212
},
1313
{
1414
"package": "Segment",
1515
"repositoryURL": "https://github.com/segmentio/analytics-swift.git",
1616
"state": {
1717
"branch": null,
18-
"revision": "76316a5009502de6e7c2788c295e9afc68793cd3",
19-
"version": "1.1.2"
20-
}
21-
},
22-
{
23-
"package": "BoringSSL-GRPC",
24-
"repositoryURL": "https://github.com/firebase/boringssl-SwiftPM.git",
25-
"state": {
26-
"branch": null,
27-
"revision": "79db6516894a932d0ddaff3b05b9da1e4f6c4069",
28-
"version": "0.9.0"
18+
"revision": "c8fd5fdf59299f00b3e4303a1b12a6d88893bf56",
19+
"version": "1.4.7"
2920
}
3021
},
3122
{
3223
"package": "Firebase",
3324
"repositoryURL": "https://github.com/firebase/firebase-ios-sdk",
3425
"state": {
3526
"branch": null,
36-
"revision": "e8828e8efc813817b3c2cbfde8e965f7a7a26641",
37-
"version": "9.2.0"
27+
"revision": "2bfe6abe1014aafe5cf28401708f7d39f9926a76",
28+
"version": "10.14.0"
3829
}
3930
},
4031
{
4132
"package": "GoogleAppMeasurement",
4233
"repositoryURL": "https://github.com/google/GoogleAppMeasurement.git",
4334
"state": {
4435
"branch": null,
45-
"revision": "192cce3e0486aecfdb61102a9c694c78dc89dc48",
46-
"version": "9.1.0"
36+
"revision": "03b9beee1a61f62d32c521e172e192a1663a5e8b",
37+
"version": "10.13.0"
4738
}
4839
},
4940
{
5041
"package": "GoogleDataTransport",
5142
"repositoryURL": "https://github.com/google/GoogleDataTransport.git",
5243
"state": {
5344
"branch": null,
54-
"revision": "b905c49326b72211531ed9d7baa02d724828a8dc",
55-
"version": "9.1.4"
45+
"revision": "aae45a320fd0d11811820335b1eabc8753902a40",
46+
"version": "9.2.5"
5647
}
5748
},
5849
{
5950
"package": "GoogleUtilities",
6051
"repositoryURL": "https://github.com/google/GoogleUtilities.git",
6152
"state": {
6253
"branch": null,
63-
"revision": "f4abe56ce62a779e64b525eb133c8fc2a84bbc1f",
64-
"version": "7.7.1"
54+
"revision": "c38ce365d77b04a9a300c31061c5227589e5597b",
55+
"version": "7.11.5"
6556
}
6657
},
6758
{
6859
"package": "gRPC",
69-
"repositoryURL": "https://github.com/grpc/grpc-ios.git",
60+
"repositoryURL": "https://github.com/google/grpc-binary.git",
7061
"state": {
7162
"branch": null,
72-
"revision": "2af4f6e9c2b18beae228f50b1198c641be859d2b",
73-
"version": "1.44.2-grpc"
63+
"revision": "f1b366129d1125be7db83247e003fc333104b569",
64+
"version": "1.50.2"
7465
}
7566
},
7667
{
7768
"package": "GTMSessionFetcher",
7869
"repositoryURL": "https://github.com/google/gtm-session-fetcher.git",
7970
"state": {
8071
"branch": null,
81-
"revision": "19605024d59eaefdb1f6a2cb11ebe75df4421126",
82-
"version": "2.0.0"
72+
"revision": "d415594121c9e8a4f9d79cecee0965cf35e74dbd",
73+
"version": "3.1.1"
74+
}
75+
},
76+
{
77+
"package": "InteropForGoogle",
78+
"repositoryURL": "https://github.com/google/interop-ios-for-google-sdks.git",
79+
"state": {
80+
"branch": null,
81+
"revision": "2d12673670417654f08f5f90fdd62926dc3a2648",
82+
"version": "100.0.0"
8383
}
8484
},
8585
{
@@ -114,8 +114,8 @@
114114
"repositoryURL": "https://github.com/segmentio/Sovran-Swift.git",
115115
"state": {
116116
"branch": null,
117-
"revision": "944c17d7c46bd95fc37f09136cabd172be5b413b",
118-
"version": "1.0.3"
117+
"revision": "64f3b5150c282a34af4578188dce2fd597e600e3",
118+
"version": "1.1.0"
119119
}
120120
},
121121
{

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import PackageDescription
66
let package = Package(
77
name: "SegmentFirebase",
88
platforms: [
9-
//.macOS("10.15"),
9+
.macOS("10.15"),
1010
.iOS("13.0"),
1111
.tvOS("11.0"),
1212
.watchOS("7.1")
@@ -23,7 +23,7 @@ let package = Package(
2323
.package(
2424
name: "Segment",
2525
url: "https://github.com/segmentio/analytics-swift.git",
26-
from: "1.3.4"
26+
from: "1.4.7"
2727
),
2828
.package(
2929
name: "Firebase",

Sources/SegmentFirebase/FirebaseDestination.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ import FirebaseAnalytics
3636
An implmentation of the Firebase Analytics device mode destination as a plugin.
3737
*/
3838

39+
@objc(SEGFirebaseDestination)
40+
public class ObjCFirebaseDestination: NSObject, ObjCPlugin, ObjCPluginShim {
41+
public func instance() -> EventPlugin { return FirebaseDestination() }
42+
}
43+
3944
public class FirebaseDestination: DestinationPlugin {
4045
public let timeline = Timeline()
4146
public let type = PluginType.destination

0 commit comments

Comments
 (0)