react-native-persona 2.21.1 → 2.23.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.
|
@@ -2,7 +2,7 @@ require 'json'
|
|
|
2
2
|
|
|
3
3
|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
4
4
|
|
|
5
|
-
persona_sdk_version = '2.
|
|
5
|
+
persona_sdk_version = '2.33.0'
|
|
6
6
|
|
|
7
7
|
Pod::Spec.new do |s|
|
|
8
8
|
s.name = 'RNPersonaInquiry2'
|
|
@@ -35,6 +35,11 @@ Pod::Spec.new do |s|
|
|
|
35
35
|
ss.dependency 'Persona-OpenSSL-Universal', '2.0.1'
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
+
s.subspec 'Sna' do |ss|
|
|
39
|
+
ss.dependency 'PersonaSna', persona_sdk_version
|
|
40
|
+
ss.dependency 'VonageClientLibrary', '1.0.2'
|
|
41
|
+
end
|
|
42
|
+
|
|
38
43
|
s.subspec 'WebRtc' do |ss|
|
|
39
44
|
ss.dependency 'PersonaWebRtc', persona_sdk_version
|
|
40
45
|
ss.dependency 'WebRTC-lib', '111.0.0'
|
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.
|
|
68
|
+
implementation 'com.withpersona.sdk2:inquiry:2.27.0'
|
|
69
69
|
}
|
|
@@ -12,6 +12,10 @@ import Persona2
|
|
|
12
12
|
import PersonaNfc
|
|
13
13
|
#endif
|
|
14
14
|
|
|
15
|
+
#if canImport(PersonaSna)
|
|
16
|
+
import PersonaSna
|
|
17
|
+
#endif
|
|
18
|
+
|
|
15
19
|
#if canImport(PersonaWebRtc)
|
|
16
20
|
import PersonaWebRtc
|
|
17
21
|
#endif
|
|
@@ -66,7 +70,12 @@ class PersonaInquiry2: RCTEventEmitter {
|
|
|
66
70
|
#if canImport(PersonaNfc)
|
|
67
71
|
nfcAdapter = PersonaNfcAdapter()
|
|
68
72
|
#endif
|
|
69
|
-
|
|
73
|
+
|
|
74
|
+
var snaAdapter: InquirySnaAdapter? = nil
|
|
75
|
+
#if canImport(PersonaSna)
|
|
76
|
+
snaAdapter = PersonaSnaAdapter()
|
|
77
|
+
#endif
|
|
78
|
+
|
|
70
79
|
var webRtcAdapter: InquiryWebRtcAdapter? = nil
|
|
71
80
|
#if canImport(PersonaWebRtc)
|
|
72
81
|
webRtcAdapter = PersonaWebRtcAdapter()
|
|
@@ -80,6 +89,7 @@ class PersonaInquiry2: RCTEventEmitter {
|
|
|
80
89
|
.sessionToken(sessionToken)
|
|
81
90
|
.theme(makeTheme(from: themeObject, themeSource: themeSource))
|
|
82
91
|
.nfcAdapter(nfcAdapter)
|
|
92
|
+
.snaAdapter(snaAdapter)
|
|
83
93
|
.collectionDelegate(returnCollectedData ? self : nil)
|
|
84
94
|
.locale(locale)
|
|
85
95
|
|
|
@@ -98,6 +108,7 @@ class PersonaInquiry2: RCTEventEmitter {
|
|
|
98
108
|
.theme(makeTheme(from: themeObject, themeSource: themeSource))
|
|
99
109
|
.themeSetId(themeSetId)
|
|
100
110
|
.nfcAdapter(nfcAdapter)
|
|
111
|
+
.snaAdapter(snaAdapter)
|
|
101
112
|
.collectionDelegate(returnCollectedData ? self : nil)
|
|
102
113
|
.locale(locale)
|
|
103
114
|
|
|
@@ -117,6 +128,7 @@ class PersonaInquiry2: RCTEventEmitter {
|
|
|
117
128
|
.theme(makeTheme(from: themeObject, themeSource: themeSource))
|
|
118
129
|
.themeSetId(themeSetId)
|
|
119
130
|
.nfcAdapter(nfcAdapter)
|
|
131
|
+
.snaAdapter(snaAdapter)
|
|
120
132
|
.collectionDelegate(returnCollectedData ? self : nil)
|
|
121
133
|
.locale(locale)
|
|
122
134
|
|
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.23.0",
|
|
5
5
|
"description": "Launch a mobile native implementation of the Persona inquiry flow from React Native.",
|
|
6
6
|
"homepage": "https://docs.withpersona.com/docs/react-native-sdk-integration",
|
|
7
7
|
"bugs": "https://github.com/persona-id/persona-inquiry-sdk-public",
|