@sumsub/cordova-idensic-mobile-sdk-plugin 1.17.4 → 1.18.4
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/demo/Gemfile.lock +87 -70
- package/demo/config.xml +4 -3
- package/demo/package-lock.json +3544 -3526
- package/demo/package.json +2 -2
- package/demo/platforms/android/android.json +3 -3
- package/demo/platforms/android/app/build.gradle +2 -0
- package/demo/platforms/android/app/src/main/AndroidManifest.xml +2 -2
- package/demo/platforms/android/app/src/main/java/main/java/com/sumsub/msdk/plugins/cordova/SNSMobileSdkCordovaPlugin.java +37 -16
- package/demo/platforms/android/app/src/main/res/values/strings.xml +1 -0
- package/demo/platforms/android/app/src/main/res/xml/config.xml +5 -4
- package/demo/platforms/android/build.gradle +5 -3
- package/demo/platforms/android/cordova-idensic-mobile-sdk-plugin/SumSubCordova-build-extras.gradle +4 -2
- package/demo/platforms/android/gradle.properties +2 -1
- package/demo/platforms/android/platform_www/cordova_plugins.js +1 -1
- package/demo/platforms/android/platform_www/plugins/cordova-idensic-mobile-sdk-plugin/dist/SNSMobileSDK.js +1 -1
- package/demo/platforms/ios/Podfile +1 -1
- package/demo/platforms/ios/Podfile.lock +7 -7
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Contents.json +64 -70
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-1024.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-20.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-20@2x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-20@3x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-29.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-29@2x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-29@3x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-40.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-40@2x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-40@3x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-60@2x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-60@3x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-76.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-76@2x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-83.5@2x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Plugins/cordova-idensic-mobile-sdk-plugin/SNSMobileSdkCordovaPlugin.m +33 -5
- package/demo/platforms/ios/SumSubCordova/SumSubCordova-Info.plist +5 -5
- package/demo/platforms/ios/SumSubCordova/config.xml +3 -3
- package/demo/platforms/ios/SumSubCordova.xcodeproj/project.pbxproj +23 -23
- package/demo/platforms/ios/ios.json +1 -1
- package/demo/platforms/ios/platform_www/cordova_plugins.js +1 -1
- package/demo/platforms/ios/platform_www/plugins/cordova-idensic-mobile-sdk-plugin/dist/SNSMobileSDK.js +1 -1
- package/demo/platforms/ios/pods.json +1 -1
- package/demo/plugins/cordova-idensic-mobile-sdk-plugin/dist/SNSMobileSDK.js +1 -1
- package/demo/plugins/cordova-idensic-mobile-sdk-plugin/package.json +3 -3
- package/demo/plugins/cordova-idensic-mobile-sdk-plugin/plugin.xml +4 -4
- package/demo/plugins/cordova-idensic-mobile-sdk-plugin/src/android/build-extras.gradle +4 -2
- package/demo/plugins/cordova-idensic-mobile-sdk-plugin/src/android/build.gradle +5 -5
- package/demo/plugins/cordova-idensic-mobile-sdk-plugin/src/android/src/main/java/com/sumsub/msdk/plugins/cordova/SNSMobileSdkCordovaPlugin.java +37 -16
- package/demo/plugins/cordova-idensic-mobile-sdk-plugin/src/ios/SNSMobileSdkCordovaPlugin.m +33 -5
- package/dist/SNSMobileSDK.js +1 -1
- package/package.json +3 -3
- package/plugin.xml +4 -4
- package/src/android/build-extras.gradle +4 -2
- package/src/android/build.gradle +5 -5
- package/src/android/src/main/java/com/sumsub/msdk/plugins/cordova/SNSMobileSdkCordovaPlugin.java +37 -16
- package/src/ios/SNSMobileSdkCordovaPlugin.m +33 -5
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png +0 -0
- package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png +0 -0
- package/demo/plugins/cordova-idensic-mobile-sdk-plugin/src/android/dependencies.gradle +0 -122
- package/src/android/dependencies.gradle +0 -122
package/demo/package.json
CHANGED
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"count": 1
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
"xml": "<preference name=\"android-targetSdkVersion\" value=\"
|
|
40
|
+
"xml": "<preference name=\"android-targetSdkVersion\" value=\"30\" />",
|
|
41
41
|
"count": 1
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
"xml": "<preference name=\"android-compileSdkVersion\" value=\"
|
|
44
|
+
"xml": "<preference name=\"android-compileSdkVersion\" value=\"30\" />",
|
|
45
45
|
"count": 1
|
|
46
46
|
},
|
|
47
47
|
{
|
|
@@ -435,6 +435,6 @@
|
|
|
435
435
|
"cordova-plugin-whitelist": "1.3.4",
|
|
436
436
|
"cordova-plugin-wkwebview-engine": "1.2.1",
|
|
437
437
|
"cordova-plugin-timer": "1.0.1",
|
|
438
|
-
"cordova-idensic-mobile-sdk-plugin": "1.
|
|
438
|
+
"cordova-idensic-mobile-sdk-plugin": "1.18.4"
|
|
439
439
|
}
|
|
440
440
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<manifest android:hardwareAccelerated="true" android:versionCode="
|
|
2
|
+
<manifest android:hardwareAccelerated="true" android:versionCode="11803" android:versionName="1.18.3" package="com.sumsub.SumSubCordova" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
3
|
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
|
|
4
4
|
<application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:name="androidx.multidex.MultiDexApplication" android:supportsRtl="true">
|
|
5
5
|
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
15
15
|
<uses-permission android:name="android.permission.FLASHLIGHT" />
|
|
16
16
|
<uses-feature android:name="android.hardware.camera" android:required="true" />
|
|
17
|
-
<uses-permission android:name="android.permission.CAMERA" />
|
|
18
17
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
18
|
+
<uses-permission android:name="android.permission.CAMERA" />
|
|
19
19
|
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
|
20
20
|
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
|
21
21
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
@@ -4,7 +4,7 @@ import android.content.Intent;
|
|
|
4
4
|
import android.text.TextUtils;
|
|
5
5
|
import android.util.Log;
|
|
6
6
|
import android.webkit.ValueCallback;
|
|
7
|
-
|
|
7
|
+
import androidx.core.content.res.ResourcesCompat;
|
|
8
8
|
import com.google.gson.Gson;
|
|
9
9
|
import com.sumsub.sns.R;
|
|
10
10
|
import com.sumsub.sns.core.SNSActionResult;
|
|
@@ -20,6 +20,8 @@ import com.sumsub.sns.core.data.model.SNSCompletionResult;
|
|
|
20
20
|
import com.sumsub.sns.core.data.model.SNSException;
|
|
21
21
|
import com.sumsub.sns.core.data.model.SNSSDKState;
|
|
22
22
|
import com.sumsub.sns.core.data.model.SNSSupportItem;
|
|
23
|
+
import com.sumsub.sns.core.data.listener.SNSIconHandler;
|
|
24
|
+
import com.sumsub.sns.core.data.model.SNSInitConfig;
|
|
23
25
|
import com.sumsub.sns.prooface.SNSProoface;
|
|
24
26
|
|
|
25
27
|
import org.apache.cordova.CallbackContext;
|
|
@@ -68,19 +70,22 @@ public class SNSMobileSdkCordovaPlugin extends CordovaPlugin {
|
|
|
68
70
|
String locale = conf.optString("locale");
|
|
69
71
|
boolean isDebug = conf.optBoolean("debug", false);
|
|
70
72
|
JSONObject hasHandlers = conf.getJSONObject("hasHandlers");
|
|
73
|
+
JSONObject applicantConf = conf.optJSONObject("applicantConf");
|
|
74
|
+
String phone = applicantConf.optString("phone");
|
|
75
|
+
String email = applicantConf.optString("email");
|
|
71
76
|
|
|
72
77
|
if (TextUtils.isEmpty(supportEmail)) {
|
|
73
78
|
supportEmail = "support@sumsub.com";
|
|
74
79
|
}
|
|
75
80
|
|
|
76
|
-
if (TextUtils.isEmpty(
|
|
77
|
-
callbackContext.error("Error: Access token
|
|
81
|
+
if (TextUtils.isEmpty(accessToken)) {
|
|
82
|
+
callbackContext.error("Error: Access token must be provided");
|
|
78
83
|
return false;
|
|
79
84
|
}
|
|
80
85
|
if (TextUtils.isEmpty(locale)) {
|
|
81
86
|
locale = Locale.getDefault().getLanguage();
|
|
82
87
|
}
|
|
83
|
-
this.launchSNSMobileSDK(apiUrl, flowName, accessToken, supportEmail, locale, isDebug, hasHandlers, callbackContext);
|
|
88
|
+
this.launchSNSMobileSDK(apiUrl, flowName, accessToken, supportEmail, email, phone, locale, isDebug, hasHandlers, callbackContext);
|
|
84
89
|
return true;
|
|
85
90
|
} else if (action.equals(NEW_TOKEN_ACTION)) {
|
|
86
91
|
newAccessToken = args.getString(0);
|
|
@@ -134,14 +139,7 @@ public class SNSMobileSdkCordovaPlugin extends CordovaPlugin {
|
|
|
134
139
|
});
|
|
135
140
|
}
|
|
136
141
|
|
|
137
|
-
private void launchSNSMobileSDK(final String apiUrl, final String flowName, final String accessToken, String supportEmail, final String locale, final boolean isDebug, final JSONObject hasHandlers, CallbackContext callbackContext) {
|
|
138
|
-
final SNSSupportItem supportItem = new SNSSupportItem(
|
|
139
|
-
R.string.sns_support_EMAIL_title,
|
|
140
|
-
R.string.sns_support_EMAIL_description,
|
|
141
|
-
R.drawable.sns_ic_email,
|
|
142
|
-
SNSSupportItem.Type.Email,
|
|
143
|
-
supportEmail, null);
|
|
144
|
-
|
|
142
|
+
private void launchSNSMobileSDK(final String apiUrl, final String flowName, final String accessToken, String supportEmail, String email, String phone, final String locale, final boolean isDebug, final JSONObject hasHandlers, CallbackContext callbackContext) {
|
|
145
143
|
|
|
146
144
|
cordova.getActivity().runOnUiThread(new Runnable() {
|
|
147
145
|
@Override
|
|
@@ -193,7 +191,7 @@ public class SNSMobileSdkCordovaPlugin extends CordovaPlugin {
|
|
|
193
191
|
final SNSEventHandler eventHandler = snsEvent -> {
|
|
194
192
|
Map<String, Object> params = new HashMap<>();
|
|
195
193
|
final Map<String, Object> payload = snsEvent.getPayload();
|
|
196
|
-
for (String key: payload.keySet()) {
|
|
194
|
+
for (String key : payload.keySet()) {
|
|
197
195
|
if (key.equals("isCanceled") || key.equals("isCancelled")) {
|
|
198
196
|
params.put("isCancelled", (Boolean) payload.get(key));
|
|
199
197
|
} else {
|
|
@@ -214,7 +212,28 @@ public class SNSMobileSdkCordovaPlugin extends CordovaPlugin {
|
|
|
214
212
|
});
|
|
215
213
|
};
|
|
216
214
|
|
|
217
|
-
|
|
215
|
+
SNSMobileSDK.Builder snsSdkBuilder;
|
|
216
|
+
if (flowName.isEmpty()) {
|
|
217
|
+
snsSdkBuilder = new SNSMobileSDK.Builder(cordova.getActivity());
|
|
218
|
+
} else {
|
|
219
|
+
snsSdkBuilder = new SNSMobileSDK.Builder(cordova.getActivity(), null, flowName);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (apiUrl != null && !apiUrl.isEmpty()) {
|
|
223
|
+
snsSdkBuilder.withBaseUrl(apiUrl);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
final SNSSupportItem supportItem = new SNSSupportItem(
|
|
227
|
+
R.string.sns_support_EMAIL_title,
|
|
228
|
+
R.string.sns_support_EMAIL_description,
|
|
229
|
+
SNSSupportItem.Type.Email,
|
|
230
|
+
supportEmail,
|
|
231
|
+
null,
|
|
232
|
+
SNSIconHandler.SNSCommonIcons.MAIL.getImageName(),
|
|
233
|
+
null
|
|
234
|
+
);
|
|
235
|
+
|
|
236
|
+
snsSdk = snsSdkBuilder
|
|
218
237
|
.withAccessToken(accessToken, () -> {
|
|
219
238
|
Timber.d("SumSub: calling onTokenExpired!");
|
|
220
239
|
newAccessToken = null;
|
|
@@ -242,10 +261,12 @@ public class SNSMobileSdkCordovaPlugin extends CordovaPlugin {
|
|
|
242
261
|
.withEventHandler(eventHandler)
|
|
243
262
|
.withSupportItems(Collections.singletonList(supportItem))
|
|
244
263
|
.withLocale(new Locale(locale))
|
|
264
|
+
.withConf(new SNSInitConfig(email, phone))
|
|
245
265
|
.build();
|
|
246
266
|
snsSdk.launch();
|
|
247
267
|
} catch (Exception e) {
|
|
248
268
|
Timber.e(e);
|
|
269
|
+
callbackContext.error("Error:" + e.getMessage());
|
|
249
270
|
}
|
|
250
271
|
|
|
251
272
|
}
|
|
@@ -285,7 +306,7 @@ public class SNSMobileSdkCordovaPlugin extends CordovaPlugin {
|
|
|
285
306
|
final SNSSDKState.ActionCompleted action = (SNSSDKState.ActionCompleted) state;
|
|
286
307
|
final JSONObject actionResult = new JSONObject();
|
|
287
308
|
actionResult.put("actionId", action.getActionId());
|
|
288
|
-
actionResult.put("answer", action.getAnswer()
|
|
309
|
+
actionResult.put("answer", action.getAnswer());
|
|
289
310
|
result.put("actionResult", actionResult);
|
|
290
311
|
}
|
|
291
312
|
} catch (JSONException e) {
|
|
@@ -305,7 +326,7 @@ public class SNSMobileSdkCordovaPlugin extends CordovaPlugin {
|
|
|
305
326
|
private String mapToString(Map<String, Object> values) {
|
|
306
327
|
StringBuilder sb = new StringBuilder();
|
|
307
328
|
sb.append('{');
|
|
308
|
-
for (String key: values.keySet()) {
|
|
329
|
+
for (String key : values.keySet()) {
|
|
309
330
|
Object value = values.get(key);
|
|
310
331
|
sb.append("'");
|
|
311
332
|
sb.append(key);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<widget android-versionCode="
|
|
2
|
+
<widget android-versionCode="11803" id="com.sumsub.SumSubCordova" version="1.18.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
|
3
3
|
<feature name="File">
|
|
4
4
|
<param name="android-package" value="org.apache.cordova.file.FileUtils" />
|
|
5
5
|
<param name="onload" value="true" />
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
</feature>
|
|
24
24
|
<name>SumSubCordova</name>
|
|
25
25
|
<description>
|
|
26
|
-
|
|
26
|
+
Demonstrates the usage of the Sumsub Mobile SDK in a sample Apache Cordova application.
|
|
27
27
|
</description>
|
|
28
28
|
<author email="support@sumsub.com" href="https://sumsub.com">
|
|
29
|
-
|
|
29
|
+
Sumsub
|
|
30
30
|
</author>
|
|
31
31
|
<content src="index.html" />
|
|
32
32
|
<access origin="*" />
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
<allow-intent href="geo:*" />
|
|
39
39
|
<allow-intent href="market:*" />
|
|
40
40
|
<preference name="loglevel" value="DEBUG" />
|
|
41
|
-
<preference name="android-buildToolsVersion" value="29.0.0" />
|
|
42
41
|
<preference name="android-targetSdkVersion" value="29" />
|
|
43
42
|
<preference name="android-compileSdkVersion" value="29" />
|
|
43
|
+
<preference name="android-buildToolsVersion" value="29.0.0" />
|
|
44
|
+
<preference name="android-minSdkVersion" value="21" />
|
|
44
45
|
</widget>
|
|
@@ -22,6 +22,7 @@ buildscript {
|
|
|
22
22
|
repositories {
|
|
23
23
|
google()
|
|
24
24
|
jcenter()
|
|
25
|
+
mavenCentral()
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
dependencies {
|
|
@@ -36,14 +37,15 @@ allprojects {
|
|
|
36
37
|
repositories {
|
|
37
38
|
google()
|
|
38
39
|
jcenter()
|
|
40
|
+
mavenCentral()
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
//This replaces project.properties w.r.t. build settings
|
|
42
44
|
project.ext {
|
|
43
45
|
defaultBuildToolsVersion="29.0.3" //String
|
|
44
|
-
defaultMinSdkVersion=
|
|
45
|
-
defaultTargetSdkVersion=
|
|
46
|
-
defaultCompileSdkVersion=
|
|
46
|
+
defaultMinSdkVersion=21 //Integer - Minimum requirement is Android 4.4
|
|
47
|
+
defaultTargetSdkVersion=30 //Integer - We ALWAYS target the latest by default
|
|
48
|
+
defaultCompileSdkVersion=30 //Integer - We ALWAYS compile with the latest by default
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
|
package/demo/platforms/android/cordova-idensic-mobile-sdk-plugin/SumSubCordova-build-extras.gradle
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
buildscript {
|
|
2
2
|
repositories {
|
|
3
|
-
maven { url "https://maven.sumsub.com/repository/maven-public/" }
|
|
4
3
|
google()
|
|
5
4
|
jcenter()
|
|
5
|
+
mavenCentral()
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -11,10 +11,12 @@ allprojects {
|
|
|
11
11
|
maven { url "https://maven.sumsub.com/repository/maven-public/" }
|
|
12
12
|
google()
|
|
13
13
|
jcenter()
|
|
14
|
+
mavenCentral()
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
dependencies {
|
|
18
|
-
implementation "com.sumsub.sns:idensic-mobile-sdk:1.
|
|
19
|
+
implementation "com.sumsub.sns:idensic-mobile-sdk:1.18.4"
|
|
20
|
+
implementation "com.sumsub.sns:idensic-mobile-sdk-prooface:1.18.4"
|
|
19
21
|
implementation 'com.google.android.material:material:1.3.0'
|
|
20
22
|
}
|
|
@@ -282,6 +282,6 @@ cordova.define('cordova/plugin_list', function(require, exports, module) {
|
|
|
282
282
|
"cordova-plugin-whitelist": "1.3.4",
|
|
283
283
|
"cordova-plugin-wkwebview-engine": "1.2.1",
|
|
284
284
|
"cordova-plugin-timer": "1.0.1",
|
|
285
|
-
"cordova-idensic-mobile-sdk-plugin": "1.
|
|
285
|
+
"cordova-idensic-mobile-sdk-plugin": "1.18.4"
|
|
286
286
|
};
|
|
287
287
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
cordova.define("cordova-idensic-mobile-sdk-plugin.sumsub", function(require, exports, module) {
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("cordova/exec")):"function"==typeof define&&define.amd?define(["cordova/exec"],t):"object"==typeof exports?exports.SNSMobileSDK=t(require("cordova/exec")):e.SNSMobileSDK=t(e["cordova/exec"])}(window,(function(e){return function(e){var t={};function n(
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("cordova/exec")):"function"==typeof define&&define.amd?define(["cordova/exec"],t):"object"==typeof exports?exports.SNSMobileSDK=t(require("cordova/exec")):e.SNSMobileSDK=t(e["cordova/exec"])}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)}([function(e,t,n){const r=n(1),o="SNSMobileSdkCordovaPlugin",i={onStatusChanged:null,onEvent:null,onActionResult:"onActionResultCompleted"};var s=null;function a(e){this.sdkConf=e}function u(e,t){return this.apiUrl=e,this.flowName=t,this.debug=!1,this.handlers={},this.applicantConf={},this}a.prototype.dismiss=function(){r(e=>{},e=>{},o,"dismiss",[])},a.prototype.sendEvent=function(e,t){var n=this.sdkConf.handlers[e];if(n){var s=i[e];if(s){var a=function(e,t){r(e=>{},e=>{},o,s,[{error:e,result:t}])};n(t).then(e=>{a(null,e)}).catch(e=>{a(e||new Error("rejected"),null)})}else n(t)}},a.prototype.getNewAccessToken=function(){var e=function(e){r(e=>{},e=>{},o,"setNewAccessToken",[e])};this.sdkConf.tokenExpirationHandler().then(t=>{e(t)}).catch(t=>{console.error(t instanceof Error?t.message:t),e(null)})},a.prototype.launch=function(){let e=this;return console.log("InSumSub",JSON.stringify(this.sdkConf)),new Promise((t,n)=>{s?n(new Error("Aborted since another instance is in use!")):e.sdkConf.accessToken?e.flowName&&!e.sdkConf.apiUrl?n(new Error("API URL is required")):(s=e,r(e=>{s=null,console.log("Promise SumSub Result",JSON.stringify(e)),t(e)},e=>{s=null,console.log("Promise SumSub Error",JSON.stringify(e)),n(e)},o,"launchSNSMobileSDK",[e.sdkConf])):n(new Error("Access token is required"))})},u.prototype.withAccessToken=function(e,t){if(this.accessToken=e,!t||"function"!=typeof t)throw new Error('Invalid parameter, "expirationHandler" must be a function');return this.tokenExpirationHandler=t,this},u.prototype.withHandlers=function(e){if(!e||"object"!=typeof e)throw new Error('Invalid parameter, "withHandlers" expects a hash');return Object.keys(i).forEach(t=>{var n=e[t];if(n){if("function"!=typeof n)throw new Error('Invalid handler, "'+t+'" must be a function');this.handlers[t]=n}}),this},u.prototype.withDebug=function(e){if("boolean"!=typeof e)throw new Error('Invalid parameter, "withDebug" expects a boolean');return this.debug=e,this},u.prototype.withLocale=function(e){if("string"!=typeof e)throw new Error('Invalid parameter, "locale" must be a string');return this.locale=e,this},u.prototype.withSupportEmail=function(e){if("string"!=typeof e)throw new Error('Invalid parameter, "supportEmail" must be a string');return this.supportEmail=e,this},u.prototype.withApplicantConf=function(e){if(!e||"object"!=typeof e)throw new Error('Invalid parameter, "withApplicantConf" expects a hash');return this.applicantConf=e,this},u.prototype.withBaseUrl=function(e){if("string"!=typeof e)throw new Error('Invalid parameter, "baseUrl" must be a string');return this.apiUrl=e,this},u.prototype.onTestEnv=function(){return this.withBaseUrl("https://test-api.sumsub.com")},u.prototype.build=function(){var e={};return Object.keys(this.handlers).forEach(t=>{e[t]=!0}),new a({apiUrl:this.apiUrl,flowName:this.flowName,accessToken:this.accessToken,tokenExpirationHandler:this.tokenExpirationHandler,handlers:this.handlers,hasHandlers:e,locale:this.locale,supportEmail:this.supportEmail,applicantConf:this.applicantConf,debug:this.debug})},e.exports={init:function(e,t){return(new u).withAccessToken(e,t)},Builder:function(e,t){return new u(e,t)},getNewAccessToken:function(){s&&s.getNewAccessToken()},sendEvent:function(e,t){s&&s.sendEvent(e,t)},reset:function(){s=null}}},function(t,n){t.exports=e}])}));
|
|
3
3
|
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
PODS:
|
|
2
|
-
- IdensicMobileSDK (1.
|
|
3
|
-
- IdensicMobileSDK/Default (= 1.
|
|
4
|
-
- IdensicMobileSDK/Core (1.
|
|
5
|
-
- IdensicMobileSDK/Default (1.
|
|
2
|
+
- IdensicMobileSDK (1.18.4):
|
|
3
|
+
- IdensicMobileSDK/Default (= 1.18.4)
|
|
4
|
+
- IdensicMobileSDK/Core (1.18.4)
|
|
5
|
+
- IdensicMobileSDK/Default (1.18.4):
|
|
6
6
|
- IdensicMobileSDK/Core
|
|
7
7
|
|
|
8
8
|
DEPENDENCIES:
|
|
9
|
-
- IdensicMobileSDK (= 1.
|
|
9
|
+
- IdensicMobileSDK (= 1.18.4)
|
|
10
10
|
|
|
11
11
|
SPEC REPOS:
|
|
12
12
|
https://github.com/SumSubstance/Specs.git:
|
|
13
13
|
- IdensicMobileSDK
|
|
14
14
|
|
|
15
15
|
SPEC CHECKSUMS:
|
|
16
|
-
IdensicMobileSDK:
|
|
16
|
+
IdensicMobileSDK: 21940a4ab07931dad7bb7f06b0e86b21fe02d700
|
|
17
17
|
|
|
18
|
-
PODFILE CHECKSUM:
|
|
18
|
+
PODFILE CHECKSUM: 8e46e12b43541a4110d7b73a55d2db3a8ab31ef6
|
|
19
19
|
|
|
20
20
|
COCOAPODS: 1.10.1
|
|
@@ -1,122 +1,116 @@
|
|
|
1
1
|
{
|
|
2
2
|
"images" : [
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
"idiom"
|
|
6
|
-
|
|
7
|
-
"
|
|
3
|
+
{
|
|
4
|
+
"size" : "20x20",
|
|
5
|
+
"idiom": "iphone",
|
|
6
|
+
"filename" : "cordova_icon-20@2x.png",
|
|
7
|
+
"scale": "2x"
|
|
8
8
|
},
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"idiom"
|
|
12
|
-
|
|
13
|
-
"
|
|
9
|
+
{
|
|
10
|
+
"size" : "20x20",
|
|
11
|
+
"idiom": "iphone",
|
|
12
|
+
"filename" : "cordova_icon-20@3x.png",
|
|
13
|
+
"scale": "3x"
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"idiom"
|
|
18
|
-
|
|
19
|
-
"
|
|
15
|
+
{
|
|
16
|
+
"size" : "20x20",
|
|
17
|
+
"idiom": "ipad",
|
|
18
|
+
"filename" : "cordova_icon-20.png",
|
|
19
|
+
"scale": "1x"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
"
|
|
23
|
-
"idiom"
|
|
24
|
-
|
|
25
|
-
"
|
|
22
|
+
"size" : "20x20",
|
|
23
|
+
"idiom": "ipad",
|
|
24
|
+
"filename" : "cordova_icon-20@2x.png",
|
|
25
|
+
"scale": "2x"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"
|
|
28
|
+
"size" : "29x29",
|
|
29
29
|
"idiom" : "iphone",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"filename" : "cordova_icon-29@2x.png",
|
|
31
|
+
"scale" : "2x"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"
|
|
34
|
+
"size" : "29x29",
|
|
35
35
|
"idiom" : "iphone",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
36
|
+
"filename" : "cordova_icon-29@3x.png",
|
|
37
|
+
"scale" : "3x"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
"
|
|
40
|
+
"size" : "40x40",
|
|
41
41
|
"idiom" : "iphone",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
42
|
+
"filename" : "cordova_icon-40@2x.png",
|
|
43
|
+
"scale" : "2x"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
"
|
|
46
|
+
"size" : "40x40",
|
|
47
47
|
"idiom" : "iphone",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
48
|
+
"filename" : "cordova_icon-40@3x.png",
|
|
49
|
+
"scale" : "3x"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
|
-
"
|
|
52
|
+
"size" : "60x60",
|
|
53
53
|
"idiom" : "iphone",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"filename" : "Icon-App-20x20@1x.png",
|
|
59
|
-
"idiom" : "ipad",
|
|
60
|
-
"scale" : "1x",
|
|
61
|
-
"size" : "20x20"
|
|
54
|
+
"filename" : "cordova_icon-60@2x.png",
|
|
55
|
+
"scale" : "2x"
|
|
62
56
|
},
|
|
63
57
|
{
|
|
64
|
-
"
|
|
65
|
-
"idiom" : "
|
|
66
|
-
"
|
|
67
|
-
"
|
|
58
|
+
"size" : "60x60",
|
|
59
|
+
"idiom" : "iphone",
|
|
60
|
+
"filename" : "cordova_icon-60@3x.png",
|
|
61
|
+
"scale" : "3x"
|
|
68
62
|
},
|
|
69
63
|
{
|
|
70
|
-
"
|
|
64
|
+
"size" : "29x29",
|
|
71
65
|
"idiom" : "ipad",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
66
|
+
"filename" : "cordova_icon-29.png",
|
|
67
|
+
"scale" : "1x"
|
|
74
68
|
},
|
|
75
69
|
{
|
|
76
|
-
"
|
|
70
|
+
"size" : "29x29",
|
|
77
71
|
"idiom" : "ipad",
|
|
78
|
-
"
|
|
79
|
-
"
|
|
72
|
+
"filename" : "cordova_icon-29@2x.png",
|
|
73
|
+
"scale" : "2x"
|
|
80
74
|
},
|
|
81
75
|
{
|
|
82
|
-
"
|
|
76
|
+
"size" : "40x40",
|
|
83
77
|
"idiom" : "ipad",
|
|
84
|
-
"
|
|
85
|
-
"
|
|
78
|
+
"filename" : "cordova_icon-40.png",
|
|
79
|
+
"scale" : "1x"
|
|
86
80
|
},
|
|
87
81
|
{
|
|
88
|
-
"
|
|
82
|
+
"size" : "40x40",
|
|
89
83
|
"idiom" : "ipad",
|
|
90
|
-
"
|
|
91
|
-
"
|
|
84
|
+
"filename" : "cordova_icon-40@2x.png",
|
|
85
|
+
"scale" : "2x"
|
|
92
86
|
},
|
|
93
87
|
{
|
|
94
|
-
"
|
|
88
|
+
"size" : "76x76",
|
|
95
89
|
"idiom" : "ipad",
|
|
96
|
-
"
|
|
97
|
-
"
|
|
90
|
+
"filename" : "cordova_icon-76.png",
|
|
91
|
+
"scale" : "1x"
|
|
98
92
|
},
|
|
99
93
|
{
|
|
100
|
-
"
|
|
94
|
+
"size" : "76x76",
|
|
101
95
|
"idiom" : "ipad",
|
|
102
|
-
"
|
|
103
|
-
"
|
|
96
|
+
"filename" : "cordova_icon-76@2x.png",
|
|
97
|
+
"scale" : "2x"
|
|
104
98
|
},
|
|
105
99
|
{
|
|
106
|
-
"
|
|
100
|
+
"size" : "83.5x83.5",
|
|
107
101
|
"idiom" : "ipad",
|
|
108
|
-
"
|
|
109
|
-
"
|
|
102
|
+
"filename" : "cordova_icon-83.5@2x.png",
|
|
103
|
+
"scale" : "2x"
|
|
110
104
|
},
|
|
111
105
|
{
|
|
112
|
-
"
|
|
106
|
+
"size" : "1024x1024",
|
|
113
107
|
"idiom" : "ios-marketing",
|
|
114
|
-
"
|
|
115
|
-
"
|
|
108
|
+
"filename" : "cordova_icon-1024.png",
|
|
109
|
+
"scale" : "1x"
|
|
116
110
|
}
|
|
117
111
|
],
|
|
118
112
|
"info" : {
|
|
119
|
-
"
|
|
120
|
-
"
|
|
113
|
+
"version" : 1,
|
|
114
|
+
"author" : "xcode"
|
|
121
115
|
}
|
|
122
116
|
}
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-1024.png
ADDED
|
Binary file
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-20.png
ADDED
|
Binary file
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-20@2x.png
ADDED
|
Binary file
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-20@3x.png
ADDED
|
Binary file
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-29.png
ADDED
|
Binary file
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-29@2x.png
ADDED
|
Binary file
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-29@3x.png
ADDED
|
Binary file
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-40.png
ADDED
|
Binary file
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-40@2x.png
ADDED
|
Binary file
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-40@3x.png
ADDED
|
Binary file
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-60@2x.png
ADDED
|
Binary file
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-60@3x.png
ADDED
|
Binary file
|
package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-76.png
ADDED
|
Binary file
|