@idnow/react-idcheckio 8.1.8 → 8.1.10

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.
@@ -48,6 +48,8 @@ def supportsNamespace() {
48
48
  }
49
49
 
50
50
  android {
51
+ ndkVersion getExtOrDefault("ndkversion")
52
+
51
53
  if (supportsNamespace()) {
52
54
  namespace "com.idnowreactidcheckio"
53
55
 
@@ -93,13 +95,17 @@ repositories {
93
95
 
94
96
  def kotlin_version = getExtOrDefault("kotlinVersion")
95
97
 
98
+ configurations.all {
99
+ exclude group: 'org.jetbrains.kotlin', module: 'kotlin-compose-compiler-plugin-embeddable'
100
+ }
101
+
96
102
  dependencies {
97
103
  // For < 0.71, this will be from the local maven repo
98
104
  // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
99
105
  //noinspection GradleDynamicVersion
100
106
  implementation "com.facebook.react:react-native:+"
101
107
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
102
- implementation('com.ariadnext.android.idcheckio:sdk:8.1.8@aar') {
108
+ implementation('com.ariadnext.android.idcheckio:sdk:8.1.10@aar') {
103
109
  transitive = true
104
110
  }
105
111
  implementation 'androidx.appcompat:appcompat:1.7.0'
@@ -1,5 +1,5 @@
1
- IdnowReactIdcheckio_kotlinVersion=2.0.20
1
+ IdnowReactIdcheckio_kotlinVersion=2.2.0
2
2
  IdnowReactIdcheckio_minSdkVersion=21
3
3
  IdnowReactIdcheckio_targetSdkVersion=35
4
4
  IdnowReactIdcheckio_compileSdkVersion=35
5
- IdnowReactIdcheckio_ndkversion=27.2.12479018
5
+ IdnowReactIdcheckio_ndkversion=27.1.12297006
@@ -92,7 +92,7 @@ class IdnowReactIdcheckioModule(private val reactContext: ReactApplicationContex
92
92
 
93
93
  @ReactMethod
94
94
  fun start(params: ReadableMap, onlineContext: ReadableMap?, theme: ReadableMap?, promise: Promise) {
95
- val activity = currentActivity ?: run {
95
+ val activity = reactContext.currentActivity ?: run {
96
96
  promise.reject(name, noContextError())
97
97
  return
98
98
  }
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
17
  s.swift_version = "5.7"
18
18
 
19
- s.dependency "IDCheckIOSDK", "~> 8.1.5"
19
+ s.dependency "IDCheckIOSDK", "~> 8.1.10"
20
20
 
21
21
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
22
22
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idnow/react-idcheckio",
3
3
  "title": "IDCheckIO SDK ReactNative",
4
- "version": "8.1.8",
4
+ "version": "8.1.10",
5
5
  "description": "React Native plugin for IDCheck.io Mobile SDK",
6
6
  "homepage": "https://www.idnow.io/",
7
7
  "react-native": "src/index",
@@ -18,8 +18,8 @@
18
18
  "@types/react": "^18.2.44"
19
19
  },
20
20
  "peerDependencies": {
21
- "react": ">=17.0.1",
22
- "react-native": ">=0.64.0"
21
+ "react": "19.1.0",
22
+ "react-native": "0.81.5"
23
23
  },
24
24
  "packageManager": "yarn@3.6.1"
25
25
  }
package/release-public.sh CHANGED
@@ -9,18 +9,19 @@
9
9
 
10
10
  # Steps to create npm account
11
11
  # - https://www.npmjs.com/signup
12
- # - Ask for access in idnow
12
+ # - Ask for access in idnow
13
13
 
14
14
  PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
15
15
 
16
16
  # Don't modify theses two variables!
17
- current_android_version="8.1.8"
18
- current_ios_version="8.1.5"
17
+ current_android_version="8.1.10"
18
+ current_ios_version="8.1.10"
19
19
 
20
20
  # Read version wanted from input
21
21
  android_value=""
22
22
  ios_value=""
23
23
  common_version=""
24
+ custom_tag=""
24
25
 
25
26
  # Function to extract and compare minor versions and update the common version to use for the package one
26
27
  update_package_version() {
@@ -39,10 +40,11 @@ update_package_version() {
39
40
  }
40
41
 
41
42
  # Process parameters using getopts with clear option handling
42
- while getopts ":a:i:" opt; do
43
+ while getopts ":a:i:t:" opt; do
43
44
  case $opt in
44
45
  a) android_value="$OPTARG" ;;
45
46
  i) ios_value="$OPTARG" ;;
47
+ t) custom_tag="$OPTARG" ;;
46
48
  \?) echo "Invalid option: -$OPTARG" >&2; exit 1 ;;
47
49
  esac
48
50
  done
@@ -50,7 +52,7 @@ done
50
52
  # Shift remaining arguments after options are processed
51
53
  shift $((OPTIND - 1))
52
54
 
53
- if [[ ! -n $android_value || ! -n $ios_value ]]; then
55
+ if [[ ! -n $android_value || ! -n $ios_value ]]; then
54
56
  echo "[Usage]\n$0 -a (Android version ex: 8.0.0) -i (iOS version ex: 8.0.1)"
55
57
  fi
56
58
 
@@ -66,7 +68,7 @@ if [[ -n "$ios_value" && ! "$ios_value" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
66
68
  fi
67
69
 
68
70
  # Determine package version
69
- if [[ -n "$android_value" && -n "$ios_value" ]]; then
71
+ if [[ -n "$android_value" && -n "$ios_value" ]]; then
70
72
  update_package_version $android_value $ios_value
71
73
  fi
72
74
 
@@ -86,4 +88,8 @@ echo
86
88
  # Make sure current user is logged in under organization scope
87
89
  npm login --registry=https://registry.npmjs.org --scope=@idnow
88
90
  # Publish
89
- npm publish --access public
91
+ if [[ -n "$custom_tag" ]]; then
92
+ npm publish --access public --tag "$custom_tag"
93
+ else
94
+ npm publish --access public
95
+ fi