assentify-sdk-react-native 0.0.29 → 0.0.31
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/README.md +6 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/assentifysdk/FaceMatchActivity.kt +9 -2
- package/android/src/main/java/com/assentifysdk/ScanIDActivity.kt +20 -0
- package/android/src/main/java/com/assentifysdk/ScanOtherActivity.kt +13 -0
- package/android/src/main/java/com/assentifysdk/ScanPassportActivity.kt +12 -0
- package/ios/View/FaceMatchController.swift +2 -2
- package/package.json +1 -1
- package/lib/typescript/example/android/app/build/intermediates/assets/debug/clarity.d.ts +0 -5
- package/lib/typescript/example/android/app/build/intermediates/assets/debug/clarity.d.ts.map +0 -1
package/README.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -99,7 +99,7 @@ dependencies {
|
|
|
99
99
|
implementation "com.facebook.react:react-native:+"
|
|
100
100
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
101
101
|
|
|
102
|
-
implementation 'com.github.AssentifyLTD:Assentify.SDK.Android:0.0.
|
|
102
|
+
implementation 'com.github.AssentifyLTD:Assentify.SDK.Android:0.0.83'
|
|
103
103
|
|
|
104
104
|
/* Assentify Sdk Dependencies */
|
|
105
105
|
implementation 'com.google.code.gson:gson:2.8.9'
|
|
@@ -193,7 +193,7 @@ private lateinit var assentifySdk: AssentifySdk
|
|
|
193
193
|
triggerEvent("onError", dataModel)
|
|
194
194
|
runOnUiThread {
|
|
195
195
|
start = false;
|
|
196
|
-
showPopUpMessage(R.drawable.warning, "
|
|
196
|
+
showPopUpMessage(R.drawable.warning, "Please check your Wi-Fi or mobile data connection", "Let's try again", false)
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
|
|
@@ -211,7 +211,7 @@ private lateinit var assentifySdk: AssentifySdk
|
|
|
211
211
|
triggerEvent("onRetry", dataModel)
|
|
212
212
|
runOnUiThread {
|
|
213
213
|
start = false;
|
|
214
|
-
showPopUpMessage(R.drawable.warning, "
|
|
214
|
+
showPopUpMessage(R.drawable.warning, "We couldn't complete your request", "Let's try again", false)
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
|
|
@@ -382,5 +382,12 @@ private lateinit var assentifySdk: AssentifySdk
|
|
|
382
382
|
} ?: emptyMap()
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
+
override fun onDestroy() {
|
|
386
|
+
hidePopUpMessage();
|
|
387
|
+
super.onDestroy()
|
|
388
|
+
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
|
|
385
392
|
|
|
386
393
|
}
|
|
@@ -26,6 +26,7 @@ import com.google.gson.Gson
|
|
|
26
26
|
import com.google.gson.reflect.TypeToken
|
|
27
27
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
28
28
|
import pl.droidsonroids.gif.GifImageView
|
|
29
|
+
import pl.droidsonroids.gif.GifDrawable
|
|
29
30
|
import com.assentify.sdk.RemoteClient.Models.StepDefinitions
|
|
30
31
|
import com.assentify.sdk.RemoteClient.Models.StepMap
|
|
31
32
|
import ImageToBase64Converter
|
|
@@ -424,4 +425,23 @@ class ScanIDActivity: AppCompatActivity(),
|
|
|
424
425
|
|
|
425
426
|
}
|
|
426
427
|
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
override fun onDestroy() {
|
|
431
|
+
hidePopUpMessage();
|
|
432
|
+
val drawable = flippingCard.drawable
|
|
433
|
+
if (drawable is GifDrawable) {
|
|
434
|
+
drawable?.stop()
|
|
435
|
+
drawable?.recycle()
|
|
436
|
+
}
|
|
437
|
+
if (::idGif.isInitialized) {
|
|
438
|
+
idGif.apply {
|
|
439
|
+
visibility = View.GONE
|
|
440
|
+
removeAllViews()
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
super.onDestroy()
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
|
|
427
447
|
}
|
|
@@ -343,4 +343,17 @@ class ScanOtherActivity: AppCompatActivity(),
|
|
|
343
343
|
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
override fun onDestroy() {
|
|
349
|
+
hidePopUpMessage();
|
|
350
|
+
if (::idGif.isInitialized) {
|
|
351
|
+
idGif.apply {
|
|
352
|
+
visibility = View.GONE
|
|
353
|
+
removeAllViews()
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
super.onDestroy()
|
|
357
|
+
|
|
358
|
+
}
|
|
346
359
|
}
|
|
@@ -379,4 +379,16 @@ class ScanPassportActivity : AppCompatActivity(),
|
|
|
379
379
|
}
|
|
380
380
|
return false;
|
|
381
381
|
}
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
override fun onDestroy() {
|
|
385
|
+
hidePopUpMessage();
|
|
386
|
+
if (::passportGif.isInitialized) {
|
|
387
|
+
passportGif.apply {
|
|
388
|
+
visibility = View.GONE
|
|
389
|
+
removeAllViews()
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
super.onDestroy()
|
|
393
|
+
}
|
|
382
394
|
}
|
|
@@ -116,7 +116,7 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
|
|
|
116
116
|
DispatchQueue.main.async {
|
|
117
117
|
self.start = false;
|
|
118
118
|
self.popUpMessage!.removeFromSuperview();
|
|
119
|
-
self.popUpMessage = showPopUpMessage(view: self.view, title: "
|
|
119
|
+
self.popUpMessage = showPopUpMessage(view: self.view, title: "Please check your Wi-Fi or mobile data connection", subTitle: "Let's try again",initialTextColorHex:self.processingColor,initialBackgroundColorHex:self.holdHandColor, iconName: "warning", isGif: false,target: self, action: #selector(self.dismissPopUpMessage))
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
@@ -126,7 +126,7 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
|
|
|
126
126
|
DispatchQueue.main.async {
|
|
127
127
|
self.start = false;
|
|
128
128
|
self.popUpMessage!.removeFromSuperview();
|
|
129
|
-
self.popUpMessage = showPopUpMessage(view: self.view, title: "
|
|
129
|
+
self.popUpMessage = showPopUpMessage(view: self.view, title: "We couldn't complete your request", subTitle: "Let's try again",initialTextColorHex:self.processingColor,initialBackgroundColorHex:self.holdHandColor, iconName: "warning", isGif: false,target: self, action: #selector(self.dismissPopUpMessage))
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assentify-sdk-react-native",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
4
4
|
"description": "This package provides integration with Assentify's services, allowing developers to incorporate Assentify functionalities seamlessly into their applications.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare function startClarity(webviewId: any, webViewRenderNodeId: any, maskSelectors: any, unmaskSelectors: any, maskContentFlag: any): void;
|
|
2
|
-
declare function startClarityInternal(webviewId: any, webViewRenderNodeId: any, maskSelectors: any, unmaskSelectors: any, maskContentFlag: any): void;
|
|
3
|
-
declare function stopClarity(): void;
|
|
4
|
-
declare function clearClarity(): void;
|
|
5
|
-
//# sourceMappingURL=clarity.d.ts.map
|
package/lib/typescript/example/android/app/build/intermediates/assets/debug/clarity.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clarity.d.ts","sourceRoot":"","sources":["../../../../../../../../../example/android/app/build/intermediates/assets/debug/clarity.js"],"names":[],"mappings":"AAEA,8IASC;AAED,sJAYC;AAED,qCAIC;AAED,sCAGC"}
|