@veriff/react-native-sdk 8.1.0 → 9.1.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.
@@ -10,7 +10,7 @@ buildscript {
10
10
 
11
11
  dependencies {
12
12
  classpath 'com.android.tools.build:gradle:7.4.2'
13
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.9.22')}"
13
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '2.0.21')}"
14
14
  }
15
15
  }
16
16
 
@@ -31,12 +31,12 @@ android {
31
31
  }
32
32
  }
33
33
 
34
- compileSdkVersion safeExtGet('compileSdkVersion', 34)
35
- buildToolsVersion safeExtGet('buildToolsVersion', '34.0.0')
34
+ compileSdkVersion safeExtGet('compileSdkVersion', 35)
35
+ buildToolsVersion safeExtGet('buildToolsVersion', '35.0.0')
36
36
 
37
37
  defaultConfig {
38
38
  minSdkVersion safeExtGet('minSdkVersion', 26)
39
- targetSdkVersion safeExtGet('targetSdkVersion', 34)
39
+ targetSdkVersion safeExtGet('targetSdkVersion', 35)
40
40
  }
41
41
  }
42
42
 
@@ -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.7.0'
55
+ implementation 'com.veriff:veriff-library:7.11.0'
56
56
  }
@@ -1,5 +1,7 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4
+ networkTimeout=10000
5
+ validateDistributionUrl=true
4
6
  zipStoreBase=GRADLE_USER_HOME
5
7
  zipStorePath=wrapper/dists
package/android/gradlew CHANGED
@@ -55,7 +55,7 @@
55
55
  # Darwin, MinGW, and NonStop.
56
56
  #
57
57
  # (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58
+ # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
59
  # within the Gradle project.
60
60
  #
61
61
  # You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,13 +80,11 @@ do
80
80
  esac
81
81
  done
82
82
 
83
- APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84
-
85
- APP_NAME="Gradle"
83
+ # This is normally unused
84
+ # shellcheck disable=SC2034
86
85
  APP_BASE_NAME=${0##*/}
87
-
88
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
86
+ # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87
+ APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
90
88
 
91
89
  # Use the maximum available, or set MAX_FD != -1 to use that value.
92
90
  MAX_FD=maximum
@@ -133,22 +131,29 @@ location of your Java installation."
133
131
  fi
134
132
  else
135
133
  JAVACMD=java
136
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134
+ if ! command -v java >/dev/null 2>&1
135
+ then
136
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137
137
 
138
138
  Please set the JAVA_HOME variable in your environment to match the
139
139
  location of your Java installation."
140
+ fi
140
141
  fi
141
142
 
142
143
  # Increase the maximum file descriptors if we can.
143
144
  if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144
145
  case $MAX_FD in #(
145
146
  max*)
147
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148
+ # shellcheck disable=SC2039,SC3045
146
149
  MAX_FD=$( ulimit -H -n ) ||
147
150
  warn "Could not query maximum file descriptor limit"
148
151
  esac
149
152
  case $MAX_FD in #(
150
153
  '' | soft) :;; #(
151
154
  *)
155
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156
+ # shellcheck disable=SC2039,SC3045
152
157
  ulimit -n "$MAX_FD" ||
153
158
  warn "Could not set maximum file descriptor limit to $MAX_FD"
154
159
  esac
@@ -193,11 +198,15 @@ if "$cygwin" || "$msys" ; then
193
198
  done
194
199
  fi
195
200
 
196
- # Collect all arguments for the java command;
197
- # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198
- # shell script including quotes and variable substitutions, so put them in
199
- # double quotes to make sure that they get re-expanded; and
200
- # * put everything else in single quotes, so that it's not re-expanded.
201
+
202
+ # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203
+ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204
+
205
+ # Collect all arguments for the java command:
206
+ # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207
+ # and any embedded shellness will be escaped.
208
+ # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209
+ # treated as '${Hostname}' itself on the command line.
201
210
 
202
211
  set -- \
203
212
  "-Dorg.gradle.appname=$APP_BASE_NAME" \
@@ -205,6 +214,12 @@ set -- \
205
214
  org.gradle.wrapper.GradleWrapperMain \
206
215
  "$@"
207
216
 
217
+ # Stop when "xargs" is not available.
218
+ if ! command -v xargs >/dev/null 2>&1
219
+ then
220
+ die "xargs is not available"
221
+ fi
222
+
208
223
  # Use "xargs" to parse quoted args.
209
224
  #
210
225
  # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
@@ -14,7 +14,7 @@
14
14
  @rem limitations under the License.
15
15
  @rem
16
16
 
17
- @if "%DEBUG%" == "" @echo off
17
+ @if "%DEBUG%"=="" @echo off
18
18
  @rem ##########################################################################
19
19
  @rem
20
20
  @rem Gradle startup script for Windows
@@ -25,7 +25,8 @@
25
25
  if "%OS%"=="Windows_NT" setlocal
26
26
 
27
27
  set DIRNAME=%~dp0
28
- if "%DIRNAME%" == "" set DIRNAME=.
28
+ if "%DIRNAME%"=="" set DIRNAME=.
29
+ @rem This is normally unused
29
30
  set APP_BASE_NAME=%~n0
30
31
  set APP_HOME=%DIRNAME%
31
32
 
@@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
40
41
 
41
42
  set JAVA_EXE=java.exe
42
43
  %JAVA_EXE% -version >NUL 2>&1
43
- if "%ERRORLEVEL%" == "0" goto execute
44
+ if %ERRORLEVEL% equ 0 goto execute
44
45
 
45
46
  echo. 1>&2
46
47
  echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
@@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
75
76
 
76
77
  :end
77
78
  @rem End local scope for the variables with windows NT shell
78
- if "%ERRORLEVEL%"=="0" goto mainEnd
79
+ if %ERRORLEVEL% equ 0 goto mainEnd
79
80
 
80
81
  :fail
81
82
  rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82
83
  rem the _cmd.exe /c_ return code!
83
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84
- exit /b 1
84
+ set EXIT_CODE=%ERRORLEVEL%
85
+ if %EXIT_CODE% equ 0 set EXIT_CODE=1
86
+ if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87
+ exit /b %EXIT_CODE%
85
88
 
86
89
  :mainEnd
87
90
  if "%OS%"=="Windows_NT" endlocal
package/ios/Podfile CHANGED
@@ -1,4 +1,4 @@
1
- platform :ios, '13.4'
1
+ platform :ios, '15.1'
2
2
 
3
3
  # Resolve react_native_pods.rb with node to allow for hoisting
4
4
  require Pod::Executable.execute_command('node', ['-p',
@@ -9,7 +9,9 @@ require Pod::Executable.execute_command('node', ['-p',
9
9
 
10
10
  target 'VeriffSdk' do
11
11
  # Pods for VeriffSdk
12
- pod 'VeriffSDK', '7.12.0'
12
+ pod 'VeriffSDK', '8.4.0'
13
+ # Add it to your Podfile if you want to enable NFC scanning
14
+ pod 'VeriffNFCSDK'
13
15
 
14
16
  config = use_native_modules!
15
17
 
@@ -135,7 +135,7 @@ class VeriffSdk: NSObject {
135
135
  }
136
136
 
137
137
  veriffConfiguration?.customIntroScreen = VeriffSdk.checkCustomIntro(configuration: configuration)
138
- veriffConfiguration?.vendorData = configuration[VeriffSdk.VENDOR_DATA] as? String
138
+ veriffConfiguration?.vendorDataProvider = { _ in configuration[VeriffSdk.VENDOR_DATA] as? String }
139
139
 
140
140
  DispatchQueue.main.async {
141
141
  self.resolve = resolve
@@ -324,7 +324,7 @@
324
324
  CODE_SIGN_STYLE = Automatic;
325
325
  DEBUG_INFORMATION_FORMAT = dwarf;
326
326
  GCC_C_LANGUAGE_STANDARD = gnu11;
327
- IPHONEOS_DEPLOYMENT_TARGET = 13.2;
327
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
328
328
  LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
329
329
  MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
330
330
  MTL_FAST_MATH = YES;
@@ -354,7 +354,7 @@
354
354
  COPY_PHASE_STRIP = NO;
355
355
  DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
356
356
  GCC_C_LANGUAGE_STANDARD = gnu11;
357
- IPHONEOS_DEPLOYMENT_TARGET = 13.2;
357
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
358
358
  LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
359
359
  MTL_FAST_MATH = YES;
360
360
  OTHER_LDFLAGS = "-ObjC";
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": "8.1.0",
4
+ "version": "9.1.0",
5
5
  "description": "React Native SDK for Veriff identity verification",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -25,20 +25,25 @@
25
25
  "licenseFilename": "LICENSE",
26
26
  "readmeFilename": "README.md",
27
27
  "peerDependencies": {
28
- "react": "^18.3.0",
29
- "react-native": "^0.74.0"
28
+ "react": "^19.0.0",
29
+ "react-native": "^0.79.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@babel/core": "^7.20.0",
33
- "@babel/preset-env": "^7.20.0",
34
- "@babel/runtime": "^7.20.0",
35
- "@react-native/babel-preset": "^0.74.0",
36
- "@react-native/eslint-config": "^0.74.0",
37
- "@react-native/metro-config": "^0.74.0",
38
- "@react-native/typescript-config": "^0.74.0",
39
- "@types/react": "^18.2.6",
32
+ "@babel/core": "^7.25.2",
33
+ "@babel/preset-env": "^7.25.3",
34
+ "@babel/runtime": "^7.25.0",
35
+ "@react-native-community/cli": "18.0.0",
36
+ "@react-native-community/cli-platform-android": "18.0.0",
37
+ "@react-native-community/cli-platform-ios": "18.0.0",
38
+ "@react-native/babel-preset": "^0.79.0",
39
+ "@react-native/eslint-config": "^0.79.0",
40
+ "@react-native/metro-config": "^0.79.0",
41
+ "@react-native/typescript-config": "^0.79.0",
42
+ "@types/react": "^19.0.0",
43
+ "@types/react-test-renderer": "^19.0.0",
40
44
  "eslint": "^8.19.0",
41
45
  "prettier": "2.8.8",
46
+ "react-test-renderer": "19.0.0",
42
47
  "typescript": "5.0.4"
43
48
  },
44
49
  "engines": {
@@ -13,12 +13,12 @@ Pod::Spec.new do |s|
13
13
  s.license = "MIT"
14
14
  # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
15
15
  s.authors = { "Veriff" => "support@veriff.com" }
16
- s.platforms = { :ios => "13.4" }
16
+ s.platforms = { :ios => "15.1" }
17
17
  s.source = { :git => "https://github.com/veriff/react-native-sdk.git", :tag => "#{s.version}" }
18
18
 
19
19
  s.source_files = "ios/**/*.{h,m,swift}"
20
20
  s.requires_arc = true
21
21
 
22
22
  s.dependency "React"
23
- s.dependency "VeriffSDK", "7.12.0"
23
+ s.dependency "VeriffSDK", "8.4.0"
24
24
  end