react-native-persona 2.7.5 → 2.8.0
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,11 +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.
|
|
28
|
+
ss.dependency 'PersonaInquirySDK2', '2.14.0'
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
s.subspec 'Nfc' do |ss|
|
|
32
|
-
ss.dependency 'PersonaNfc', '2.
|
|
32
|
+
ss.dependency 'PersonaNfc', '2.14.0'
|
|
33
33
|
ss.dependency 'OpenSSL-Universal', '>= 1.1.180', '<= 1.1.1900'
|
|
34
34
|
end
|
|
35
|
+
|
|
36
|
+
s.subspec 'WebRtc' do |ss|
|
|
37
|
+
ss.dependency 'PersonaWebRtc', '2.14.0'
|
|
38
|
+
ss.dependency 'WebRTC', '111.0.0'
|
|
39
|
+
end
|
|
35
40
|
end
|
package/android/build.gradle
CHANGED
|
@@ -65,5 +65,5 @@ dependencies {
|
|
|
65
65
|
implementation("com.facebook.react:react-android")
|
|
66
66
|
|
|
67
67
|
// NB: be sure to bump `nfc-impl` in example/android/app/build.gradle as well
|
|
68
|
-
implementation 'com.withpersona.sdk2:inquiry:2.10.
|
|
68
|
+
implementation 'com.withpersona.sdk2:inquiry:2.10.10'
|
|
69
69
|
}
|
|
@@ -12,6 +12,10 @@ import Persona2
|
|
|
12
12
|
import PersonaNfc
|
|
13
13
|
#endif
|
|
14
14
|
|
|
15
|
+
#if canImport(PersonaWebRtc)
|
|
16
|
+
import PersonaWebRtc
|
|
17
|
+
#endif
|
|
18
|
+
|
|
15
19
|
// file private for this variable avoids clang module linker bug
|
|
16
20
|
private var collectedData: InquiryData? = nil
|
|
17
21
|
|
|
@@ -57,6 +61,11 @@ class PersonaInquiry2: RCTEventEmitter {
|
|
|
57
61
|
#if canImport(PersonaNfc)
|
|
58
62
|
nfcAdapter = PersonaNfcAdapter()
|
|
59
63
|
#endif
|
|
64
|
+
|
|
65
|
+
var webRtcAdapter: InquiryWebRtcAdapter? = nil
|
|
66
|
+
#if canImport(PersonaWebRtc)
|
|
67
|
+
webRtcAdapter = PersonaWebRtcAdapter()
|
|
68
|
+
#endif
|
|
60
69
|
|
|
61
70
|
var inquiry: Inquiry? = nil
|
|
62
71
|
if let inquiryId {
|
|
@@ -64,6 +73,7 @@ class PersonaInquiry2: RCTEventEmitter {
|
|
|
64
73
|
.sessionToken(sessionToken)
|
|
65
74
|
.theme(makeTheme(from: themeObject, themeSource: themeSource))
|
|
66
75
|
.nfcAdapter(nfcAdapter)
|
|
76
|
+
.webRtcAdapter(webRtcAdapter)
|
|
67
77
|
.collectionDelegate(returnCollectedData ? self : nil)
|
|
68
78
|
.routingCountry(routingCountry)
|
|
69
79
|
.locale(locale)
|
|
@@ -76,6 +86,7 @@ class PersonaInquiry2: RCTEventEmitter {
|
|
|
76
86
|
.fields(fieldsFrom(fieldsObject))
|
|
77
87
|
.theme(makeTheme(from: themeObject, themeSource: themeSource))
|
|
78
88
|
.nfcAdapter(nfcAdapter)
|
|
89
|
+
.webRtcAdapter(webRtcAdapter)
|
|
79
90
|
.collectionDelegate(returnCollectedData ? self : nil)
|
|
80
91
|
.routingCountry(routingCountry)
|
|
81
92
|
.locale(locale)
|
|
@@ -88,6 +99,7 @@ class PersonaInquiry2: RCTEventEmitter {
|
|
|
88
99
|
.fields(fieldsFrom(fieldsObject))
|
|
89
100
|
.theme(makeTheme(from: themeObject, themeSource: themeSource))
|
|
90
101
|
.nfcAdapter(nfcAdapter)
|
|
102
|
+
.webRtcAdapter(webRtcAdapter)
|
|
91
103
|
.collectionDelegate(returnCollectedData ? self : nil)
|
|
92
104
|
.routingCountry(routingCountry)
|
|
93
105
|
.locale(locale)
|
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.
|
|
4
|
+
"version": "2.8.0",
|
|
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",
|