react-native-persona 2.8.0 → 2.8.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.
|
@@ -25,16 +25,16 @@ Pod::Spec.new do |s|
|
|
|
25
25
|
|
|
26
26
|
s.default_subspec = 'Core'
|
|
27
27
|
s.subspec 'Core' do |ss|
|
|
28
|
-
ss.dependency 'PersonaInquirySDK2', '2.14.
|
|
28
|
+
ss.dependency 'PersonaInquirySDK2', '2.14.1'
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
s.subspec 'Nfc' do |ss|
|
|
32
|
-
ss.dependency 'PersonaNfc', '2.14.
|
|
32
|
+
ss.dependency 'PersonaNfc', '2.14.1'
|
|
33
33
|
ss.dependency 'OpenSSL-Universal', '>= 1.1.180', '<= 1.1.1900'
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
s.subspec 'WebRtc' do |ss|
|
|
37
|
-
ss.dependency 'PersonaWebRtc', '2.14.
|
|
38
|
-
ss.dependency 'WebRTC', '111.0.0'
|
|
37
|
+
ss.dependency 'PersonaWebRtc', '2.14.1'
|
|
38
|
+
ss.dependency 'WebRTC-lib', '111.0.0'
|
|
39
39
|
end
|
|
40
40
|
end
|
|
@@ -69,41 +69,56 @@ class PersonaInquiry2: RCTEventEmitter {
|
|
|
69
69
|
|
|
70
70
|
var inquiry: Inquiry? = nil
|
|
71
71
|
if let inquiryId {
|
|
72
|
-
|
|
72
|
+
let builder = Inquiry.from(inquiryId: inquiryId, delegate: self)
|
|
73
|
+
|
|
74
|
+
builder
|
|
73
75
|
.sessionToken(sessionToken)
|
|
74
76
|
.theme(makeTheme(from: themeObject, themeSource: themeSource))
|
|
75
77
|
.nfcAdapter(nfcAdapter)
|
|
76
|
-
.webRtcAdapter(webRtcAdapter)
|
|
77
78
|
.collectionDelegate(returnCollectedData ? self : nil)
|
|
78
79
|
.routingCountry(routingCountry)
|
|
79
80
|
.locale(locale)
|
|
80
|
-
|
|
81
|
+
|
|
82
|
+
if let webRtcAdapter {
|
|
83
|
+
builder.webRtcAdapter(webRtcAdapter)
|
|
84
|
+
}
|
|
85
|
+
inquiry = builder.build()
|
|
81
86
|
} else if let templateId {
|
|
82
|
-
|
|
87
|
+
let builder = Inquiry.from(templateId: templateId, delegate: self)
|
|
88
|
+
builder
|
|
83
89
|
.referenceId(referenceId)
|
|
84
90
|
.environment(Environment.from(rawValue: environment))
|
|
85
91
|
.environmentId(environmentId)
|
|
86
92
|
.fields(fieldsFrom(fieldsObject))
|
|
87
93
|
.theme(makeTheme(from: themeObject, themeSource: themeSource))
|
|
88
94
|
.nfcAdapter(nfcAdapter)
|
|
89
|
-
.webRtcAdapter(webRtcAdapter)
|
|
90
95
|
.collectionDelegate(returnCollectedData ? self : nil)
|
|
91
96
|
.routingCountry(routingCountry)
|
|
92
97
|
.locale(locale)
|
|
93
|
-
|
|
98
|
+
|
|
99
|
+
if let webRtcAdapter {
|
|
100
|
+
builder.webRtcAdapter(webRtcAdapter)
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
inquiry = builder.build()
|
|
94
104
|
} else if let templateVersion {
|
|
95
|
-
|
|
105
|
+
let builder = Inquiry.from(templateVersion: templateVersion, delegate: self)
|
|
106
|
+
builder
|
|
96
107
|
.referenceId(referenceId)
|
|
97
108
|
.environment(Environment.from(rawValue: environment))
|
|
98
109
|
.environmentId(environmentId)
|
|
99
110
|
.fields(fieldsFrom(fieldsObject))
|
|
100
111
|
.theme(makeTheme(from: themeObject, themeSource: themeSource))
|
|
101
112
|
.nfcAdapter(nfcAdapter)
|
|
102
|
-
.webRtcAdapter(webRtcAdapter)
|
|
103
113
|
.collectionDelegate(returnCollectedData ? self : nil)
|
|
104
114
|
.routingCountry(routingCountry)
|
|
105
115
|
.locale(locale)
|
|
106
|
-
|
|
116
|
+
|
|
117
|
+
if let webRtcAdapter {
|
|
118
|
+
builder.webRtcAdapter(webRtcAdapter)
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
inquiry = builder.build()
|
|
107
122
|
}
|
|
108
123
|
|
|
109
124
|
guard let inquiry else {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-persona",
|
|
3
3
|
"title": "React Native Persona",
|
|
4
|
-
"version": "2.8.
|
|
4
|
+
"version": "2.8.2",
|
|
5
5
|
"description": "Launch a mobile native implementation of the Persona inquiry flow from React Native.",
|
|
6
6
|
"main": "lib/commonjs/index",
|
|
7
7
|
"module": "lib/module/index",
|