assentify-sdk-react-native 0.0.28 → 0.0.30
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/AssentifySdkModule.kt +4 -6
- package/android/src/main/java/com/assentifysdk/FaceMatchActivity.kt +7 -0
- 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/assentify-sdk.podspec +1 -1
- package/ios/NativeAssentifySdk.swift +9 -8
- 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.81'
|
|
103
103
|
|
|
104
104
|
/* Assentify Sdk Dependencies */
|
|
105
105
|
implementation 'com.google.code.gson:gson:2.8.9'
|
|
@@ -507,12 +507,10 @@ class AssentifySdkModule(context: ReactApplicationContext) :
|
|
|
507
507
|
|
|
508
508
|
|
|
509
509
|
fun getCurrentDateTimeUTC(): String {
|
|
510
|
-
val
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
dateFormat.
|
|
514
|
-
|
|
515
|
-
return dateFormat.format(currentDate)
|
|
510
|
+
val dateFormat = SimpleDateFormat("dd/MM/yyyy HH:mm:ss", Locale.US).apply {
|
|
511
|
+
timeZone = TimeZone.getTimeZone("UTC") // Force UTC
|
|
512
|
+
}
|
|
513
|
+
return dateFormat.format(Date())
|
|
516
514
|
}
|
|
517
515
|
|
|
518
516
|
@ReactMethod
|
|
@@ -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
|
}
|
package/assentify-sdk.podspec
CHANGED
|
@@ -480,14 +480,15 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
480
480
|
|
|
481
481
|
|
|
482
482
|
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
483
|
+
func getTimeUTC() -> String {
|
|
484
|
+
let currentDate = Date()
|
|
485
|
+
let formatter = DateFormatter()
|
|
486
|
+
formatter.dateFormat = "dd/MM/yyyy HH:mm:ss"
|
|
487
|
+
formatter.timeZone = TimeZone(abbreviation: "UTC")
|
|
488
|
+
formatter.locale = Locale(identifier: "en_US_POSIX")
|
|
489
|
+
let utcTime = formatter.string(from: currentDate)
|
|
490
|
+
return utcTime
|
|
491
|
+
}
|
|
491
492
|
|
|
492
493
|
func getIdTitle(kycDocumentDetails: [KycDocumentDetails]) -> String {
|
|
493
494
|
var title = ""
|
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.30",
|
|
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"}
|