react-native-mdl-verification 1.0.2 → 1.0.4

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.
@@ -51,6 +51,11 @@ class MdlVerificationBridge(reactContext: ReactApplicationContext) :
51
51
  map.putString("msoValid", response.msoValid ?: "")
52
52
  map.putString("cert", response.cert ?: "")
53
53
  map.putString("ica_cert", response.ica_cert ?: "")
54
+ if (successMesg?.indexOf(INVALID_LIC") >=0) {
55
+ map.putString("licenseKey", response.licenseKey?: "")
56
+ map.putString("applicationId", response.applicationId?: "")
57
+ }
58
+
54
59
 
55
60
  // Add convenience boolean for easy checking
56
61
  map.putBoolean("isSuccessful", response.success == "Y")
package/index.d.ts CHANGED
@@ -29,6 +29,8 @@ declare module 'react-native-mdl-verification' {
29
29
  cert?: string;
30
30
  ica_cert?: string;
31
31
  isSuccessful?: boolean;
32
+ applicationId?: string;
33
+ licenseKey?: string;
32
34
  }
33
35
 
34
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mdl-verification",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "React Native bridge for MDL (Mobile Driver's License) verification using CheckMDL SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",