Skip to content

Commit

Permalink
add visionOS support to useragent (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
dayaffe authored Oct 20, 2023
1 parent 3c5aeac commit a0ce157
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Core/AWSClientRuntime/UserAgent/OSMetadata.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ private extension PlatformOperatingSystem {
case .macOS: return "macos"
case .watchOS: return "watchos"
case .tvOS: return "tvos"
case .visionOS: return "visionos"
case .unknown: return "other"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class OSMetadataTests: XCTestCase {
XCTAssertEqual(OSMetadata(family: .macOS).description, "os/macos")
XCTAssertEqual(OSMetadata(family: .watchOS).description, "os/watchos")
XCTAssertEqual(OSMetadata(family: .tvOS).description, "os/tvos")
XCTAssertEqual(OSMetadata(family: .visionOS).description, "os/visionos")
XCTAssertEqual(OSMetadata(family: .unknown).description, "os/other")
}
}

0 comments on commit a0ce157

Please sign in to comment.