Skip to content

Commit

Permalink
Merge pull request #538 from WalletConnect/bugfix/tvos-build-error
Browse files Browse the repository at this point in the history
[Bugfix] tvOS operatingSystem
  • Loading branch information
flypaper0 authored Oct 4, 2022
2 parents 8d19591 + 30e6e89 commit f27dae5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/WalletConnectRelay/EnvironmentInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ enum EnvironmentInfo {
#if os(iOS)
return "\(UIDevice.current.systemName)-\(UIDevice.current.systemVersion)"
#elseif os(macOS)
let systemVersion = ProcessInfo.processInfo.operatingSystemVersion
return "macOS-\(systemVersion)"
return "macOS-\(ProcessInfo.processInfo.operatingSystemVersion)"
#elseif os(tvOS)
return "tvOS-\(ProcessInfo.processInfo.operatingSystemVersion)"
#endif
}
}

0 comments on commit f27dae5

Please sign in to comment.