contour-ai-sdk 1.10.3-alpha.1 → 1.10.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.
@@ -72,8 +72,6 @@ public class ContourAiSdkModule extends ReactContextBaseJavaModule {
72
72
  }
73
73
 
74
74
  contoursModel.enableMultipleCheckCapturing = enableMultipleCheckCapturing;
75
- //font family for sdk should be like "Poppins" or "AnyFont" but that font should be present in your assest/fonts/your font with styles like YourFont-Bold, YourFont-SemiBold and YourFont-Regular
76
- contoursModel.fontFamily = "Poppins";
77
75
  ContoursStarterActivity.Companion.launchSdk(context, contoursModel, clientID, new IContoursResultListener() {
78
76
  @Override
79
77
  public void onCaptureSuccess(ContoursResultModel contoursResultModel) {
@@ -104,9 +102,11 @@ public class ContourAiSdkModule extends ReactContextBaseJavaModule {
104
102
  map.putString("frontUri", adjustUri(frontUri));
105
103
  map.putString("croppedFrontUri", adjustUri(frontUriCropped));
106
104
  }
107
- compressImage(rearUri);
108
- map.putString("rearUri", adjustUri(rearUri));
109
- map.putString("croppedRearUri", adjustUri(rearUriCropped));
105
+ if(rearUriCropped != null && !rearUriCropped.isEmpty()) {
106
+ compressImage(rearUri);
107
+ map.putString("rearUri", adjustUri(rearUri));
108
+ map.putString("croppedRearUri", adjustUri(rearUriCropped));
109
+ }
110
110
  getReactApplicationContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
111
111
  .emit("checkCaptured", map);
112
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contour-ai-sdk",
3
- "version": "1.10.3-alpha.1",
3
+ "version": "1.10.4",
4
4
  "description": "The Contour AI SDK™ has been designed to be the industry’s most intuitive, and protected, experience for mobile image capture - capturing documents of various kinds via an iOS™ or Android™ mobile device. At the same time, it has been designed to enable the clear, accurate, and complete processing of these documents with limited, if any, human intervention, all while improving your efficiencies and reducing costs.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",