Skip to content

Commit 36a1546

Browse files
authored
hardcode value in context.device (#176)
Co-authored-by: Alan Charles <[email protected]>
1 parent 0c1e330 commit 36a1546

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Sources/Segment/Events.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ extension Analytics {
3737
/// - Parameters:
3838
/// - userId: A database ID for this user. If you don't have a userId
3939
/// but want to record traits, just pass traits into the event and they will be associated
40-
/// with the anonymousId of that user. For more information on how we
40+
/// with the anonymousId of that user. In the case when user logs out, make sure to
41+
/// call ``reset()`` to clear the user's identity info. For more information on how we
4142
/// generate the UUID and Apple's policies on IDs, see
4243
/// https://segment.io/libraries/ios#ids
4344
/// - traits: A dictionary of traits you know about the user. Things like: email, name, plan, etc.
@@ -136,7 +137,8 @@ extension Analytics {
136137
/// - Parameters:
137138
/// - userId: A database ID for this user. If you don't have a userId
138139
/// but want to record traits, just pass traits into the event and they will be associated
139-
/// with the anonymousId of that user. For more information on how we
140+
/// with the anonymousId of that user. In the case when user logs out, make sure to
141+
/// call ``reset()`` to clear the user's identity info. For more information on how we
140142
/// generate the UUID and Apple's policies on IDs, see
141143
/// https://segment.io/libraries/ios#ids
142144
/// - properties: A dictionary of traits you know about the user. Things like: email, name, plan, etc.
@@ -157,7 +159,8 @@ extension Analytics {
157159
/// - Parameters:
158160
/// - userId: A database ID for this user. If you don't have a userId
159161
/// but want to record traits, just pass traits into the event and they will be associated
160-
/// with the anonymousId of that user. For more information on how we
162+
/// with the anonymousId of that user. In the case when user logs out, make sure to
163+
/// call ``reset()`` to clear the user's identity info. For more information on how we
161164
/// generate the UUID and Apple's policies on IDs, see
162165
/// https://segment.io/libraries/ios#ids
163166
/// - traits: A dictionary of traits you know about the user. Things like: email, name, plan, etc.

Sources/Segment/Plugins/Platforms/Vendors/AppleUtils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ internal class MacOSVendorSystem: VendorSystem {
222222
}
223223

224224
override var systemName: String {
225-
return device.operatingSystemVersionString
225+
return "macOS"
226226
}
227227

228228
override var systemVersion: String {

0 commit comments

Comments
 (0)