assentify-sdk-react-native 0.0.28 → 0.0.29

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,9 @@ yarn add assentify-sdk-react-native
93
93
 
94
94
  ## Versions
95
95
 
96
+ **0.0.29**
97
+ - Submit Improvements
98
+
96
99
  **0.0.28**
97
100
  - Blink Improvements
98
101
 
@@ -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.80'
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
@@ -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.29",
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",