@qore-id/react-native-qoreid-sdk 1.1.1 → 1.1.2

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.
@@ -92,7 +92,7 @@ dependencies {
92
92
  // For < 0.71, this will be from the local maven repo
93
93
  // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
94
94
  //noinspection GradleDynamicVersion
95
- implementation 'com.qoreid:qoreid-sdk:1.1.40'
95
+ implementation 'com.qoreid:qoreid-sdk:+'
96
96
  // implementation 'com.qoreid:qoreid-sdk-dev-min:1.1.43'
97
97
  implementation "com.facebook.react:react-native:+"
98
98
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
@@ -50,17 +50,17 @@ class QoreidSdkModule(val reactContext: ReactApplicationContext) :
50
50
 
51
51
  init {
52
52
  reactContext.addActivityEventListener(activityEventListener)
53
- // QoreIDSdk.Callbacks.onFlowRequestId {
54
- // Log.i("QORE_ID", it.toString())
55
- //
56
- // val event = Arguments.createMap().apply {
57
- // putString("data", it.toString())
58
- // putString("message", "QOREID SDK INITIALIZED")
59
- // putString("event", "SESSION_RESULT")
60
- // }
61
- //
62
- // sendEvent(reactContext, "onResult", event)
63
- // }
53
+ QoreIDSdk.Callbacks.onFlowRequestId {
54
+ Log.i("QORE_ID", it.toString())
55
+
56
+ val event = Arguments.createMap().apply {
57
+ putString("data", it.toString())
58
+ putString("message", "QOREID SDK INITIALIZED")
59
+ putString("event", "SESSION_RESULT")
60
+ }
61
+
62
+ sendEvent(reactContext, "onResult", event)
63
+ }
64
64
  }
65
65
 
66
66
  override fun getName(): String {
@@ -84,7 +84,9 @@ class QoreidSdkModule(val reactContext: ReactApplicationContext) :
84
84
  apD?.get("phoneNumber") as String?,
85
85
  apD?.get("middleName") as String?,
86
86
  apD?.get("dob") as String?,
87
- apD?.get("gender") as String?
87
+ apD?.get("gender") as String?,
88
+ apD?.get("email") as String?
89
+
88
90
  )
89
91
 
90
92
 
@@ -27,7 +27,9 @@ class QoreidSdk: RCTEventEmitter {
27
27
  firstname:_applicant?["firstName"] as? String,
28
28
  lastname:_applicant?["lastName"] as? String,
29
29
  phone: _applicant?["phoneNumber"] as? String,
30
- middlename: _applicant?["middleName"] as? String
30
+ middlename: _applicant?["middleName"] as? String,
31
+ dob: _applicant?["dob"] as? String,
32
+ email: _applicant?["email"] as? String
31
33
  )
32
34
 
33
35
  let addressData = AddressData(
@@ -69,7 +71,7 @@ class QoreidSdk: RCTEventEmitter {
69
71
  if let params = param {
70
72
  DispatchQueue.main.async {
71
73
  let vc = ViewController()
72
- vc.param = param
74
+ vc.param = params
73
75
  vc.onQoreIdResult = { [weak self] result in
74
76
  self?.onQoreIdResultReceived(result: result)
75
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qore-id/react-native-qoreid-sdk",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "QoreId React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
  s.dependency "React-Core"
19
- s.dependency 'QoreIDSDK', '1.0.1'
19
+ s.dependency 'QoreIDSDK'
20
20
 
21
21
  # Don't install the dependencies when we run `pod install` in the old architecture.
22
22
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then