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 CHANGED
@@ -93,6 +93,12 @@ yarn add assentify-sdk-react-native
93
93
 
94
94
  ## Versions
95
95
 
96
+ **0.0.30**
97
+ - Bug fixes
98
+
99
+ **0.0.29**
100
+ - Submit Improvements
101
+
96
102
  **0.0.28**
97
103
  - Blink Improvements
98
104
 
@@ -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.79'
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 currentDate = Date()
511
-
512
- val dateFormat = SimpleDateFormat("dd/MM/yyyy HH:mm:ss", Locale.getDefault())
513
- dateFormat.timeZone = TimeZone.getTimeZone("UTC")
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
@@ -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
  }
@@ -38,6 +38,6 @@ Pod::Spec.new do |s|
38
38
 
39
39
 
40
40
  s.dependency "React-Core"
41
- s.dependency "AssentifySdk", '0.0.66'
41
+ s.dependency "AssentifySdk", '0.0.69'
42
42
 
43
43
  end
@@ -480,14 +480,15 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
480
480
 
481
481
 
482
482
 
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
- let utcTime = formatter.string(from: currentDate)
489
- return utcTime;
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.28",
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
@@ -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"}