apple / swift-openapi-urlsession

URLSession transport for Swift OpenAPI Generator.
https://swiftpackageindex.com/apple/swift-openapi-urlsession/documentation
Apache License 2.0
159 stars 31 forks source link

Add Mac Catalyst support #55

Closed czechboy0 closed 2 weeks ago

czechboy0 commented 2 weeks ago

Motivation

Support the transport in Mac Catalyst apps.

Modifications

Add the platform requirement to Package.swift.

Result

Builds correctly for Mac Catalyst now.

Test Plan

Unit tests passed.

guoye-zhang commented 2 weeks ago

Typically macCatalyst availability is inferred from iOS availability. Was that not the case here?

czechboy0 commented 2 weeks ago

Typically macCatalyst availability is inferred from iOS availability. Was that not the case here?

Good question, not sure, I just wanted to be explicit, and other Apple Swift packages also have it set explicitly. It also allows potential future divergence from iOS availability.