Merge remote-tracking branch 'origin' into 7.0.x

This commit is contained in:
William Cheng
2023-03-03 21:52:50 +08:00
10595 changed files with 418520 additions and 73194 deletions

View File

@@ -46,7 +46,8 @@ class APIHelperTests: XCTestCase {
func testMapValuesToQueryItems() {
let source: [String: Any] = ["a": 1, "c": ["1", nil, "2"], "d": true, "e": false]
let expected: [URLQueryItem] = [URLQueryItem(name: "a", value: "1"),
URLQueryItem(name: "c", value: "1,2"),
URLQueryItem(name: "c", value: "1"),
URLQueryItem(name: "c", value: "2"),
URLQueryItem(name: "d", value: "true"),
URLQueryItem(name: "e", value: "false")].sorted(by: { $0.name > $1.name })
let actual: [URLQueryItem] = APIHelper.mapValuesToQueryItems(source)!.sorted(by: { $0.name > $1.name })

View File

@@ -1,3 +1,3 @@
#!/bin/sh
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 8,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" && xcodebuild test-without-building -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}