diff --git a/JsonDecodeProtection.xcodeproj/project.pbxproj b/JsonDecodeProtection.xcodeproj/project.pbxproj index 5275175..e3fc5bb 100644 --- a/JsonDecodeProtection.xcodeproj/project.pbxproj +++ b/JsonDecodeProtection.xcodeproj/project.pbxproj @@ -494,7 +494,7 @@ SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; + SWIFT_VERSION = 6.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -527,7 +527,7 @@ SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; + SWIFT_VERSION = 6.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; diff --git a/README.md b/README.md index 8f22e4e..a22f684 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # JsonProtection -[![Swift-5.8](https://img.shields.io/badge/Swift-5.8-red.svg?style=plastic&logo=Swift&logoColor=white&link=)](https://developer.apple.com/swift/) +[![Swift-6.0](https://img.shields.io/badge/Swift-6.0-red.svg?style=plastic&logo=Swift&logoColor=white&link=)](https://developer.apple.com/swift/) [![example workflow](https://github.com/Darktt/JsonProtection/actions/workflows/main.yml/badge.svg)]() 處理後端提供各種神奇 Json 資料,而做的解析保護 @@ -10,7 +10,7 @@ * File > Swift Packages > Add Package Dependency * Add https://github.com/Darktt/JsonProtection -* Select "Up to Next Major" with "1.1.0" +* Select "Up to Next Major" with "1.2.0" ## 功能說明 diff --git a/SourceCode/JsonProtection/DTAES.swift b/SourceCode/JsonProtection/DTAES.swift index c0a9829..c2dbd67 100644 --- a/SourceCode/JsonProtection/DTAES.swift +++ b/SourceCode/JsonProtection/DTAES.swift @@ -219,7 +219,7 @@ extension DTAES } public - struct Options: OptionSet + struct Options: OptionSet, Sendable { public typealias RawValue = UInt8