diff --git a/.tool-versions b/.tool-versions index 586c4f0..b2d9b44 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ nodejs 21.1.0 -ruby 3.2.2 +ruby 3.2.4 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fab25a..b61b3e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [12.2.0] - 2024-06-27 + +### Changed: + +- Updated underlying Onfido native SDK version: + - iOS 30.2.x (up from 30.1.x) + - Android 20.4.x (up from 20.3.x) + ## [12.1.0] - 2024-05-21 ### Changed: diff --git a/ONFIDO_STUDIO.md b/ONFIDO_STUDIO.md index e7a11d4..0042c3d 100644 --- a/ONFIDO_STUDIO.md +++ b/ONFIDO_STUDIO.md @@ -17,8 +17,8 @@ The SDK communicates directly and dynamically with active workflows to show the The SDK supports: * React Native 0.68+ -* iOS 11+ -* Supports Xcode 13+ +* iOS 13+ +* Supports Xcode 15+ * Supports Android API level 21+ @@ -39,10 +39,10 @@ npm --prefix node_modules/@onfido/react-native-sdk/ run updateBuildGradle ``` ### 3. Update your iOS configuration files -Change ios/Podfile to use version 11: +Change ios/Podfile to use version 13: ```ruby -platform :ios, '11.0' +platform :ios, '13.0' ``` Add descriptions for camera and microphone permissions to `ios/YourProjectName/Info.plist`: diff --git a/SampleApp/ios/Podfile.lock b/SampleApp/ios/Podfile.lock index 60e8e73..e5cccbc 100644 --- a/SampleApp/ios/Podfile.lock +++ b/SampleApp/ios/Podfile.lock @@ -11,9 +11,9 @@ PODS: - ReactCommon/turbomodule/core (= 0.72.6) - fmt (6.2.1) - glog (0.3.5) - - Onfido (30.1.0) - - onfido-react-native-sdk (11.1.0): - - Onfido (~> 30.1.0) + - Onfido (30.2.0) + - onfido-react-native-sdk (12.2.0): + - Onfido (~> 30.2.0) - React - RCT-Folly (2021.07.22.00): - boost @@ -529,8 +529,8 @@ SPEC CHECKSUMS: FBReactNativeSpec: 966f29e4e697de53a3b366355e8f57375c856ad9 fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b - Onfido: 5ae21e77484df08d64778fd676a12d1285054a20 - onfido-react-native-sdk: 39d216b8bf2e99061454c8d578e9e086e02c540d + Onfido: 3872c7cde032a5737b461f7880b4167311a4e2bf + onfido-react-native-sdk: e62d2b6171e4a5ba5799cf29143968d68ce7aa17 RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 RCTRequired: 28469809442eb4eb5528462705f7d852948c8a74 RCTTypeSafety: e9c6c409fca2cc584e5b086862d562540cb38d29 diff --git a/SampleApp/ios/SampleApp.xcodeproj/project.pbxproj b/SampleApp/ios/SampleApp.xcodeproj/project.pbxproj index a5b5668..fe0788f 100644 --- a/SampleApp/ios/SampleApp.xcodeproj/project.pbxproj +++ b/SampleApp/ios/SampleApp.xcodeproj/project.pbxproj @@ -13,10 +13,6 @@ 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; - 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; - 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; - 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; - 2DCD954D1E0B4F2C00145EB5 /* SampleAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* SampleAppTests.m */; }; 3A207E9426EABFB400EEDE01 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 3A207E9326EABFB400EEDE01 /* Localizable.strings */; }; 3A9D456A24180E9E0087A331 /* SampleSwift.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A9D456924180E9E0087A331 /* SampleSwift.swift */; }; A1CB8D05689CCFBBFCEF0B85 /* libPods-SampleApp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BD400479F643816851F69F23 /* libPods-SampleApp.a */; }; @@ -31,13 +27,6 @@ remoteGlobalIDString = 13B07F861A680F5B00A75B9A; remoteInfo = SampleApp; }; - 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; - remoteInfo = "SampleApp-tvOS"; - }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ @@ -53,8 +42,6 @@ 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = SampleApp/Images.xcassets; sourceTree = ""; }; 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = SampleApp/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = SampleApp/main.m; sourceTree = ""; }; - 2D02E47B1E0B4A5D006451C7 /* SampleApp-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SampleApp-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 2D02E4901E0B4A5D006451C7 /* SampleApp-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "SampleApp-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 3A207E9326EABFB400EEDE01 /* Localizable.strings */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = Localizable.strings; path = SampleApp/Localizable.strings; sourceTree = ""; }; 3A9D456924180E9E0087A331 /* SampleSwift.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SampleSwift.swift; sourceTree = ""; }; 61E8DC892771334177166408 /* Pods-SampleApp-SampleAppTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SampleApp-SampleAppTests.release.xcconfig"; path = "Target Support Files/Pods-SampleApp-SampleAppTests/Pods-SampleApp-SampleAppTests.release.xcconfig"; sourceTree = ""; }; @@ -84,20 +71,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -173,8 +146,6 @@ children = ( 13B07F961A680F5B00A75B9A /* SampleApp.app */, 00E356EE1AD99517003FC87E /* SampleAppTests.xctest */, - 2D02E47B1E0B4A5D006451C7 /* SampleApp-tvOS.app */, - 2D02E4901E0B4A5D006451C7 /* SampleApp-tvOSTests.xctest */, ); name = Products; sourceTree = ""; @@ -236,42 +207,6 @@ productReference = 13B07F961A680F5B00A75B9A /* SampleApp.app */; productType = "com.apple.product-type.application"; }; - 2D02E47A1E0B4A5D006451C7 /* SampleApp-tvOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "SampleApp-tvOS" */; - buildPhases = ( - FD10A7F122414F3F0027D42C /* Start Packager */, - 2D02E4771E0B4A5D006451C7 /* Sources */, - 2D02E4781E0B4A5D006451C7 /* Frameworks */, - 2D02E4791E0B4A5D006451C7 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "SampleApp-tvOS"; - productName = "SampleApp-tvOS"; - productReference = 2D02E47B1E0B4A5D006451C7 /* SampleApp-tvOS.app */; - productType = "com.apple.product-type.application"; - }; - 2D02E48F1E0B4A5D006451C7 /* SampleApp-tvOSTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "SampleApp-tvOSTests" */; - buildPhases = ( - 2D02E48C1E0B4A5D006451C7 /* Sources */, - 2D02E48D1E0B4A5D006451C7 /* Frameworks */, - 2D02E48E1E0B4A5D006451C7 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, - ); - name = "SampleApp-tvOSTests"; - productName = "SampleApp-tvOSTests"; - productReference = 2D02E4901E0B4A5D006451C7 /* SampleApp-tvOSTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -288,15 +223,6 @@ 13B07F861A680F5B00A75B9A = { LastSwiftMigration = 1130; }; - 2D02E47A1E0B4A5D006451C7 = { - CreatedOnToolsVersion = 8.2.1; - ProvisioningStyle = Automatic; - }; - 2D02E48F1E0B4A5D006451C7 = { - CreatedOnToolsVersion = 8.2.1; - ProvisioningStyle = Automatic; - TestTargetID = 2D02E47A1E0B4A5D006451C7; - }; }; }; buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "SampleApp" */; @@ -315,8 +241,6 @@ targets = ( 13B07F861A680F5B00A75B9A /* SampleApp */, 00E356ED1AD99517003FC87E /* SampleAppTests */, - 2D02E47A1E0B4A5D006451C7 /* SampleApp-tvOS */, - 2D02E48F1E0B4A5D006451C7 /* SampleApp-tvOSTests */, ); }; /* End PBXProject section */ @@ -340,21 +264,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 2D02E4791E0B4A5D006451C7 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2D02E48E1E0B4A5D006451C7 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ @@ -507,25 +416,6 @@ shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; showEnvVarsInLog = 0; }; - FD10A7F122414F3F0027D42C /* Start Packager */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - ); - name = "Start Packager"; - outputFileListPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; - showEnvVarsInLog = 0; - }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -547,23 +437,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 2D02E4771E0B4A5D006451C7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, - 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2D02E48C1E0B4A5D006451C7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2DCD954D1E0B4F2C00145EB5 /* SampleAppTests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ @@ -572,11 +445,6 @@ target = 13B07F861A680F5B00A75B9A /* SampleApp */; targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; }; - 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 2D02E47A1E0B4A5D006451C7 /* SampleApp-tvOS */; - targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; - }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ @@ -603,7 +471,7 @@ "$(inherited)", ); INFOPLIST_FILE = SampleAppTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; OTHER_LDFLAGS = ( "-ObjC", @@ -612,6 +480,11 @@ ); PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = YES; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; + TARGETED_DEVICE_FAMILY = 1; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SampleApp.app/SampleApp"; }; name = Debug; @@ -624,7 +497,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; COPY_PHASE_STRIP = NO; INFOPLIST_FILE = SampleAppTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; OTHER_LDFLAGS = ( "-ObjC", @@ -633,6 +506,11 @@ ); PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = YES; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; + TARGETED_DEVICE_FAMILY = 1; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SampleApp.app/SampleApp"; }; name = Release; @@ -655,6 +533,10 @@ ); PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = SampleApp; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -679,118 +561,16 @@ ); PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = SampleApp; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; }; name = Release; }; - 2D02E4971E0B4A5E006451C7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_TESTABILITY = YES; - GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = "SampleApp-tvOS/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-ObjC", - "-lc++", - ); - PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.SampleApp-tvOS"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - TARGETED_DEVICE_FAMILY = 3; - TVOS_DEPLOYMENT_TARGET = 9.2; - }; - name = Debug; - }; - 2D02E4981E0B4A5E006451C7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = "SampleApp-tvOS/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-ObjC", - "-lc++", - ); - PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.SampleApp-tvOS"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - TARGETED_DEVICE_FAMILY = 3; - TVOS_DEPLOYMENT_TARGET = 9.2; - }; - name = Release; - }; - 2D02E4991E0B4A5E006451C7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_TESTABILITY = YES; - GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = "SampleApp-tvOSTests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-ObjC", - "-lc++", - ); - PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.SampleApp-tvOSTests"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SampleApp-tvOS.app/SampleApp-tvOS"; - TVOS_DEPLOYMENT_TARGET = 10.1; - }; - name = Debug; - }; - 2D02E49A1E0B4A5E006451C7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = "SampleApp-tvOSTests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-ObjC", - "-lc++", - ); - PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.SampleApp-tvOSTests"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SampleApp-tvOS.app/SampleApp-tvOS"; - TVOS_DEPLOYMENT_TARGET = 10.1; - }; - name = Release; - }; 83CBBA201A601CBA00E9B192 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -839,7 +619,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.4; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = "$(inherited)"; @@ -898,7 +678,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.4; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; OTHER_CFLAGS = "$(inherited)"; OTHER_CPLUSPLUSFLAGS = "$(inherited)"; @@ -934,24 +714,6 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "SampleApp-tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2D02E4971E0B4A5E006451C7 /* Debug */, - 2D02E4981E0B4A5E006451C7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "SampleApp-tvOSTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2D02E4991E0B4A5E006451C7 /* Debug */, - 2D02E49A1E0B4A5E006451C7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "SampleApp" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/SampleApp/yalc.lock b/SampleApp/yalc.lock index 0e8a83f..2cb612d 100644 --- a/SampleApp/yalc.lock +++ b/SampleApp/yalc.lock @@ -2,7 +2,7 @@ "version": "v1", "packages": { "@onfido/react-native-sdk": { - "signature": "59e62218a9637ceaa2f523da28a418c9", + "signature": "abb2ba3e129c9833676ffd7917f11d06", "file": true } } diff --git a/android/build.gradle b/android/build.gradle index 7ff73f6..aa89b11 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -13,7 +13,7 @@ def DEFAULT_COMPILE_SDK_VERSION = 33 def DEFAULT_MIN_SDK_VERSION = 21 def DEFAULT_TARGET_SDK_VERSION = 31 -def NATIVE_ANDROID_SDK_VERSION = "20.3.+" +def NATIVE_ANDROID_SDK_VERSION = "20.4.+" def safeExtGet(prop, fallback) { rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index ad36002..f663b9b 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -8,6 +8,6 @@ + android:value="12.2.0" /> diff --git a/ios/BridgeUtils.swift b/ios/BridgeUtils.swift index 5335d95..9bde16c 100644 --- a/ios/BridgeUtils.swift +++ b/ios/BridgeUtils.swift @@ -1,8 +1,16 @@ +// +// BridgeUtils.swift +// +// Copyright © 2016-2024 Onfido. All rights reserved. +// + /* NOTE: These are used in junction with RN + Android, to communicate the information received to the MediaCallback added in TestApp/App.js */ +import Foundation + enum Keys { enum MediaCallback { static let fileData = "fileData" diff --git a/ios/CallbackReceiver.swift b/ios/CallbackReceiver.swift index b755223..6fc0424 100644 --- a/ios/CallbackReceiver.swift +++ b/ios/CallbackReceiver.swift @@ -1,12 +1,13 @@ // // CallbackReceiver.swift // -// Copyright © 2016-2023 Onfido. All rights reserved. +// Copyright © 2016-2024 Onfido. All rights reserved. // import Onfido +import Foundation -class CallbackReceiver { +final class CallbackReceiver { private let onMediaCallback: (([String: Any]) -> Void)? init(withCallback callback: (([String: Any]) -> Void)?) { diff --git a/ios/OnfidoAppearance.swift b/ios/OnfidoAppearance.swift index 0104b14..b8363e2 100644 --- a/ios/OnfidoAppearance.swift +++ b/ios/OnfidoAppearance.swift @@ -1,4 +1,11 @@ +// +// OnfidoAppearance.swift +// +// Copyright © 2016-2024 Onfido. All rights reserved. +// + import Onfido +import Foundation public class AppearancePublic: NSObject { public let primaryColor: UIColor @@ -221,7 +228,6 @@ extension UIColor { // MARK: - Private Helpers -@available(iOS 12.0, *) private extension UIUserInterfaceStyle { init(_ onfidoInterfaceStyle: OnfidoInterfaceStyle) { switch onfidoInterfaceStyle { diff --git a/ios/OnfidoConfigBuilder.swift b/ios/OnfidoConfigBuilder.swift index 79496f7..43ba111 100644 --- a/ios/OnfidoConfigBuilder.swift +++ b/ios/OnfidoConfigBuilder.swift @@ -1,7 +1,7 @@ // // OnfidoConfigBuilder.swift // -// Copyright © 2016-2023 Onfido. All rights reserved. +// Copyright © 2016-2024 Onfido. All rights reserved. // import Foundation diff --git a/ios/OnfidoConfigParser.swift b/ios/OnfidoConfigParser.swift index f7f5a8f..7d739df 100644 --- a/ios/OnfidoConfigParser.swift +++ b/ios/OnfidoConfigParser.swift @@ -1,7 +1,7 @@ // // OnfidoConfigParser.swift // -// Copyright © 2016-2023 Onfido. All rights reserved. +// Copyright © 2016-2024 Onfido. All rights reserved. // import Foundation diff --git a/ios/OnfidoFlowBuilder.swift b/ios/OnfidoFlowBuilder.swift index fd9358f..e05ca6c 100644 --- a/ios/OnfidoFlowBuilder.swift +++ b/ios/OnfidoFlowBuilder.swift @@ -1,13 +1,13 @@ // // OnfidoFlowBuilder.swift // -// Copyright © 2016-2023 Onfido. All rights reserved. +// Copyright © 2016-2024 Onfido. All rights reserved. // import Foundation import Onfido -final class OnfidoFlowBuilder { +struct OnfidoFlowBuilder { private let configBuilder: OnfidoConfigBuilder init(configBuilder: OnfidoConfigBuilder = OnfidoConfigBuilder()) { diff --git a/ios/OnfidoPluginConfig.swift b/ios/OnfidoPluginConfig.swift index 1d755b0..19a4324 100644 --- a/ios/OnfidoPluginConfig.swift +++ b/ios/OnfidoPluginConfig.swift @@ -1,7 +1,7 @@ // // OnfidoPluginConfig.swift // -// Copyright © 2016-2023 Onfido. All rights reserved. +// Copyright © 2016-2024 Onfido. All rights reserved. // import Foundation diff --git a/ios/OnfidoResponse.swift b/ios/OnfidoResponse.swift index f923786..c2002b2 100644 --- a/ios/OnfidoResponse.swift +++ b/ios/OnfidoResponse.swift @@ -1,7 +1,7 @@ // // OnfidoResponse.swift // -// Copyright © 2016-2023 Onfido. All rights reserved. +// Copyright © 2016-2024 Onfido. All rights reserved. // import Foundation diff --git a/ios/OnfidoSdk-Bridging-Header.h b/ios/OnfidoSdk-Bridging-Header.h index 68bbbdb..a8c4665 100644 --- a/ios/OnfidoSdk-Bridging-Header.h +++ b/ios/OnfidoSdk-Bridging-Header.h @@ -1,4 +1,9 @@ // +// OnfidoSdk-Bridging-Header.h +// +// Copyright © 2016-2024 Onfido. All rights reserved. +// +// // Use this file to import your target's public headers that you would like to expose to Swift. // diff --git a/ios/OnfidoSdk.m b/ios/OnfidoSdk.m index 328de71..2b302b0 100644 --- a/ios/OnfidoSdk.m +++ b/ios/OnfidoSdk.m @@ -1,3 +1,9 @@ +// +// OnfidoSdk.m +// +// Copyright © 2016-2024 Onfido. All rights reserved. +// + #import #import #import diff --git a/ios/OnfidoSdk.swift b/ios/OnfidoSdk.swift index 8820489..f507fb6 100644 --- a/ios/OnfidoSdk.swift +++ b/ios/OnfidoSdk.swift @@ -1,7 +1,7 @@ // // OnfidoSdk.swift // -// Copyright © 2016-2023 Onfido. All rights reserved. +// Copyright © 2016-2024 Onfido. All rights reserved. // import Onfido diff --git a/ios/PluginMetadata.h b/ios/PluginMetadata.h index c263983..f11c6f2 100644 --- a/ios/PluginMetadata.h +++ b/ios/PluginMetadata.h @@ -1,3 +1,9 @@ +// +// PluginMetadata.h +// +// Copyright © 2016-2024 Onfido. All rights reserved. +// + #import NS_ASSUME_NONNULL_BEGIN diff --git a/ios/PluginMetadata.m b/ios/PluginMetadata.m index 135d444..a7fe64b 100644 --- a/ios/PluginMetadata.m +++ b/ios/PluginMetadata.m @@ -1,3 +1,9 @@ +// +// PluginMetadata.m +// +// Copyright © 2016-2024 Onfido. All rights reserved. +// + #import "PluginMetadata.h" @implementation PluginMetadata @@ -7,7 +13,7 @@ - (instancetype)init self = [super init]; if (self) { _pluginPlatform = @"react-native"; - _pluginVersion = @"12.1.0"; + _pluginVersion = @"12.2.0"; } return self; } diff --git a/ios/Podfile b/ios/Podfile index 9e10ca1..74c9585 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -27,7 +27,7 @@ flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : Flip # end target 'OnfidoSdk' do - pod 'Onfido', '~> 30.1.0' + pod 'Onfido', '~> 30.2.0' config = use_native_modules! use_react_native!( @@ -43,7 +43,7 @@ target 'OnfidoSdk' do # Pods for testing end - # unary_function and binary_function are no longer provided in C++17 and newer standard modes as part of Xcode 15. + # unary_function and binary_function are no longer provided in C++17 and newer standard modes as part of Xcode 15. # They can be re-enabled with setting _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION # Ref: https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Deprecations # Solution: https://github.com/facebook/react-native/issues/37748#issuecomment-1580589448 diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 487fd74..7422bbf 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -11,7 +11,7 @@ PODS: - ReactCommon/turbomodule/core (= 0.72.10) - fmt (6.2.1) - glog (0.3.5) - - Onfido (30.0.0) + - Onfido (30.2.0) - RCT-Folly (2021.07.22.00): - boost - DoubleConversion @@ -397,7 +397,7 @@ DEPENDENCIES: - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) - - Onfido (~> 30.0.0) + - Onfido (~> 30.2.0) - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) @@ -524,7 +524,7 @@ SPEC CHECKSUMS: FBReactNativeSpec: b13d1c23d6ed82d6b66aad7a253edf8ba76c4a4c fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b - Onfido: c6f161967f23fdbfcc00abe8c9a5553ef682064a + Onfido: 3872c7cde032a5737b461f7880b4167311a4e2bf RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 RCTRequired: b4d3068afa6f52ec5260a8417053b1f1b421483d RCTTypeSafety: a4551b3d338c96435f63bf06d564055c1d3cc0ac @@ -560,6 +560,6 @@ SPEC CHECKSUMS: SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 Yoga: d0003f849d2b5224c072cef6568b540d8bb15cd3 -PODFILE CHECKSUM: 9554802fcc199b28137665b672dd916b2fb8fb77 +PODFILE CHECKSUM: a7cbe0bb1af5ec7e609d408be80a9b111c0ac21f COCOAPODS: 1.15.2 diff --git a/onfido-react-native-sdk.podspec b/onfido-react-native-sdk.podspec index 5209d62..d02605e 100644 --- a/onfido-react-native-sdk.podspec +++ b/onfido-react-native-sdk.podspec @@ -20,5 +20,5 @@ Pod::Spec.new do |s| s.requires_arc = true s.dependency "React" - s.dependency "Onfido", "~> 30.1.0" + s.dependency "Onfido", "~> 30.2.0" end diff --git a/package.json b/package.json index d24497c..8aa162e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@onfido/react-native-sdk", "title": "React Native Onfido Sdk", - "version": "12.1.0", + "version": "12.2.0", "description": "Onfido React Native SDK", "main": "index.ts", "scripts": {