assentify-sdk-react-native 0.0.27 → 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
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.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
|
|
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
|
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.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",
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"exports": {
|
|
189
189
|
".": {
|
|
190
190
|
"import": {
|
|
191
|
-
"types": "./lib/typescript/
|
|
191
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
192
192
|
"default": "./lib/module/index.js"
|
|
193
193
|
},
|
|
194
194
|
"require": {
|