Skip to content

Commit dae5083

Browse files
committed
Add missing platform availability annotations to coding key types
1 parent 1c54949 commit dae5083

File tree

9 files changed

+12
-7
lines changed

9 files changed

+12
-7
lines changed

.scripts/build-maccatalyst-xcode

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22

33
xcodebuild \
4-
-scheme $1 \
4+
-scheme "$1" \
55
-configuration Release \
6-
-sdk macosx$2 \
6+
-sdk "macosx$2" \
77
-destination 'platform=macOS,variant=Mac Catalyst' \
88
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
99
MACOSX_DEPLOYMENT_TARGET=12.0 \

.scripts/build-tvos-xcode

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
xcodebuild \
4-
-scheme $1 \
4+
-scheme "$1" \
55
-configuration Release \
66
-sdk appletvsimulator \
77
-destination "generic/platform=tvOS Simulator,OS=$2" \
@@ -11,4 +11,4 @@ xcodebuild \
1111
CODE_SIGN_IDENTITY="" \
1212
CODE_SIGNING_REQUIRED=NO \
1313
CODE_SIGNING_ALLOWED=NO \
14-
clean build
14+
clean build

.scripts/build-visionos-xcode

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
xcodebuild \
4-
-scheme $1 \
4+
-scheme "$1" \
55
-configuration Release \
66
-sdk xrsimulator \
77
-destination "generic/platform=visionOS Simulator,OS=$2" \

.scripts/build-watchos-xcode

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
xcodebuild \
4-
-scheme $1 \
4+
-scheme "$1" \
55
-configuration Release \
66
-sdk watchsimulator \
77
-destination "generic/platform=watchOS Simulator,OS=$2" \
@@ -11,4 +11,4 @@ xcodebuild \
1111
CODE_SIGN_IDENTITY="" \
1212
CODE_SIGNING_REQUIRED=NO \
1313
CODE_SIGNING_ALLOWED=NO \
14-
clean build
14+
clean build

Sources/JBirdCodableSupport/CodingKeys/CamelCaseCodingKey.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2424
// SOFTWARE.
2525

26+
@available(macOS 13.0, macCatalyst 16.0, iOS 16.0, watchOS 9.0, tvOS 16.0, visionOS 1.0, *)
2627
struct CamelCaseCodingKey: CodingKey {
2728

2829
// MARK: - Initializers

Sources/JBirdCodableSupport/CodingKeys/IndexCodingKey.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2424
// SOFTWARE.
2525

26+
@available(macOS 13.0, macCatalyst 16.0, iOS 16.0, watchOS 9.0, tvOS 16.0, visionOS 1.0, *)
2627
struct IndexCodingKey: CodingKey {
2728

2829
// MARK: - Initializers

Sources/JBirdCodableSupport/CodingKeys/ObjectCodingKey.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import Foundation
2727

28+
@available(macOS 13.0, macCatalyst 16.0, iOS 16.0, watchOS 9.0, tvOS 16.0, visionOS 1.0, *)
2829
struct ObjectCodingKey: CodingKey {
2930

3031
// MARK: - Initializers

Sources/JBirdCodableSupport/CodingKeys/SnakeCaseCodingKey.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2424
// SOFTWARE.
2525

26+
@available(macOS 13.0, macCatalyst 16.0, iOS 16.0, watchOS 9.0, tvOS 16.0, visionOS 1.0, *)
2627
struct SnakeCaseCodingKey: CodingKey {
2728

2829
// MARK: - Initializers

Sources/JBirdCodableSupport/CodingKeys/SuperCodingKey.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2424
// SOFTWARE.
2525

26+
@available(macOS 13.0, macCatalyst 16.0, iOS 16.0, watchOS 9.0, tvOS 16.0, visionOS 1.0, *)
2627
struct SuperCodingKey: CodingKey {
2728

2829
// MARK: - Initializers

0 commit comments

Comments
 (0)