Skip to content

Commit

Permalink
更新支援 Swift6
Browse files Browse the repository at this point in the history
  • Loading branch information
Darktt committed Oct 16, 2024
1 parent 52279ba commit 926344b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:
jobs:
build:

runs-on: macos-12
runs-on: macos-14.5
steps:
- uses: actions/checkout@v1
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_14.1.app && /usr/bin/xcodebuild -version
run: sudo xcode-select -switch /Applications/Xcode_16.0.app && /usr/bin/xcodebuild -version
- name: Run tests
run: xcodebuild test -scheme JsonDecodeProtection -project JsonDecodeProtection.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 13,OS=16.1' | xcpretty && exit ${PIPESTATUS[0]}
run: xcodebuild test -scheme JsonDecodeProtection -project JsonDecodeProtection.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 13,OS=18.0' | xcpretty && exit ${PIPESTATUS[0]}
8 changes: 4 additions & 4 deletions JsonDecodeProtection.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -548,7 +548,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.JsonDecodeProtectionTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JsonDecodeProtection.app/JsonDecodeProtection";
TVOS_DEPLOYMENT_TARGET = 14.0;
Expand All @@ -572,7 +572,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.JsonDecodeProtectionTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JsonDecodeProtection.app/JsonDecodeProtection";
TVOS_DEPLOYMENT_TARGET = 14.0;
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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 資料,而做的解析保護
Expand All @@ -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"

## 功能說明

Expand Down
2 changes: 1 addition & 1 deletion SourceCode/JsonProtection/DTAES.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ extension DTAES
}

public
struct Options: OptionSet
struct Options: OptionSet, Sendable
{
public typealias RawValue = UInt8

Expand Down

0 comments on commit 926344b

Please sign in to comment.