barkoder-nativescript 1.6.0 → 1.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.
- package/barkoder-nativescript.android.ts +13 -0
- package/barkoder-nativescript.common.ts +5 -0
- package/barkoder-nativescript.ios.ts +12 -0
- package/package.json +1 -1
- package/platforms/android/barkoder.aar +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Barkoder +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Info.plist +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Modules/module.modulemap +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/default.metallib +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 +1 -1
- 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 +3 -3
- 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/Info.plist +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Modules/module.modulemap +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +13 -9
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/default.metallib +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +3 -3
- 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 +2 -2
- 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 +13 -0
- 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 +277 -8
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +14 -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 +14 -1
- 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 +26 -0
- 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 +277 -8
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +14 -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 +14 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +277 -8
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +14 -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 +14 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +23 -23
|
@@ -1230,6 +1230,19 @@ export class BarkoderViewAndroid extends View {
|
|
|
1230
1230
|
this.bkdView.setCentricFocusAndExposure(enabled);
|
|
1231
1231
|
}
|
|
1232
1232
|
|
|
1233
|
+
setVideoStabilization(enabled: boolean) : void {
|
|
1234
|
+
this.bkdView.setVideoStabilization(enabled);
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
setCamera(cameraPosition: BarkoderConstants.BarkoderCameraPosition) : void {
|
|
1238
|
+
if(cameraPosition == BarkoderConstants.BarkoderCameraPosition.Front) {
|
|
1239
|
+
this.bkdView.setCamera(com.barkoder.enums.BarkoderCameraPosition.FRONT);
|
|
1240
|
+
} else if (cameraPosition == BarkoderConstants.BarkoderCameraPosition.Back) {
|
|
1241
|
+
this.bkdView.setCamera(com.barkoder.enums.BarkoderCameraPosition.BACK);
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1233
1246
|
|
|
1234
1247
|
|
|
1235
1248
|
|
|
@@ -1243,6 +1243,18 @@ export class BarkoderViewIOS extends View {
|
|
|
1243
1243
|
this.bkdView.setCentricFocusAndExposure(enabled);
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
|
+
setVideoStabilization(enabled: boolean): void {
|
|
1247
|
+
this.bkdView.setVideoStabilization(enabled)
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
setCamera(cameraPosition: BarkoderConstants.BarkoderCameraPosition): void {
|
|
1251
|
+
if(cameraPosition == BarkoderConstants.BarkoderCameraPosition.Front) {
|
|
1252
|
+
this.bkdView.setCamera(BarkoderCameraPosition.FRONT);
|
|
1253
|
+
} else if (cameraPosition == BarkoderConstants.BarkoderCameraPosition.Back) {
|
|
1254
|
+
this.bkdView.setCamera(BarkoderCameraPosition.BACK);
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1246
1258
|
|
|
1247
1259
|
/**
|
|
1248
1260
|
* Configures the Barkoder functionality based on the provided configuration
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Modules/module.modulemap
CHANGED
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
],
|
|
73
73
|
"userDefinedMetadata" : {
|
|
74
74
|
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
|
|
75
|
-
"stride" : "32",
|
|
76
75
|
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
|
76
|
+
"stride" : "32",
|
|
77
77
|
"docs" : "https:\/\/docs.ultralytics.com",
|
|
78
78
|
"task" : "obb",
|
|
79
79
|
"com.github.apple.coremltools.version" : "7.2",
|
|
Binary file
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
73
|
"userDefinedMetadata" : {
|
|
74
|
+
"stride" : "32",
|
|
74
75
|
"com.github.apple.coremltools.version" : "7.2",
|
|
75
76
|
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
|
|
76
77
|
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
|
77
|
-
"docs" : "https:\/\/docs.ultralytics.com",
|
|
78
78
|
"task" : "obb",
|
|
79
|
-
"
|
|
80
|
-
"date" : "2024-08-01T17:19:19.267647",
|
|
79
|
+
"docs" : "https:\/\/docs.ultralytics.com",
|
|
81
80
|
"imgsz" : "[384, 512]",
|
|
81
|
+
"date" : "2024-08-01T17:19:19.267647",
|
|
82
82
|
"batch" : "1",
|
|
83
83
|
"names" : "{0: 'id_mrz_image', 1: 'mrz_2', 2: 'mrz_3', 3: 'id_mrz', 4: 'id_image', 5: 'face', 6: 'vin', 7: 'signature'}"
|
|
84
84
|
},
|
package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder
CHANGED
|
Binary file
|
package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Info.plist
CHANGED
|
Binary file
|
|
File without changes
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
<dict>
|
|
5
5
|
<key>files</key>
|
|
6
6
|
<dict>
|
|
7
|
+
<key>.DS_Store</key>
|
|
8
|
+
<data>
|
|
9
|
+
Cz/yhX2hYQD8hpitbrP/7/lW/e4=
|
|
10
|
+
</data>
|
|
7
11
|
<key>Headers/Barkoder.h</key>
|
|
8
12
|
<data>
|
|
9
13
|
9tBmdiEM3Piw6SdXbESop6X7Zac=
|
|
@@ -14,7 +18,7 @@
|
|
|
14
18
|
</data>
|
|
15
19
|
<key>Info.plist</key>
|
|
16
20
|
<data>
|
|
17
|
-
|
|
21
|
+
bHYij+U0CnlRcjhd84pSxfJ8V4A=
|
|
18
22
|
</data>
|
|
19
23
|
<key>Modules/module.modulemap</key>
|
|
20
24
|
<data>
|
|
@@ -22,7 +26,7 @@
|
|
|
22
26
|
</data>
|
|
23
27
|
<key>default.metallib</key>
|
|
24
28
|
<data>
|
|
25
|
-
|
|
29
|
+
g0rvIZOVkgeBTdCqKFiJdE0xH40=
|
|
26
30
|
</data>
|
|
27
31
|
<key>float16_384x256.mlmodelc/analytics/coremldata.bin</key>
|
|
28
32
|
<data>
|
|
@@ -34,7 +38,7 @@
|
|
|
34
38
|
</data>
|
|
35
39
|
<key>float16_384x256.mlmodelc/metadata.json</key>
|
|
36
40
|
<data>
|
|
37
|
-
|
|
41
|
+
dMnvopdHJQ6Jk3TYgtts2rZp26c=
|
|
38
42
|
</data>
|
|
39
43
|
<key>float16_384x256.mlmodelc/model.mil</key>
|
|
40
44
|
<data>
|
|
@@ -50,11 +54,11 @@
|
|
|
50
54
|
</data>
|
|
51
55
|
<key>float16_512x384.mlmodelc/coremldata.bin</key>
|
|
52
56
|
<data>
|
|
53
|
-
|
|
57
|
+
n6VsTw0Zo/smE97gypYnErJy49E=
|
|
54
58
|
</data>
|
|
55
59
|
<key>float16_512x384.mlmodelc/metadata.json</key>
|
|
56
60
|
<data>
|
|
57
|
-
|
|
61
|
+
C36Hwk5NGVUo1zk14wg8NqUntAM=
|
|
58
62
|
</data>
|
|
59
63
|
<key>float16_512x384.mlmodelc/model.mil</key>
|
|
60
64
|
<data>
|
|
@@ -100,7 +104,7 @@
|
|
|
100
104
|
<dict>
|
|
101
105
|
<key>hash2</key>
|
|
102
106
|
<data>
|
|
103
|
-
|
|
107
|
+
KTc+Wq8krmIlx2re2CO30GCnkx1qk10cQcojmYEUkSc=
|
|
104
108
|
</data>
|
|
105
109
|
</dict>
|
|
106
110
|
<key>float16_384x256.mlmodelc/analytics/coremldata.bin</key>
|
|
@@ -121,7 +125,7 @@
|
|
|
121
125
|
<dict>
|
|
122
126
|
<key>hash2</key>
|
|
123
127
|
<data>
|
|
124
|
-
|
|
128
|
+
wjG+zQM7M/EPrCRi6FWKpjPscclGEJwyIwSvgZFpeWg=
|
|
125
129
|
</data>
|
|
126
130
|
</dict>
|
|
127
131
|
<key>float16_384x256.mlmodelc/model.mil</key>
|
|
@@ -149,14 +153,14 @@
|
|
|
149
153
|
<dict>
|
|
150
154
|
<key>hash2</key>
|
|
151
155
|
<data>
|
|
152
|
-
|
|
156
|
+
ETveWY0KzrDaGv39v54e6NP97zSTY8tg8DnTTFA91B4=
|
|
153
157
|
</data>
|
|
154
158
|
</dict>
|
|
155
159
|
<key>float16_512x384.mlmodelc/metadata.json</key>
|
|
156
160
|
<dict>
|
|
157
161
|
<key>hash2</key>
|
|
158
162
|
<data>
|
|
159
|
-
|
|
163
|
+
KUY6i6p5lmjlwXT4nknCFaO1sgIkAI1As2j6v68gE7U=
|
|
160
164
|
</data>
|
|
161
165
|
</dict>
|
|
162
166
|
<key>float16_512x384.mlmodelc/model.mil</key>
|
|
Binary file
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
73
|
"userDefinedMetadata" : {
|
|
74
|
+
"stride" : "32",
|
|
74
75
|
"com.github.apple.coremltools.version" : "7.2",
|
|
75
|
-
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
|
|
76
76
|
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
|
77
77
|
"docs" : "https:\/\/docs.ultralytics.com",
|
|
78
|
-
"stride" : "32",
|
|
79
78
|
"task" : "obb",
|
|
80
|
-
"
|
|
79
|
+
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
|
|
81
80
|
"date" : "2024-08-01T09:34:45.251931",
|
|
81
|
+
"imgsz" : "[256, 384]",
|
|
82
82
|
"batch" : "1",
|
|
83
83
|
"names" : "{0: 'id_mrz_image', 1: 'mrz_2', 2: 'mrz_3', 3: 'id_mrz', 4: 'id_image', 5: 'face', 6: 'vin', 7: 'signature'}"
|
|
84
84
|
},
|
|
Binary file
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"stride" : "32",
|
|
75
75
|
"com.github.apple.coremltools.version" : "7.2",
|
|
76
76
|
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
|
|
77
|
-
"docs" : "https:\/\/docs.ultralytics.com",
|
|
78
|
-
"task" : "obb",
|
|
79
77
|
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
|
78
|
+
"task" : "obb",
|
|
79
|
+
"docs" : "https:\/\/docs.ultralytics.com",
|
|
80
80
|
"imgsz" : "[384, 512]",
|
|
81
81
|
"date" : "2024-08-01T17:19:19.267647",
|
|
82
82
|
"batch" : "1",
|
|
@@ -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</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>
|
|
18
17
|
</array>
|
|
19
18
|
<key>SupportedPlatform</key>
|
|
20
19
|
<string>ios</string>
|
|
21
|
-
<key>SupportedPlatformVariant</key>
|
|
22
|
-
<string>simulator</string>
|
|
23
20
|
</dict>
|
|
24
21
|
<dict>
|
|
25
22
|
<key>BinaryPath</key>
|
|
26
23
|
<string>BarkoderSDK.framework/BarkoderSDK</string>
|
|
27
24
|
<key>LibraryIdentifier</key>
|
|
28
|
-
<string>ios-
|
|
25
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
29
26
|
<key>LibraryPath</key>
|
|
30
27
|
<string>BarkoderSDK.framework</string>
|
|
31
28
|
<key>SupportedArchitectures</key>
|
|
32
29
|
<array>
|
|
33
30
|
<string>arm64</string>
|
|
31
|
+
<string>x86_64</string>
|
|
34
32
|
</array>
|
|
35
33
|
<key>SupportedPlatform</key>
|
|
36
34
|
<string>ios</string>
|
|
35
|
+
<key>SupportedPlatformVariant</key>
|
|
36
|
+
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
@@ -511,6 +511,7 @@ SWIFT_PROTOCOL("_TtP11BarkoderSDK22BarkoderResultDelegate_")
|
|
|
511
511
|
@end
|
|
512
512
|
|
|
513
513
|
@class NSCoder;
|
|
514
|
+
enum BarkoderCameraPosition : NSInteger;
|
|
514
515
|
|
|
515
516
|
SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
|
|
516
517
|
@interface BarkoderView : UIView <BarkoderPreviewFramesDelegate>
|
|
@@ -532,6 +533,10 @@ SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
|
|
|
532
533
|
- (void)pauseScanning;
|
|
533
534
|
/// Sets the zoom factor for the device’s camera, adjusting the level of zoom during barcode scanning
|
|
534
535
|
- (void)setZoomFactor:(float)zoomFactor;
|
|
536
|
+
/// Sets the camera to be used for scanning (back/front).
|
|
537
|
+
/// \param position The desired camera position. Default is back
|
|
538
|
+
///
|
|
539
|
+
- (void)setCamera:(enum BarkoderCameraPosition)position;
|
|
535
540
|
/// Enables or disables the device’s flash (torch) for illumination during barcode scanning
|
|
536
541
|
/// \param enabled [true, false]. Default value is false
|
|
537
542
|
///
|
|
@@ -566,6 +571,14 @@ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
|
|
|
566
571
|
BarkoderResolutionUHD = 2,
|
|
567
572
|
};
|
|
568
573
|
|
|
574
|
+
/// Represents the available camera’s for the BarkoderView.
|
|
575
|
+
typedef SWIFT_ENUM(NSInteger, BarkoderCameraPosition, open) {
|
|
576
|
+
/// Uses the device’s back camera.
|
|
577
|
+
BarkoderCameraPositionBACK = 0,
|
|
578
|
+
/// Uses the device’s front (selfie) camera.
|
|
579
|
+
BarkoderCameraPositionFRONT = 1,
|
|
580
|
+
};
|
|
581
|
+
|
|
569
582
|
|
|
570
583
|
|
|
571
584
|
|