contour-ai-sdk 1.15.1-alpha.3 → 1.15.1

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.
@@ -67,12 +67,12 @@ public class ContourAiSdkModule extends ReactContextBaseJavaModule {
67
67
 
68
68
  @ReactMethod
69
69
  public void startContourSDK(String captureSide, String clientID, String captureType, boolean enableMultipleCheckCapturing) {
70
- startContourSDK(captureSide, clientID, captureType, enableMultipleCheckCapturing, null, "prod");
70
+ startContourSDK(captureSide, clientID, captureType, enableMultipleCheckCapturing, null, ContoursEnvironment.PROD.name());
71
71
  }
72
72
 
73
73
  @ReactMethod
74
74
  public void initialize(String clientId, String environmentType) {
75
- if (environmentType != null && environmentType.equalsIgnoreCase("dev")) {
75
+ if (environmentType != null && environmentType.equalsIgnoreCase(ContoursEnvironment.DEV.name())) {
76
76
  ContoursStarterActivity.Companion.initialize(context, clientId, ContoursEnvironment.DEV);
77
77
  }else{
78
78
  ContoursStarterActivity.Companion.initialize(context, clientId, ContoursEnvironment.PROD);
@@ -108,7 +108,7 @@ public class ContourAiSdkModule extends ReactContextBaseJavaModule {
108
108
  contoursModel.type = ContoursScanType.CHECK;
109
109
  }
110
110
  contoursModel.capturingSide = capturingSide;
111
- if (environmentType != null && environmentType.equalsIgnoreCase("dev")) {
111
+ if (environmentType != null && environmentType.equalsIgnoreCase(ContoursEnvironment.DEV.name())) {
112
112
  contoursModel.environmentType = ContoursEnvironment.DEV;
113
113
  } else {
114
114
  contoursModel.environmentType = ContoursEnvironment.PROD;
@@ -18,8 +18,8 @@ RCT_REMAP_METHOD(startContour, withModel:(NSDictionary *)model) {
18
18
  [self openContoursSDKwithClientId:sdkOptions.clientID withCaptureType:sdkOptions.captureType withEnableMultipleCheckCapturing:sdkOptions.enableMultipleCapturing withType:sdkOptions.type withCapturingSide:sdkOptions.capturingSide environmentType:sdkOptions.environmentType];
19
19
  }
20
20
 
21
- RCT_REMAP_METHOD(initialize, ClientId:(NSString *)ClientId environmentType: (NSString *)environmentType) {
22
- [self initializeSdkClientId:ClientId environmentType:environmentType];
21
+ RCT_REMAP_METHOD(initialize, clientId:(NSString *)clientId environmentType: (NSString *)environmentType) {
22
+ [self initializeSdkClientId:clientId environmentType:environmentType];
23
23
  }
24
24
 
25
25
 
@@ -69,9 +69,9 @@ RCT_REMAP_METHOD(initialize, ClientId:(NSString *)ClientId environmentType: (NSS
69
69
  [self sendEventWithName:@"onEventCaptured" body: data];
70
70
  }
71
71
 
72
- -(void)initializeSdkClientId:(NSString *)ClientId environmentType: (NSString *)environmentType {
72
+ -(void)initializeSdkClientId:(NSString *)clientId environmentType: (NSString *)environmentType {
73
73
  ContoursAIFramework *contourCaptureViewController = [[ContoursAIFramework alloc] init];
74
- [contourCaptureViewController initializeWithClientID:ClientId environmentType:environmentType];
74
+ [contourCaptureViewController initializeWithClientID:clientId environmentType:environmentType];
75
75
  }
76
76
 
77
77
  // Adding the image in NSTemporaryDirectory.
@@ -9,7 +9,7 @@
9
9
  _clientID = dict[@"clientId"];
10
10
  _captureType = dict[@"captureType"];
11
11
  _enableMultipleCapturing = [dict[@"enableMultipleCapturing"] boolValue];
12
- _environmentType = dict[@"_environmentType"];
12
+ _environmentType = dict[@"environmentType"];
13
13
  _type = dict[@"type"];
14
14
  }
15
15
  return self;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contour-ai-sdk",
3
- "version": "1.15.1-alpha.3",
3
+ "version": "1.15.1",
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",
@@ -56,39 +56,30 @@
56
56
  "devDependencies": {
57
57
  "@commitlint/config-conventional": "^19.8.1",
58
58
  "@evilmartians/lefthook": "^1.11.14",
59
-
60
59
  "@react-native/babel-preset": "0.79.0",
61
60
  "@react-native/eslint-config": "0.79.0",
62
61
  "@react-native/metro-config": "0.79.0",
63
62
  "@react-native/typescript-config": "0.79.0",
64
-
65
63
  "@react-native-community/cli": "18.0.0",
66
64
  "@react-native-community/cli-platform-android": "18.0.0",
67
65
  "@react-native-community/cli-platform-ios": "18.0.0",
68
-
69
66
  "@release-it/conventional-changelog": "^5.0.0",
70
-
71
67
  "@types/jest": "^29.5.14",
72
68
  "@types/react": "19.0.0",
73
69
  "@types/react-test-renderer": "^19.0.0",
74
-
75
70
  "babel-jest": "^29.6.3",
76
71
  "commitlint": "^17.0.2",
77
72
  "del-cli": "^5.0.0",
78
-
79
73
  "eslint": "^8.19.0",
80
74
  "eslint-config-prettier": "^8.5.0",
81
75
  "eslint-plugin-prettier": "^4.0.0",
82
-
83
76
  "jest": "^29.6.3",
84
77
  "pod-install": "^0.1.0",
85
78
  "prettier": "2.8.8",
86
-
87
79
  "react": "19.0.0",
88
80
  "react-native": "0.79.0",
89
81
  "react-native-builder-bob": "^0.20.4",
90
82
  "react-test-renderer": "19.0.0",
91
-
92
83
  "release-it": "^15.0.0",
93
84
  "typescript": "^5.8.3"
94
85
  },