@idnow/react-idcheckio 8.1.9 → 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.
- package/android/build.gradle +1 -1
- package/idnow-react-idcheckio.podspec +1 -1
- package/package.json +1 -1
- package/release-public.sh +13 -7
package/android/build.gradle
CHANGED
|
@@ -105,7 +105,7 @@ dependencies {
|
|
|
105
105
|
//noinspection GradleDynamicVersion
|
|
106
106
|
implementation "com.facebook.react:react-native:+"
|
|
107
107
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
108
|
-
implementation('com.ariadnext.android.idcheckio:sdk:8.1.
|
|
108
|
+
implementation('com.ariadnext.android.idcheckio:sdk:8.1.10@aar') {
|
|
109
109
|
transitive = true
|
|
110
110
|
}
|
|
111
111
|
implementation 'androidx.appcompat:appcompat:1.7.0'
|
|
@@ -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.
|
|
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
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.
|
|
18
|
-
current_ios_version="8.1.
|
|
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
|
-
|
|
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
|
-
|
|
91
|
+
if [[ -n "$custom_tag" ]]; then
|
|
92
|
+
npm publish --access public --tag "$custom_tag"
|
|
93
|
+
else
|
|
94
|
+
npm publish --access public
|
|
95
|
+
fi
|