@veriff/react-native-sdk 11.1.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,5 +52,5 @@ dependencies {
52
52
  implementation 'com.facebook.react:react-android:+'
53
53
  implementation "org.jetbrains.kotlin:kotlin-stdlib:1.8.21"
54
54
 
55
- implementation 'com.veriff:veriff-library:7.14.0'
55
+ implementation 'com.veriff:veriff-library:8.0.0'
56
56
  }
package/ios/Podfile CHANGED
@@ -9,7 +9,7 @@ require Pod::Executable.execute_command('node', ['-p',
9
9
 
10
10
  target 'VeriffSdk' do
11
11
  # Pods for VeriffSdk
12
- pod 'VeriffSDK', '8.11.0'
12
+ pod 'VeriffSDK', '9.1.1'
13
13
  # Add it to your Podfile if you want to enable NFC scanning
14
14
  pod 'VeriffNFCSDK'
15
15
 
@@ -185,13 +185,24 @@ extension VeriffSdk: VeriffSdkDelegate {
185
185
  case .deprecatedSDKVersion:
186
186
  resultDict[VeriffSdk.ERROR] = VeriffSdk.ERROR_UNSUPPORTED_SDK_VERSION
187
187
  @unknown default:
188
- fatalError("Unknown status.")
188
+ assertionFailure("Unknown error: \(err)")
189
+ resultDict[VeriffSdk.ERROR] = VeriffSdk.ERROR_UNKNOWN
189
190
  }
190
191
  @unknown default:
191
- fatalError("Unknown status.")
192
+ assertionFailure("Unknown status: \(result.status)")
193
+ resultDict[VeriffSdk.STATUS] = VeriffSdk.STATUS_ERROR
194
+ resultDict[VeriffSdk.ERROR] = VeriffSdk.ERROR_UNKNOWN
192
195
  }
193
196
  self.resolve?(resultDict)
194
197
  }
198
+
199
+ func nfcDataExtracted(_ data: Veriff.VeriffSdk.NFCData) {
200
+ // NFC data extraction callback - not exposed to React Native
201
+ }
202
+
203
+ func nfcDataExtractionFailed() {
204
+ // NFC data extraction failure callback - not exposed to React Native
205
+ }
195
206
  }
196
207
 
197
208
  private extension Dictionary where Key == String, Value == AnyObject {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veriff/react-native-sdk",
3
3
  "title": "React Native Veriff SDK",
4
- "version": "11.1.0",
4
+ "version": "12.0.0",
5
5
  "description": "React Native SDK for Veriff identity verification",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -20,5 +20,5 @@ Pod::Spec.new do |s|
20
20
  s.requires_arc = true
21
21
 
22
22
  s.dependency "React"
23
- s.dependency "VeriffSDK", "8.11.0"
23
+ s.dependency "VeriffSDK", "9.1.1"
24
24
  end