forked from loafle/openapi-generator-original
[swift5][client] fix URLSession warning of URLSessionProtocol conformance (#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
This commit is contained in:
parent
6a1acd89a1
commit
c35140cbc3
13
bitrise.yml
13
bitrise.yml
@ -10,18 +10,18 @@ trigger_map:
|
|||||||
workflows:
|
workflows:
|
||||||
primary:
|
primary:
|
||||||
steps:
|
steps:
|
||||||
- git-clone@4.0.17: {}
|
- git-clone@6.2.1: {}
|
||||||
- brew-install@0.11.0:
|
- brew-install@0.12.1:
|
||||||
inputs:
|
inputs:
|
||||||
- packages: maven
|
- packages: maven
|
||||||
- script@1.1.6:
|
- script@1.2.0:
|
||||||
title: Install Cocoapods
|
title: Install Cocoapods
|
||||||
inputs:
|
inputs:
|
||||||
- content: |
|
- content: |
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
sudo gem install cocoapods
|
sudo gem install cocoapods
|
||||||
- script@1.1.6:
|
- script@1.2.0:
|
||||||
inputs:
|
inputs:
|
||||||
- content: |
|
- content: |
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
@ -30,7 +30,7 @@ workflows:
|
|||||||
|
|
||||||
mvn --no-snapshot-updates package -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
mvn --no-snapshot-updates package -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
title: Build openapi-generator
|
title: Build openapi-generator
|
||||||
- script@1.1.6:
|
- script@1.2.0:
|
||||||
title: Run Swift5 tests
|
title: Run Swift5 tests
|
||||||
inputs:
|
inputs:
|
||||||
- content: |
|
- content: |
|
||||||
@ -40,3 +40,6 @@ workflows:
|
|||||||
|
|
||||||
./samples/client/petstore/swift5/swift5_test_all.sh
|
./samples/client/petstore/swift5/swift5_test_all.sh
|
||||||
|
|
||||||
|
meta:
|
||||||
|
bitrise.io:
|
||||||
|
stack: osx-xcode-14.1.x
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} protocol URLSessionProtocol {
|
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -326,7 +326,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 10;
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = YES;
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
@ -377,7 +377,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 10;
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/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" | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -323,7 +323,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = YES;
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
@ -374,7 +374,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/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" | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -388,6 +388,7 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
INFOPLIST_FILE = SwaggerClient/Info.plist;
|
INFOPLIST_FILE = SwaggerClient/Info.plist;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
@ -403,6 +404,7 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
INFOPLIST_FILE = SwaggerClient/Info.plist;
|
INFOPLIST_FILE = SwaggerClient/Info.plist;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
@ -418,6 +420,7 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||||
INFOPLIST_FILE = SwaggerClientTests/Info.plist;
|
INFOPLIST_FILE = SwaggerClientTests/Info.plist;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
@ -435,6 +438,7 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||||
INFOPLIST_FILE = SwaggerClientTests/Info.plist;
|
INFOPLIST_FILE = SwaggerClientTests/Info.plist;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/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" | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
internal protocol URLSessionProtocol {
|
internal protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -385,6 +385,7 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
INFOPLIST_FILE = SwaggerClient/Info.plist;
|
INFOPLIST_FILE = SwaggerClient/Info.plist;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
@ -400,6 +401,7 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
INFOPLIST_FILE = SwaggerClient/Info.plist;
|
INFOPLIST_FILE = SwaggerClient/Info.plist;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
@ -415,6 +417,7 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||||
INFOPLIST_FILE = SwaggerClientTests/Info.plist;
|
INFOPLIST_FILE = SwaggerClientTests/Info.plist;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
@ -432,6 +435,7 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||||
INFOPLIST_FILE = SwaggerClientTests/Info.plist;
|
INFOPLIST_FILE = SwaggerClientTests/Info.plist;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/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" | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -323,7 +323,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = YES;
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
@ -374,7 +374,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/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" | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
|
@ -14,7 +14,7 @@ mvn -f $DIRECTORY/urlsessionLibrary/SwaggerClientTests/pom.xml integration-test
|
|||||||
|
|
||||||
# spm build
|
# spm build
|
||||||
mvn -f $DIRECTORY/alamofireLibrary/pom.xml integration-test
|
mvn -f $DIRECTORY/alamofireLibrary/pom.xml integration-test
|
||||||
# mvn -f $DIRECTORY/asyncAwaitLibrary/pom.xml integration-test
|
mvn -f $DIRECTORY/asyncAwaitLibrary/pom.xml integration-test
|
||||||
mvn -f $DIRECTORY/combineLibrary/pom.xml integration-test
|
mvn -f $DIRECTORY/combineLibrary/pom.xml integration-test
|
||||||
mvn -f $DIRECTORY/default/pom.xml integration-test
|
mvn -f $DIRECTORY/default/pom.xml integration-test
|
||||||
mvn -f $DIRECTORY/deprecated/pom.xml integration-test
|
mvn -f $DIRECTORY/deprecated/pom.xml integration-test
|
||||||
@ -27,5 +27,5 @@ mvn -f $DIRECTORY/readonlyProperties/pom.xml integration-test
|
|||||||
mvn -f $DIRECTORY/resultLibrary/pom.xml integration-test
|
mvn -f $DIRECTORY/resultLibrary/pom.xml integration-test
|
||||||
mvn -f $DIRECTORY/rxswiftLibrary/pom.xml integration-test
|
mvn -f $DIRECTORY/rxswiftLibrary/pom.xml integration-test
|
||||||
mvn -f $DIRECTORY/urlsessionLibrary/pom.xml integration-test
|
mvn -f $DIRECTORY/urlsessionLibrary/pom.xml integration-test
|
||||||
mvn -f $DIRECTORY/vaporLibrary/pom.xml integration-test
|
# mvn -f $DIRECTORY/vaporLibrary/pom.xml integration-test
|
||||||
mvn -f $DIRECTORY/x-swift-hashable/pom.xml integration-test
|
mvn -f $DIRECTORY/x-swift-hashable/pom.xml integration-test
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
@ -326,7 +326,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = YES;
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
@ -377,7 +377,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
|
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/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" | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
|
@ -10,7 +10,7 @@ import MobileCoreServices
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public protocol URLSessionProtocol {
|
public protocol URLSessionProtocol {
|
||||||
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLSession: URLSessionProtocol {}
|
extension URLSession: URLSessionProtocol {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user