From d7067e066b1f26bbe3455517cfcf8cf4e0ba9fae Mon Sep 17 00:00:00 2001 From: Michael Avoyan <64565419+michaelavoyan@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:46:28 +0300 Subject: [PATCH] v2.6.6 downgrade to swift 5 --- VCL/VCL.xcodeproj/project.pbxproj | 24 +++++++++++-------- .../extensions/ECPublicJwkExtension.swift | 6 ++--- .../utils/ProfileServiceTypeVerifier.swift | 1 - 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/VCL/VCL.xcodeproj/project.pbxproj b/VCL/VCL.xcodeproj/project.pbxproj index 17629c2..370ae52 100644 --- a/VCL/VCL.xcodeproj/project.pbxproj +++ b/VCL/VCL.xcodeproj/project.pbxproj @@ -1814,7 +1814,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 149; + CURRENT_PROJECT_VERSION = 150; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; @@ -1834,14 +1834,15 @@ GCC_WARN_UNUSED_VARIABLE = YES; INFOPLIST_FILE = VCL/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; - MARKETING_VERSION = 2.6.3; + MARKETING_VERSION = 2.6.6; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 6.0; + SWIFT_STRICT_CONCURRENCY = complete; + SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -1882,7 +1883,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 149; + CURRENT_PROJECT_VERSION = 150; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; @@ -1896,13 +1897,14 @@ GCC_WARN_UNUSED_VARIABLE = YES; INFOPLIST_FILE = VCL/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; - MARKETING_VERSION = 2.6.3; + MARKETING_VERSION = 2.6.6; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-O"; - SWIFT_VERSION = 6.0; + SWIFT_STRICT_CONCURRENCY = complete; + SWIFT_VERSION = 5.0; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -1914,7 +1916,7 @@ buildSettings = { CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 149; + CURRENT_PROJECT_VERSION = 150; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = 7DDDGP43MJ; DYLIB_COMPATIBILITY_VERSION = 1; @@ -1927,13 +1929,14 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 2.6.3; + MARKETING_VERSION = 2.6.6; PRODUCT_BUNDLE_IDENTIFIER = io.velocitycareerlabs.VCL; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; PROVISIONING_PROFILE_SPECIFIER = ""; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SWIFT_STRICT_CONCURRENCY = complete; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -1943,7 +1946,7 @@ buildSettings = { CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 149; + CURRENT_PROJECT_VERSION = 150; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = 7DDDGP43MJ; DYLIB_COMPATIBILITY_VERSION = 1; @@ -1956,13 +1959,14 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 2.6.3; + MARKETING_VERSION = 2.6.6; PRODUCT_BUNDLE_IDENTIFIER = io.velocitycareerlabs.VCL; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; PROVISIONING_PROFILE_SPECIFIER = ""; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SWIFT_STRICT_CONCURRENCY = complete; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; diff --git a/VCL/VCL/impl/extensions/ECPublicJwkExtension.swift b/VCL/VCL/impl/extensions/ECPublicJwkExtension.swift index d60964d..adba049 100644 --- a/VCL/VCL/impl/extensions/ECPublicJwkExtension.swift +++ b/VCL/VCL/impl/extensions/ECPublicJwkExtension.swift @@ -13,11 +13,11 @@ import VCToken extension ECPublicJwk { func toDictionary() -> [String: String] { return [ - CodingKeys.KeyType: self.keyType ?? "", + CodingKeys.KeyType: self.keyType, CodingKeys.KeyKeyId: self.keyId ?? "", - CodingKeys.KeyCurve: self.curve ?? "", + CodingKeys.KeyCurve: self.curve, CodingKeys.KeyUse: self.use ?? "", - CodingKeys.KeyX: self.x ?? "", + CodingKeys.KeyX: self.x, CodingKeys.KeyY: self.y ?? "" ] } diff --git a/VCL/VCL/impl/utils/ProfileServiceTypeVerifier.swift b/VCL/VCL/impl/utils/ProfileServiceTypeVerifier.swift index 9addfad..687e0f5 100644 --- a/VCL/VCL/impl/utils/ProfileServiceTypeVerifier.swift +++ b/VCL/VCL/impl/utils/ProfileServiceTypeVerifier.swift @@ -25,7 +25,6 @@ final class ProfileServiceTypeVerifier: Sendable { ) { verifiedProfileUseCase.getVerifiedProfile(verifiedProfileDescriptor: verifiedProfileDescriptor) { [weak self] verifiedProfileResult in - guard let _self = self else { return } do { let verifiedProfile = try verifiedProfileResult.get() self?.verifyServiceType(