Skip to content

Commit

Permalink
Fix the platform schema for macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocollet committed Apr 28, 2020
1 parent 4545f78 commit 6616a00
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Snowplow/Tracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ extension Tracker {
.platformDeviceManufacturer: SystemInfo.deviceVendor,
.platformDeviceModel: SystemInfo.deviceModel
]
return SelfDescribingJSON(schema: .platformMobile, data: data)
#if os(macOS)
return SelfDescribingJSON(schema: .platformDesktop, data: data)
#else
return SelfDescribingJSON(schema: .platformMobile, data: data)
#endif
}

}

0 comments on commit 6616a00

Please sign in to comment.