awslabs / aws-sdk-swift

Apache License 2.0
398 stars 78 forks source link

feat: Add linux and windows support in PlatformOperationSystemVersion #1206

Closed dayaffe closed 4 months ago

dayaffe commented 11 months ago

Describe the feature

For iOS, watchOS, macOS, and tvOS we currently support the ability to determine the major, minor, and patch versions. For all other operating systems we return nil. We should support linux, windows, and consider visionOS as well.

Related comment: // TODO: Implement for Linux & Windows

Use Case

This info is used as OS metadata in the SDK here

Proposed Solution

No response

Other Information

Related Issue: #710

Acknowledgements

sichanyoo commented 4 months ago

After confirming supported platforms with team, created backlog ticket for Windows portion of this ticket: https://github.com/awslabs/aws-sdk-swift/issues/1526, to be done if we decide to support Windows down the line.

sichanyoo commented 4 months ago

Turns out Apple recently implemented getting OS versions for Linux & Windows for us using compiler directives in their Foundation.ProcessInfo. Closing https://github.com/awslabs/aws-sdk-swift/issues/1526.