Skip to content

Commit c35140c

Browse files
authored
[swift5][client] fix URLSession warning of URLSessionProtocol conformance (OpenAPITools#13906)
* [swift5][client] fix URLSession warning of URLSessionProtocol conformance * [swift5][client] fix URLSession warning of URLSessionProtocol conformance * [swift5][client] update bitrise config * [swift5][client] enable async await sample project on CI * [swift5][client] update bitrise config * [swift5][client] update bitrise config * [swift5][client] try to fix CI
1 parent 6a1acd8 commit c35140c

File tree

29 files changed

+47
-36
lines changed

29 files changed

+47
-36
lines changed

bitrise.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ trigger_map:
1010
workflows:
1111
primary:
1212
steps:
13-
- git-clone@4.0.17: {}
14-
- brew-install@0.11.0:
13+
- git-clone@6.2.1: {}
14+
- brew-install@0.12.1:
1515
inputs:
1616
- packages: maven
17-
- script@1.1.6:
17+
- script@1.2.0:
1818
title: Install Cocoapods
1919
inputs:
2020
- content: |
2121
#!/usr/bin/env bash
2222
2323
sudo gem install cocoapods
24-
- script@1.1.6:
24+
- script@1.2.0:
2525
inputs:
2626
- content: |
2727
#!/usr/bin/env bash
@@ -30,7 +30,7 @@ workflows:
3030
3131
mvn --no-snapshot-updates package -Dorg.slf4j.simpleLogger.defaultLogLevel=error
3232
title: Build openapi-generator
33-
- script@1.1.6:
33+
- script@1.2.0:
3434
title: Run Swift5 tests
3535
inputs:
3636
- content: |
@@ -40,3 +40,6 @@ workflows:
4040
4141
./samples/client/petstore/swift5/swift5_test_all.sh
4242
43+
meta:
44+
bitrise.io:
45+
stack: osx-xcode-14.1.x

modules/openapi-generator/src/main/resources/swift5/libraries/urlsession/URLSessionImplementations.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/alamofireLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
327327
GCC_WARN_UNUSED_FUNCTION = YES;
328328
GCC_WARN_UNUSED_VARIABLE = YES;
329-
IPHONEOS_DEPLOYMENT_TARGET = 10;
329+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
330330
MTL_ENABLE_DEBUG_INFO = YES;
331331
ONLY_ACTIVE_ARCH = YES;
332332
SDKROOT = iphoneos;
@@ -377,7 +377,7 @@
377377
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
378378
GCC_WARN_UNUSED_FUNCTION = YES;
379379
GCC_WARN_UNUSED_VARIABLE = YES;
380-
IPHONEOS_DEPLOYMENT_TARGET = 10;
380+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
381381
MTL_ENABLE_DEBUG_INFO = NO;
382382
SDKROOT = iphoneos;
383383
SWIFT_COMPILATION_MODE = wholemodule;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 8,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}
3+
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}

samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/combineLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
324324
GCC_WARN_UNUSED_FUNCTION = YES;
325325
GCC_WARN_UNUSED_VARIABLE = YES;
326-
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
326+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
327327
MTL_ENABLE_DEBUG_INFO = YES;
328328
ONLY_ACTIVE_ARCH = YES;
329329
SDKROOT = iphoneos;
@@ -374,7 +374,7 @@
374374
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
375375
GCC_WARN_UNUSED_FUNCTION = YES;
376376
GCC_WARN_UNUSED_VARIABLE = YES;
377-
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
377+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
378378
MTL_ENABLE_DEBUG_INFO = NO;
379379
SDKROOT = iphoneos;
380380
SWIFT_COMPILATION_MODE = wholemodule;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 8,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}
3+
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}

samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/default/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj

+4
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@
388388
buildSettings = {
389389
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
390390
INFOPLIST_FILE = SwaggerClient/Info.plist;
391+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
391392
LD_RUNPATH_SEARCH_PATHS = (
392393
"$(inherited)",
393394
"@executable_path/Frameworks",
@@ -403,6 +404,7 @@
403404
buildSettings = {
404405
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
405406
INFOPLIST_FILE = SwaggerClient/Info.plist;
407+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
406408
LD_RUNPATH_SEARCH_PATHS = (
407409
"$(inherited)",
408410
"@executable_path/Frameworks",
@@ -418,6 +420,7 @@
418420
buildSettings = {
419421
BUNDLE_LOADER = "$(TEST_HOST)";
420422
INFOPLIST_FILE = SwaggerClientTests/Info.plist;
423+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
421424
LD_RUNPATH_SEARCH_PATHS = (
422425
"$(inherited)",
423426
"@executable_path/Frameworks",
@@ -435,6 +438,7 @@
435438
buildSettings = {
436439
BUNDLE_LOADER = "$(TEST_HOST)";
437440
INFOPLIST_FILE = SwaggerClientTests/Info.plist;
441+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
438442
LD_RUNPATH_SEARCH_PATHS = (
439443
"$(inherited)",
440444
"@executable_path/Frameworks",
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 8,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}
3+
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}

samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/frozenEnums/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
internal protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/promisekitLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj

+4
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@
385385
buildSettings = {
386386
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
387387
INFOPLIST_FILE = SwaggerClient/Info.plist;
388+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
388389
LD_RUNPATH_SEARCH_PATHS = (
389390
"$(inherited)",
390391
"@executable_path/Frameworks",
@@ -400,6 +401,7 @@
400401
buildSettings = {
401402
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
402403
INFOPLIST_FILE = SwaggerClient/Info.plist;
404+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
403405
LD_RUNPATH_SEARCH_PATHS = (
404406
"$(inherited)",
405407
"@executable_path/Frameworks",
@@ -415,6 +417,7 @@
415417
buildSettings = {
416418
BUNDLE_LOADER = "$(TEST_HOST)";
417419
INFOPLIST_FILE = SwaggerClientTests/Info.plist;
420+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
418421
LD_RUNPATH_SEARCH_PATHS = (
419422
"$(inherited)",
420423
"@executable_path/Frameworks",
@@ -432,6 +435,7 @@
432435
buildSettings = {
433436
BUNDLE_LOADER = "$(TEST_HOST)";
434437
INFOPLIST_FILE = SwaggerClientTests/Info.plist;
438+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
435439
LD_RUNPATH_SEARCH_PATHS = (
436440
"$(inherited)",
437441
"@executable_path/Frameworks",
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 8,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}
3+
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}

samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/rxswiftLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
324324
GCC_WARN_UNUSED_FUNCTION = YES;
325325
GCC_WARN_UNUSED_VARIABLE = YES;
326-
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
326+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
327327
MTL_ENABLE_DEBUG_INFO = YES;
328328
ONLY_ACTIVE_ARCH = YES;
329329
SDKROOT = iphoneos;
@@ -374,7 +374,7 @@
374374
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
375375
GCC_WARN_UNUSED_FUNCTION = YES;
376376
GCC_WARN_UNUSED_VARIABLE = YES;
377-
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
377+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
378378
MTL_ENABLE_DEBUG_INFO = NO;
379379
SDKROOT = iphoneos;
380380
SWIFT_COMPILATION_MODE = wholemodule;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 8,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}
3+
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}

samples/client/petstore/swift5/swift5_test_all.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mvn -f $DIRECTORY/urlsessionLibrary/SwaggerClientTests/pom.xml integration-test
1414

1515
# spm build
1616
mvn -f $DIRECTORY/alamofireLibrary/pom.xml integration-test
17-
# mvn -f $DIRECTORY/asyncAwaitLibrary/pom.xml integration-test
17+
mvn -f $DIRECTORY/asyncAwaitLibrary/pom.xml integration-test
1818
mvn -f $DIRECTORY/combineLibrary/pom.xml integration-test
1919
mvn -f $DIRECTORY/default/pom.xml integration-test
2020
mvn -f $DIRECTORY/deprecated/pom.xml integration-test
@@ -27,5 +27,5 @@ mvn -f $DIRECTORY/readonlyProperties/pom.xml integration-test
2727
mvn -f $DIRECTORY/resultLibrary/pom.xml integration-test
2828
mvn -f $DIRECTORY/rxswiftLibrary/pom.xml integration-test
2929
mvn -f $DIRECTORY/urlsessionLibrary/pom.xml integration-test
30-
mvn -f $DIRECTORY/vaporLibrary/pom.xml integration-test
30+
# mvn -f $DIRECTORY/vaporLibrary/pom.xml integration-test
3131
mvn -f $DIRECTORY/x-swift-hashable/pom.xml integration-test

samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

samples/client/petstore/swift5/urlsessionLibrary/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
327327
GCC_WARN_UNUSED_FUNCTION = YES;
328328
GCC_WARN_UNUSED_VARIABLE = YES;
329-
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
329+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
330330
MTL_ENABLE_DEBUG_INFO = YES;
331331
ONLY_ACTIVE_ARCH = YES;
332332
SDKROOT = iphoneos;
@@ -377,7 +377,7 @@
377377
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
378378
GCC_WARN_UNUSED_FUNCTION = YES;
379379
GCC_WARN_UNUSED_VARIABLE = YES;
380-
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
380+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
381381
MTL_ENABLE_DEBUG_INFO = NO;
382382
SDKROOT = iphoneos;
383383
SWIFT_COMPILATION_MODE = wholemodule;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 8,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}
3+
xcodebuild clean build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}

samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/URLSessionImplementations.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MobileCoreServices
1010
#endif
1111

1212
public protocol URLSessionProtocol {
13-
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
13+
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
1414
}
1515

1616
extension URLSession: URLSessionProtocol {}

0 commit comments

Comments
 (0)