react-native-persona 2.6.0 → 2.6.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,11 +25,11 @@ 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.12.4'
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
s.subspec 'Nfc' do |ss|
|
|
32
|
-
ss.dependency 'PersonaNfc', '2.
|
|
32
|
+
ss.dependency 'PersonaNfc', '2.12.4'
|
|
33
33
|
ss.dependency 'OpenSSL-Universal', '1.1.180'
|
|
34
34
|
end
|
|
35
35
|
end
|
package/android/build.gradle
CHANGED
|
@@ -329,9 +329,7 @@ public class PersonaInquiryModule2 extends ReactContextBaseJavaModule
|
|
|
329
329
|
builder = builder.environment(environment);
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
|
|
333
|
-
options.hasKey(ROUTING_COUNTRY) ? options.getString(ROUTING_COUNTRY) : null
|
|
334
|
-
);
|
|
332
|
+
String routingCountry = options.hasKey(ROUTING_COUNTRY) ? options.getString(ROUTING_COUNTRY) : null;
|
|
335
333
|
if (routingCountry != null) {
|
|
336
334
|
builder = builder.routingCountry(routingCountry);
|
|
337
335
|
}
|
|
@@ -395,19 +393,4 @@ public class PersonaInquiryModule2 extends ReactContextBaseJavaModule
|
|
|
395
393
|
return null;
|
|
396
394
|
}
|
|
397
395
|
}
|
|
398
|
-
|
|
399
|
-
private RoutingCountry routingCountryFromString(@Nullable String routingCountry) {
|
|
400
|
-
if (routingCountry == null) {
|
|
401
|
-
return null;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
switch (routingCountry) {
|
|
405
|
-
case "de":
|
|
406
|
-
return RoutingCountry.DE;
|
|
407
|
-
case "us":
|
|
408
|
-
return RoutingCountry.US;
|
|
409
|
-
default:
|
|
410
|
-
return null;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
396
|
}
|
|
@@ -63,8 +63,7 @@ class PersonaInquiry2: RCTEventEmitter {
|
|
|
63
63
|
.theme(makeTheme(from: themeObject, themeSource: themeSource))
|
|
64
64
|
.nfcAdapter(nfcAdapter)
|
|
65
65
|
.collectionDelegate(returnCollectedData ? self : nil)
|
|
66
|
-
|
|
67
|
-
.routingCountry(routingCountry == "de" ? .de : .us)
|
|
66
|
+
.routingCountry(routingCountry)
|
|
68
67
|
.build()
|
|
69
68
|
} else if let templateId {
|
|
70
69
|
inquiry = Inquiry.from(templateId: templateId, delegate: self)
|
|
@@ -74,8 +73,7 @@ class PersonaInquiry2: RCTEventEmitter {
|
|
|
74
73
|
.theme(makeTheme(from: themeObject, themeSource: themeSource))
|
|
75
74
|
.nfcAdapter(nfcAdapter)
|
|
76
75
|
.collectionDelegate(returnCollectedData ? self : nil)
|
|
77
|
-
|
|
78
|
-
.routingCountry(routingCountry == "de" ? .de : .us)
|
|
76
|
+
.routingCountry(routingCountry)
|
|
79
77
|
.build()
|
|
80
78
|
} else if let templateVersion {
|
|
81
79
|
inquiry = Inquiry.from(templateVersion: templateVersion, delegate: self)
|
|
@@ -85,8 +83,7 @@ class PersonaInquiry2: RCTEventEmitter {
|
|
|
85
83
|
.theme(makeTheme(from: themeObject, themeSource: themeSource))
|
|
86
84
|
.nfcAdapter(nfcAdapter)
|
|
87
85
|
.collectionDelegate(returnCollectedData ? self : nil)
|
|
88
|
-
|
|
89
|
-
.routingCountry(routingCountry == "de" ? .de : .us)
|
|
86
|
+
.routingCountry(routingCountry)
|
|
90
87
|
.build()
|
|
91
88
|
}
|
|
92
89
|
|
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.6.
|
|
4
|
+
"version": "2.6.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",
|