barkoder-nativescript 1.5.2 → 1.5.6
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.
- package/barkoder-nativescript.android.ts +65 -0
- package/barkoder-nativescript.common.ts +55 -0
- package/barkoder-nativescript.ios.ts +68 -0
- package/package.json +1 -1
- package/platforms/android/barkoder.aar +0 -0
- package/platforms/android/barkoder_nativescript.aar +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Barkoder +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Headers/iBarkoder.h +2 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Headers/iBarkoder.h +2 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +10 -10
- package/platforms/ios/BarkoderSDK.xcframework/Info.plist +5 -5
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/BarkoderSDK +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +8 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Info.plist +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.abi.json +81 -37
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +2 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftinterface +2 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json +14 -3
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/BarkoderSDK +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +16 -2
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Info.plist +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +81 -37
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +2 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +81 -37
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +2 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +2 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +25 -25
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/templates.json +14 -3
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +0 -85
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/model.mil +0 -753
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/weights/weight.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +0 -85
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/model.mil +0 -753
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/weights/weight.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/mrz.traineddata +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/mrzfast.traineddata +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +0 -85
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/model.mil +0 -753
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/weights/weight.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +0 -85
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/model.mil +0 -753
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/weights/weight.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/mrz.traineddata +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/mrzfast.traineddata +0 -0
|
@@ -2,6 +2,9 @@ import { BarkoderConstants } from "./barkoder-nativescript.common";
|
|
|
2
2
|
import * as application from "@nativescript/core/application";
|
|
3
3
|
import { View } from "@nativescript/core";
|
|
4
4
|
import { BarkoderView } from "./barkoder-nativescript.common";
|
|
5
|
+
import { ImageSource } from '@nativescript/core';
|
|
6
|
+
|
|
7
|
+
|
|
5
8
|
|
|
6
9
|
const androidSupport =
|
|
7
10
|
global.androidx && global.androidx.appcompat
|
|
@@ -54,6 +57,35 @@ export class BarkoderViewAndroid extends View {
|
|
|
54
57
|
this.bkdView.startScanning(resultCallback);
|
|
55
58
|
}
|
|
56
59
|
|
|
60
|
+
|
|
61
|
+
scanImage(
|
|
62
|
+
base64Image: string,
|
|
63
|
+
BarkoderResultCallback: BarkoderConstants.BarkoderResultCallback
|
|
64
|
+
): void {
|
|
65
|
+
const BarkoderHelper = com.barkoder.BarkoderHelper;
|
|
66
|
+
|
|
67
|
+
// Convert base64 string to bitmap
|
|
68
|
+
const bitmap = ImageSource.fromBase64Sync(base64Image).android;
|
|
69
|
+
|
|
70
|
+
// Create an instance of BarkoderResultCallback
|
|
71
|
+
const resultCallback = new com.barkoder.interfaces.BarkoderResultCallback({
|
|
72
|
+
scanningFinished: (
|
|
73
|
+
results: any[],
|
|
74
|
+
thumbnails: any[],
|
|
75
|
+
resultImage: any
|
|
76
|
+
) => {
|
|
77
|
+
BarkoderResultCallback.scanningFinished(
|
|
78
|
+
results,
|
|
79
|
+
thumbnails,
|
|
80
|
+
resultImage
|
|
81
|
+
);
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
// Pass the result callback correctly to scanImage
|
|
86
|
+
BarkoderHelper.scanImage(bitmap, this.bkdView.config, resultCallback, context);
|
|
87
|
+
}
|
|
88
|
+
|
|
57
89
|
/**
|
|
58
90
|
* Halts the barcode scanning process, stopping the camera from capturing and processing barcode information
|
|
59
91
|
*/
|
|
@@ -124,6 +156,19 @@ export class BarkoderViewAndroid extends View {
|
|
|
124
156
|
this.bkdView.config.setLocationLineColor(locationColor);
|
|
125
157
|
}
|
|
126
158
|
|
|
159
|
+
|
|
160
|
+
setIdDocumentMasterChecksumEnabled(enabled: boolean): void {
|
|
161
|
+
if(enabled){
|
|
162
|
+
this.bkdView.config.getDecoderConfig().IDDocument.masterChecksumType = com.barkoder.Barkoder.StandardChecksumType.Enabled
|
|
163
|
+
} else {
|
|
164
|
+
this.bkdView.config.getDecoderConfig().IDDocument.masterChecksumType = com.barkoder.Barkoder.StandardChecksumType.Disabled
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
isIdDocumentMasterChecksumEnabled(): boolean {
|
|
169
|
+
return this.bkdView.config.getDecoderConfig().IDDocument.masterChecksumType === com.barkoder.Barkoder.StandardChecksumType.Enabled;
|
|
170
|
+
}
|
|
171
|
+
|
|
127
172
|
/**
|
|
128
173
|
* Sets the color of the lines outlining the Region of Interest (ROI) for barcode scanning on the camera feed
|
|
129
174
|
*/
|
|
@@ -991,6 +1036,26 @@ export class BarkoderViewAndroid extends View {
|
|
|
991
1036
|
this.bkdView.config.getDecoderConfig().Datamatrix.dpmMode = dpmModeEnabled;
|
|
992
1037
|
}
|
|
993
1038
|
|
|
1039
|
+
setQRDpmModeEnabled(dpmModeEnabled: boolean): void {
|
|
1040
|
+
this.bkdView.config.getDecoderConfig().QR.dpmMode = dpmModeEnabled;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
setQRMicroDpmModeEnabled(dpmModeEnabled: boolean): void {
|
|
1044
|
+
this.bkdView.config.getDecoderConfig().QRMicro.dpmMode = dpmModeEnabled;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
isDatamatrixDpmModeEnabled(): any {
|
|
1048
|
+
return this.bkdView.config.getDecoderConfig().Datamatrix.dpmMode;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
isQRDpmModeEnabled() : any {
|
|
1052
|
+
return this.bkdView.config.getDecoderConfig().QR.dpmMode
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
isQRMicroDpmModeEnabled() : any {
|
|
1056
|
+
return this.bkdView.config.getDecoderConfig().QRMicro.dpmMode
|
|
1057
|
+
}
|
|
1058
|
+
|
|
994
1059
|
/**
|
|
995
1060
|
* Sets whether the deblurring feature for UPC/EAN barcodes is enabled
|
|
996
1061
|
*/
|
|
@@ -376,6 +376,61 @@ export class DatamatrixBarcodeConfig {
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
|
|
379
|
+
|
|
380
|
+
export class QRBarcodeConfig {
|
|
381
|
+
enabled?: boolean;
|
|
382
|
+
dpmMode?: number;
|
|
383
|
+
private minLength?: number;
|
|
384
|
+
private maxLength?: number;
|
|
385
|
+
|
|
386
|
+
constructor(config: Partial<QRBarcodeConfig>) {
|
|
387
|
+
Object.assign(this, config);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
toMap() {
|
|
391
|
+
let map: { [key: string]: any } = {
|
|
392
|
+
"enabled": this.enabled,
|
|
393
|
+
"dpmMode": this.dpmMode,
|
|
394
|
+
"minimumLength": this.minLength,
|
|
395
|
+
"maximumLength": this.maxLength,
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
return map;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
setLengthRange(minLength: number, maxLength: number) {
|
|
402
|
+
this.minLength = minLength;
|
|
403
|
+
this.maxLength = maxLength;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export class QRMicroBarcodeConfig {
|
|
408
|
+
enabled?: boolean;
|
|
409
|
+
dpmMode?: number;
|
|
410
|
+
private minLength?: number;
|
|
411
|
+
private maxLength?: number;
|
|
412
|
+
|
|
413
|
+
constructor(config: Partial<QRMicroBarcodeConfig>) {
|
|
414
|
+
Object.assign(this, config);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
toMap() {
|
|
418
|
+
let map: { [key: string]: any } = {
|
|
419
|
+
"enabled": this.enabled,
|
|
420
|
+
"dpmMode": this.dpmMode,
|
|
421
|
+
"minimumLength": this.minLength,
|
|
422
|
+
"maximumLength": this.maxLength,
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
return map;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
setLengthRange(minLength: number, maxLength: number) {
|
|
429
|
+
this.minLength = minLength;
|
|
430
|
+
this.maxLength = maxLength;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
379
434
|
export class GeneralSettings {
|
|
380
435
|
threadsLimit?: number;
|
|
381
436
|
decodingSpeed?: DecodingSpeed;
|
|
@@ -22,6 +22,34 @@ export class BarkoderViewIOS extends View {
|
|
|
22
22
|
this.bkdView.startScanningError(resultDelegate);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
scanImage(base64Image: string, callback: BarkoderConstants.BarkoderResultCallback): void {
|
|
26
|
+
|
|
27
|
+
// Convert Base64 to UIImage
|
|
28
|
+
const uiImage = this.convertBase64ToUIImage(base64Image);
|
|
29
|
+
const resultDelegate = new BarkoderViewWraper(callback);
|
|
30
|
+
ios.delegate = resultDelegate;
|
|
31
|
+
BarkoderHelper.scanImageBkdConfigResultDelegate(uiImage,this.bkdView.config, resultDelegate)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
convertBase64ToUIImage(base64String: string): UIImage | null {
|
|
35
|
+
if (!base64String) {
|
|
36
|
+
console.warn('Invalid Base64 string provided');
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Decode the Base64 string to NSData
|
|
41
|
+
const imageData = NSData.alloc().initWithBase64EncodedStringOptions(base64String, 0); // Using 0 as the option
|
|
42
|
+
|
|
43
|
+
if (!imageData) {
|
|
44
|
+
console.warn('Failed to decode Base64 string to NSData');
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Create a UIImage from NSData
|
|
49
|
+
const uiImage = UIImage.imageWithData(imageData);
|
|
50
|
+
return uiImage;
|
|
51
|
+
}
|
|
52
|
+
|
|
25
53
|
/**
|
|
26
54
|
* Halts the barcode scanning process, stopping the camera from capturing and processing barcode information
|
|
27
55
|
*/
|
|
@@ -158,6 +186,18 @@ export class BarkoderViewIOS extends View {
|
|
|
158
186
|
this.bkdView.config.regionOfInterestVisible = enabled;
|
|
159
187
|
}
|
|
160
188
|
|
|
189
|
+
setIdDocumentMasterChecksumEnabled(enabled: boolean): void {
|
|
190
|
+
if (enabled) {
|
|
191
|
+
this.bkdView.config.decoderConfig.idDocument.masterChecksum = 1
|
|
192
|
+
} else {
|
|
193
|
+
this.bkdView.config.decoderConfig.idDocument.masterChecksum = 0
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
isIdDocumentMasterChecksumEnabled(): boolean {
|
|
198
|
+
return this.bkdView.config.decoderConfig.idDocument.masterChecksum === 1
|
|
199
|
+
}
|
|
200
|
+
|
|
161
201
|
/**
|
|
162
202
|
* Defines the Region of Interest (ROI) on the camera preview for barcode scanning, specifying an area where the application focuses on detecting barcodes
|
|
163
203
|
*/
|
|
@@ -983,6 +1023,34 @@ export class BarkoderViewIOS extends View {
|
|
|
983
1023
|
}
|
|
984
1024
|
}
|
|
985
1025
|
|
|
1026
|
+
setQRDpmModeEnabled(dpmModeEnabled: boolean): void {
|
|
1027
|
+
if (dpmModeEnabled) {
|
|
1028
|
+
this.bkdView.config.decoderConfig.qr.dpmMode = 1;
|
|
1029
|
+
} else if (dpmModeEnabled == false) {
|
|
1030
|
+
this.bkdView.config.decoderConfig.qr.dpmMode = 0;
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
setQRMicroDpmModeEnabled(dpmModeEnabled: boolean): void {
|
|
1035
|
+
if (dpmModeEnabled) {
|
|
1036
|
+
this.bkdView.config.decoderConfig.qrMicro.dpmMode = 1;
|
|
1037
|
+
} else if (dpmModeEnabled == false) {
|
|
1038
|
+
this.bkdView.config.decoderConfig.qrMicro.dpmMode = 0;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
isDatamatrixDpmModeEnabled(): any {
|
|
1043
|
+
return this.bkdView.config.decoderConfig.datamatrix.dpmMode;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
isQRDpmModeEnabled(): any {
|
|
1047
|
+
return this.bkdView.config.decoderConfig.qr.dpmMode
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
isQRMicroDpmModeEnabled(): any {
|
|
1051
|
+
return this.bkdView.config.decoderConfig.qrMicro.dpmMode
|
|
1052
|
+
}
|
|
1053
|
+
|
|
986
1054
|
/**
|
|
987
1055
|
* Retrieves the delay in milliseconds for considering duplicate barcodes during scanning
|
|
988
1056
|
*/
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -266,6 +266,7 @@ typedef enum {
|
|
|
266
266
|
//==========================================================================
|
|
267
267
|
@interface QRConfig : SpecificConfig
|
|
268
268
|
@property (nonatomic, readwrite) bool multiPartMerge;
|
|
269
|
+
@property (nonatomic, readwrite) int dpmMode;
|
|
269
270
|
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
270
271
|
@end
|
|
271
272
|
|
|
@@ -273,6 +274,7 @@ typedef enum {
|
|
|
273
274
|
// QRMicro Config
|
|
274
275
|
//==========================================================================
|
|
275
276
|
@interface QRMicroConfig : SpecificConfig
|
|
277
|
+
@property (nonatomic, readwrite) int dpmMode;
|
|
276
278
|
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
277
279
|
@end
|
|
278
280
|
|
package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder
CHANGED
|
Binary file
|
|
@@ -266,6 +266,7 @@ typedef enum {
|
|
|
266
266
|
//==========================================================================
|
|
267
267
|
@interface QRConfig : SpecificConfig
|
|
268
268
|
@property (nonatomic, readwrite) bool multiPartMerge;
|
|
269
|
+
@property (nonatomic, readwrite) int dpmMode;
|
|
269
270
|
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
270
271
|
@end
|
|
271
272
|
|
|
@@ -273,6 +274,7 @@ typedef enum {
|
|
|
273
274
|
// QRMicro Config
|
|
274
275
|
//==========================================================================
|
|
275
276
|
@interface QRMicroConfig : SpecificConfig
|
|
277
|
+
@property (nonatomic, readwrite) int dpmMode;
|
|
276
278
|
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
277
279
|
@end
|
|
278
280
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</data>
|
|
11
11
|
<key>Headers/iBarkoder.h</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
jszfXt4mmOmsq71vgpaWY4wwVqM=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Info.plist</key>
|
|
16
16
|
<data>
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
</data>
|
|
31
31
|
<key>float16_384x256.mlmodelc/coremldata.bin</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
jSHmcR0CnfwpJFEcTE6Jq78OKEg=
|
|
34
34
|
</data>
|
|
35
35
|
<key>float16_384x256.mlmodelc/metadata.json</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
LMdRtC1wCMUbS5K+oC3TUg0T9m0=
|
|
38
38
|
</data>
|
|
39
39
|
<key>float16_384x256.mlmodelc/model.mil</key>
|
|
40
40
|
<data>
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
</data>
|
|
51
51
|
<key>float16_512x384.mlmodelc/coremldata.bin</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
5QXIh2aO0eeCXPXNOvQkOVkM//4=
|
|
54
54
|
</data>
|
|
55
55
|
<key>float16_512x384.mlmodelc/metadata.json</key>
|
|
56
56
|
<data>
|
|
57
|
-
|
|
57
|
+
DYFPvv1/hWFfhDu+DP4tZe1SadY=
|
|
58
58
|
</data>
|
|
59
59
|
<key>float16_512x384.mlmodelc/model.mil</key>
|
|
60
60
|
<data>
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<dict>
|
|
87
87
|
<key>hash2</key>
|
|
88
88
|
<data>
|
|
89
|
-
|
|
89
|
+
AP6lUrKs1YTqkHsINX/J86Mk8hshfK3GauwNsYIS7tw=
|
|
90
90
|
</data>
|
|
91
91
|
</dict>
|
|
92
92
|
<key>Modules/module.modulemap</key>
|
|
@@ -114,14 +114,14 @@
|
|
|
114
114
|
<dict>
|
|
115
115
|
<key>hash2</key>
|
|
116
116
|
<data>
|
|
117
|
-
|
|
117
|
+
wVmELDvW9NuA+D4Lw+ofVNAEYvMmZdDMauCC+dorUfY=
|
|
118
118
|
</data>
|
|
119
119
|
</dict>
|
|
120
120
|
<key>float16_384x256.mlmodelc/metadata.json</key>
|
|
121
121
|
<dict>
|
|
122
122
|
<key>hash2</key>
|
|
123
123
|
<data>
|
|
124
|
-
|
|
124
|
+
ZM7I2LIWs3sKAtkTZxdoEKsgVoDgv9vhGMAV81jNiqk=
|
|
125
125
|
</data>
|
|
126
126
|
</dict>
|
|
127
127
|
<key>float16_384x256.mlmodelc/model.mil</key>
|
|
@@ -149,14 +149,14 @@
|
|
|
149
149
|
<dict>
|
|
150
150
|
<key>hash2</key>
|
|
151
151
|
<data>
|
|
152
|
-
|
|
152
|
+
j5sPbI531Z6F9Pcr3tBgYhDQGvv8un4+jvm5qmO1hNQ=
|
|
153
153
|
</data>
|
|
154
154
|
</dict>
|
|
155
155
|
<key>float16_512x384.mlmodelc/metadata.json</key>
|
|
156
156
|
<dict>
|
|
157
157
|
<key>hash2</key>
|
|
158
158
|
<data>
|
|
159
|
-
|
|
159
|
+
bStcTX2JtWXmGXxtzS1IdxRV75opXLtQ0MULA+XkbaM=
|
|
160
160
|
</data>
|
|
161
161
|
</dict>
|
|
162
162
|
<key>float16_512x384.mlmodelc/model.mil</key>
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>BarkoderSDK.framework/BarkoderSDK</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>BarkoderSDK.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
17
18
|
</array>
|
|
18
19
|
<key>SupportedPlatform</key>
|
|
19
20
|
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
20
23
|
</dict>
|
|
21
24
|
<dict>
|
|
22
25
|
<key>BinaryPath</key>
|
|
23
26
|
<string>BarkoderSDK.framework/BarkoderSDK</string>
|
|
24
27
|
<key>LibraryIdentifier</key>
|
|
25
|
-
<string>ios-
|
|
28
|
+
<string>ios-arm64</string>
|
|
26
29
|
<key>LibraryPath</key>
|
|
27
30
|
<string>BarkoderSDK.framework</string>
|
|
28
31
|
<key>SupportedArchitectures</key>
|
|
29
32
|
<array>
|
|
30
33
|
<string>arm64</string>
|
|
31
|
-
<string>x86_64</string>
|
|
32
34
|
</array>
|
|
33
35
|
<key>SupportedPlatform</key>
|
|
34
36
|
<string>ios</string>
|
|
35
|
-
<key>SupportedPlatformVariant</key>
|
|
36
|
-
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.
|
|
3
|
+
// Generated by Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
|
|
4
4
|
#ifndef BARKODERSDK_SWIFT_H
|
|
5
5
|
#define BARKODERSDK_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -418,6 +418,12 @@ SWIFT_CLASS("_TtC11BarkoderSDK14BarkoderHelper")
|
|
|
418
418
|
/// \param resultDelegate where you will receive scanned result
|
|
419
419
|
///
|
|
420
420
|
+ (void)scanImage:(UIImage * _Nonnull)image bkdConfig:(BarkoderConfig * _Nonnull)bkdConfig resultDelegate:(id <BarkoderResultDelegate> _Nonnull)resultDelegate;
|
|
421
|
+
/// Opens the device’s photo gallery, allowing you to choose an image to be processed for barcode scanning.
|
|
422
|
+
/// \param bkdConfig config that will be used for scanning process
|
|
423
|
+
///
|
|
424
|
+
/// \param resultDelegate where you will receive scanned result
|
|
425
|
+
///
|
|
426
|
+
+ (void)scanFromGalleryWithBkdConfig:(BarkoderConfig * _Nonnull)bkdConfig resultDelegate:(id <BarkoderResultDelegate> _Nonnull)resultDelegate;
|
|
421
427
|
/// Apply config params from predefined template
|
|
422
428
|
/// \param config that will be configured
|
|
423
429
|
///
|
|
@@ -469,6 +475,7 @@ typedef SWIFT_ENUM(NSInteger, BarkoderConfigTemplate, open) {
|
|
|
469
475
|
};
|
|
470
476
|
|
|
471
477
|
|
|
478
|
+
|
|
472
479
|
SWIFT_PROTOCOL("_TtP11BarkoderSDK27BarkoderPerformanceDelegate_")
|
|
473
480
|
@protocol BarkoderPerformanceDelegate
|
|
474
481
|
@optional
|