diff --git a/AEPEdgeIdentity.podspec b/AEPEdgeIdentity.podspec index d1dbaf8..a48b10e 100644 --- a/AEPEdgeIdentity.podspec +++ b/AEPEdgeIdentity.podspec @@ -12,10 +12,10 @@ Pod::Spec.new do |s| s.author = "Adobe Experience Platform SDK Team" s.source = { :git => "https://github.com/adobe/aepsdk-identityedge-ios.git", :tag => s.version.to_s } - s.ios.deployment_target = '12.0' - s.tvos.deployment_target = '12.0' + s.ios.deployment_target = '15.0' + s.tvos.deployment_target = '15.0' - s.swift_version = '5.1' + s.swift_version = '5.10' s.pod_target_xcconfig = { 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' } s.dependency 'AEPCore', '>= 5.13.0', '< 6.0.0' diff --git a/AEPEdgeIdentity.xcodeproj/project.pbxproj b/AEPEdgeIdentity.xcodeproj/project.pbxproj index d7cd8e8..9f47d5d 100644 --- a/AEPEdgeIdentity.xcodeproj/project.pbxproj +++ b/AEPEdgeIdentity.xcodeproj/project.pbxproj @@ -1177,6 +1177,7 @@ DEVELOPMENT_TEAM = FKGEE875K4; ENABLE_PREVIEWS = YES; INFOPLIST_FILE = SampleApps/TestApp/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1187,7 +1188,7 @@ SUPPORTED_PLATFORMS = "appletvsimulator appletvos"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 3; - TVOS_DEPLOYMENT_TARGET = 13.0; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Debug; }; @@ -1202,6 +1203,7 @@ DEVELOPMENT_TEAM = FKGEE875K4; ENABLE_PREVIEWS = YES; INFOPLIST_FILE = SampleApps/TestApp/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1213,7 +1215,7 @@ SUPPORTED_PLATFORMS = "appletvsimulator appletvos"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 3; - TVOS_DEPLOYMENT_TARGET = 13.0; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Release; }; @@ -1226,14 +1228,16 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = FKGEE875K4; INFOPLIST_FILE = SampleApps/TestAppObjC/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); PRODUCT_BUNDLE_IDENTIFIER = com.adobe.TestAppObjC; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Debug; }; @@ -1246,14 +1250,16 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = FKGEE875K4; INFOPLIST_FILE = SampleApps/TestAppObjC/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); PRODUCT_BUNDLE_IDENTIFIER = com.adobe.TestAppObjC; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Release; }; @@ -1310,7 +1316,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -1319,7 +1325,7 @@ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; TARGETED_DEVICE_FAMILY = "1,2,3"; - TVOS_DEPLOYMENT_TARGET = 12.0; + TVOS_DEPLOYMENT_TARGET = 15.0; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -1372,7 +1378,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = iphoneos; @@ -1380,7 +1386,7 @@ SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-O"; TARGETED_DEVICE_FAMILY = "1,2,3"; - TVOS_DEPLOYMENT_TARGET = 12.0; + TVOS_DEPLOYMENT_TARGET = 15.0; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -1401,7 +1407,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1416,7 +1422,7 @@ SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2,3"; - TVOS_DEPLOYMENT_TARGET = 12.0; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Debug; }; @@ -1434,7 +1440,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Sources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1448,7 +1454,7 @@ SUPPORTS_MACCATALYST = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2,3"; - TVOS_DEPLOYMENT_TARGET = 12.0; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Release; }; @@ -1459,6 +1465,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = FKGEE875K4; INFOPLIST_FILE = Tests/UnitTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1468,6 +1475,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2,3"; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Debug; }; @@ -1478,6 +1486,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = FKGEE875K4; INFOPLIST_FILE = Tests/UnitTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1487,6 +1496,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2,3"; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Release; }; @@ -1497,6 +1507,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = FKGEE875K4; INFOPLIST_FILE = Tests/FunctionalTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1506,6 +1517,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2,3"; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Debug; }; @@ -1516,6 +1528,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = FKGEE875K4; INFOPLIST_FILE = Tests/FunctionalTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1525,6 +1538,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2,3"; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Release; }; @@ -1539,7 +1553,7 @@ DEVELOPMENT_TEAM = FKGEE875K4; ENABLE_PREVIEWS = YES; INFOPLIST_FILE = SampleApps/TestApp/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1549,6 +1563,7 @@ SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Debug; }; @@ -1563,7 +1578,7 @@ DEVELOPMENT_TEAM = FKGEE875K4; ENABLE_PREVIEWS = YES; INFOPLIST_FILE = SampleApps/TestApp/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1574,6 +1589,7 @@ SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Release; }; @@ -1581,7 +1597,9 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; PRODUCT_NAME = "$(TARGET_NAME)"; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Debug; }; @@ -1589,7 +1607,9 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; PRODUCT_NAME = "$(TARGET_NAME)"; + TVOS_DEPLOYMENT_TARGET = 15.0; }; name = Release; }; diff --git a/Package.swift b/Package.swift index c744233..922f09e 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.3 +// swift-tools-version:5.10 // The swift-tools-version declares the minimum version of Swift required to build this package. /* @@ -17,7 +17,7 @@ import PackageDescription let package = Package( name: "AEPEdgeIdentity", - platforms: [.iOS(.v12), .tvOS(.v12)], + platforms: [.iOS(.v15), .tvOS(.v15)], products: [ .library(name: "AEPEdgeIdentity", targets: ["AEPEdgeIdentity"]) ], diff --git a/Podfile b/Podfile index 2cf8e57..59e66d3 100644 --- a/Podfile +++ b/Podfile @@ -1,4 +1,4 @@ -platform :ios, '12.0' +platform :ios, '15.0' # Comment the next line if you don't want to use dynamic frameworks use_frameworks! @@ -56,7 +56,8 @@ end post_install do |pi| pi.pods_project.targets.each do |t| t.build_configurations.each do |bc| - bc.build_settings['TVOS_DEPLOYMENT_TARGET'] = '12.0' + bc.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' + bc.build_settings['TVOS_DEPLOYMENT_TARGET'] = '15.0' bc.build_settings['SUPPORTED_PLATFORMS'] = 'iphoneos iphonesimulator appletvos appletvsimulator' bc.build_settings['TARGETED_DEVICE_FAMILY'] = "1,2,3" end diff --git a/Podfile.lock b/Podfile.lock index 5170b5c..6b1347f 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -11,7 +11,7 @@ PODS: - AEPEdgeConsent (5.0.2): - AEPCore (< 6.0.0, >= 5.0.0) - AEPEdge (< 6.0.0, >= 5.0.0) - - AEPEdgeIdentity (5.1.0): + - AEPEdgeIdentity (5.2.0): - AEPCore (< 6.0.0, >= 5.13.0) - AEPIdentity (5.13.0): - AEPCore (< 6.0.0, >= 5.13.0) @@ -61,13 +61,13 @@ SPEC CHECKSUMS: AEPCore: 13541c6cd72488506a3fda85a5e1288759f09336 AEPEdge: 105afc7958acd7c016d57f7ac1d6f632bf05e6ee AEPEdgeConsent: b5a54985b79ee0222b1f1fc4b0859f8b8afed07a - AEPEdgeIdentity: 17bfdf602f1b2f68519cf93fe5fd2a8eef73d37f + AEPEdgeIdentity: 81399eeac81bcee8798cb1890b2169293bd23190 AEPIdentity: 3f085ab6e1ce01cf47846708e76a02114c4c059b AEPRulesEngine: fe5800653a4bee07b1e41e61b4d5551f0dba557b AEPServices: 5533aaa108ffb0e75adcbfdfdd08bd4cbe9b02fd AEPTestUtils: 2bbed995c8974f6f6d92058db88d6cd2e4a7f869 SwiftLint: 13280e21cdda6786ad908dc6e416afe5acd1fcb7 -PODFILE CHECKSUM: 13e3cea43cd887fa67303511ac927c047580f5fd +PODFILE CHECKSUM: cb5c59017785be52f80372135c7246c64f1fb111 -COCOAPODS: 1.16.2 +COCOAPODS: 1.17.0 diff --git a/README.md b/README.md index f9fbdbe..450f8c7 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,9 @@ The AEP Edge Identity mobile extension enables handling of user identity data from a mobile application when using the [Adobe Experience Platform SDK](https://developer.adobe.com/client-sdks) and the Edge Network extension. ## Requirements -- Xcode 15 (or newer) -- Swift 5.1 (or newer) +- Xcode 15.3 (or newer) +- Swift 5.10 (or newer) +- iOS 15.0 (or newer) and tvOS 15.0 (or newer) ## Installation diff --git a/SampleApps/TestApp/AppDelegate.swift b/SampleApps/TestApp/AppDelegate.swift index d380051..af54e14 100644 --- a/SampleApps/TestApp/AppDelegate.swift +++ b/SampleApps/TestApp/AppDelegate.swift @@ -23,7 +23,7 @@ import UIKit import AEPAssurance #endif -@UIApplicationMain +@main class AppDelegate: UIResponder, UIApplicationDelegate { // TODO: Set up the preferred Environment File ID from your mobile property configured in Data Collection UI private let ENVIRONMENT_FILE_ID = "" diff --git a/SampleApps/TestApp/ContentView.swift b/SampleApps/TestApp/ContentView.swift index 157ba44..86d18c3 100644 --- a/SampleApps/TestApp/ContentView.swift +++ b/SampleApps/TestApp/ContentView.swift @@ -105,11 +105,11 @@ struct GetIdentitiesView: View { self.ecidIdentityText = "" AEPEdgeIdentity.Identity.getExperienceCloudId { ecid, _ in - self.ecidEdgeIdentityText = ecid ?? "no ECID value found" + DispatchQueue.main.async { self.ecidEdgeIdentityText = ecid ?? "no ECID value found" } } AEPIdentity.Identity.getExperienceCloudId { ecid, _ in - self.ecidIdentityText = ecid ?? "" + DispatchQueue.main.async { self.ecidIdentityText = ecid ?? "" } } } label: { Text("Get ECID") @@ -119,7 +119,7 @@ struct GetIdentitiesView: View { self.urlVariablesText = "" AEPEdgeIdentity.Identity.getUrlVariables { urlVariablesString, _ in - self.urlVariablesText = urlVariablesString ?? "URLVariables not generated" + DispatchQueue.main.async { self.urlVariablesText = urlVariablesString ?? "URLVariables not generated" } } } label: { Text("Get URLVariables") @@ -139,17 +139,20 @@ struct GetIdentitiesView: View { Button { self.identityMapText = "" AEPEdgeIdentity.Identity.getIdentities { identityMap, _ in + // Build the display string on the callback queue; only the String crosses to main. + let text: String if let identityMap = identityMap { let encoder = JSONEncoder() encoder.outputFormatting = .prettyPrinted - guard let data = try? encoder.encode(identityMap) else { - self.identityMapText = "failed to encode IdentityMap" - return + if let data = try? encoder.encode(identityMap) { + text = String(data: data, encoding: .utf8) ?? "failed to encode JSON to string" + } else { + text = "failed to encode IdentityMap" } - self.identityMapText = String(data: data, encoding: .utf8) ?? "failed to encode JSON to string" } else { - self.identityMapText = "IdentityMap was nil" + text = "IdentityMap was nil" } + DispatchQueue.main.async { self.identityMapText = text } } } label: { Text("Get Identities") diff --git a/SampleApps/TestApp/Makefile b/SampleApps/TestApp/Makefile index b876683..125bc0b 100644 --- a/SampleApps/TestApp/Makefile +++ b/SampleApps/TestApp/Makefile @@ -9,7 +9,7 @@ SDK_IOS = iphoneos SDK_IOS_SIMULATOR = iphonesimulator # configurations -BUILD_IOS_TARGET_VERSION = IPHONEOS_DEPLOYMENT_TARGET=14.0 +BUILD_IOS_TARGET_VERSION = IPHONEOS_DEPLOYMENT_TARGET=15.0 RELEASE = -configuration Release XCODEBUILD = xcodebuild diff --git a/Script/test-SPM.sh b/Script/test-SPM.sh index 0ec98e4..54ff41c 100755 --- a/Script/test-SPM.sh +++ b/Script/test-SPM.sh @@ -23,14 +23,14 @@ mkdir -p $PROJECT_NAME && cd $PROJECT_NAME swift package init # Create the Package.swift. -echo "// swift-tools-version:5.3 +echo "// swift-tools-version:5.10 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: \"TestProject\", defaultLocalization: \"en-US\", platforms: [ - .iOS(.v12), .tvOS(.v12) + .iOS(.v15), .tvOS(.v15) ], products: [ .library( diff --git a/Script/test-podspec.sh b/Script/test-podspec.sh index 9f2853a..1fefc5b 100644 --- a/Script/test-podspec.sh +++ b/Script/test-podspec.sh @@ -32,7 +32,7 @@ targets: type: framework sources: Sources platform: iOS - deploymentTarget: "12.0" + deploymentTarget: "15.0" settings: GENERATE_INFOPLIST_FILE: YES " >>project.yml @@ -41,7 +41,7 @@ xcodegen generate # Create a Podfile with our pod as dependency. echo " -platform :ios, '12.0' +platform :ios, '15.0' target '$PROJECT_NAME' do use_frameworks! pod 'AEPCore', '~> 5.0' @@ -90,7 +90,7 @@ targets: type: framework sources: Sources platform: tvOS - deploymentTarget: "12.0" + deploymentTarget: "15.0" settings: GENERATE_INFOPLIST_FILE: YES " >>project.yml @@ -99,7 +99,7 @@ xcodegen generate # Create a Podfile with our pod as dependency. echo " -platform :tvos, '12.0' +platform :tvos, '15.0' target '$PROJECT_NAME' do use_frameworks! pod 'AEPCore', '~> 5.0' diff --git a/Sources/Identity+PublicAPI.swift b/Sources/Identity+PublicAPI.swift index cc37821..0a88398 100644 --- a/Sources/Identity+PublicAPI.swift +++ b/Sources/Identity+PublicAPI.swift @@ -21,7 +21,7 @@ import Foundation /// - Parameter completion: invoked once the Experience Cloud ID is available, or /// an `AEPError` if an unexpected error occurs or the request timed out. @objc(getExperienceCloudId:) - static func getExperienceCloudId(completion: @escaping (String?, Error?) -> Void) { + @preconcurrency static func getExperienceCloudId(completion: @escaping @Sendable (String?, Error?) -> Void) { let event = Event(name: IdentityConstants.EventNames.REQUEST_IDENTITY_ECID, type: EventType.edgeIdentity, source: EventSource.requestIdentity, @@ -58,7 +58,7 @@ import Foundation /// - MCORGID: Experience Cloud Org ID /// - Parameter completion: invoked with a value containing the identifiers in query parameter format or an AEPError if an unexpected error occurs or the request times out. @objc(getUrlVariables:) - static func getUrlVariables(completion: @escaping (String?, Error?) -> Void) { + @preconcurrency static func getUrlVariables(completion: @escaping @Sendable (String?, Error?) -> Void) { let event = Event(name: IdentityConstants.EventNames.REQUEST_IDENTITY_URL_VARIABLES, type: EventType.edgeIdentity, source: EventSource.requestIdentity, @@ -84,7 +84,7 @@ import Foundation /// - Parameter completion: invoked once the identifiers are available, or /// an `AEPError` if an unexpected error occurs or the request timed out. @objc(getIdentities:) - static func getIdentities(completion: @escaping (IdentityMap?, Error?) -> Void) { + @preconcurrency static func getIdentities(completion: @escaping @Sendable (IdentityMap?, Error?) -> Void) { let event = Event(name: IdentityConstants.EventNames.REQUEST_IDENTITIES, type: EventType.edgeIdentity, source: EventSource.requestIdentity, diff --git a/Tests/Mocks/MockExtension.swift b/Tests/Mocks/MockExtension.swift index 5f55384..ecd63d0 100644 --- a/Tests/Mocks/MockExtension.swift +++ b/Tests/Mocks/MockExtension.swift @@ -17,12 +17,12 @@ import Foundation class MockExtension: Extension { var name = "mockExtension" var friendlyName = "mockExtension" - static var extensionVersion = "0.0.1" + nonisolated(unsafe) static var extensionVersion = "0.0.1" var metadata: [String: String]? - static var registrationClosure: (() -> Void)? - static var unregistrationClosure: (() -> Void)? - static var eventReceivedClosure: ((Event) -> Void)? + nonisolated(unsafe) static var registrationClosure: (() -> Void)? + nonisolated(unsafe) static var unregistrationClosure: (() -> Void)? + nonisolated(unsafe) static var eventReceivedClosure: ((Event) -> Void)? let runtime: ExtensionRuntime