barkoder-nativescript 1.6.1 → 1.6.3

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.
Files changed (51) hide show
  1. package/barkoder-nativescript.android.ts +58 -1
  2. package/barkoder-nativescript.common.ts +28 -1
  3. package/barkoder-nativescript.ios.ts +56 -0
  4. package/package.json +1 -1
  5. package/platforms/android/barkoder.aar +0 -0
  6. package/platforms/ios/Barkoder.xcframework/Info.plist +5 -5
  7. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Barkoder +0 -0
  8. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Headers/iBarkoder.h +76 -3
  9. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Info.plist +0 -0
  10. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Modules/module.modulemap +0 -0
  11. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/default.metallib +0 -0
  12. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/coremldata.bin +0 -0
  13. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +3 -3
  14. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/coremldata.bin +0 -0
  15. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +3 -3
  16. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder +0 -0
  17. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Headers/iBarkoder.h +76 -3
  18. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Info.plist +0 -0
  19. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Modules/module.modulemap +0 -0
  20. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +17 -13
  21. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/default.metallib +0 -0
  22. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/coremldata.bin +0 -0
  23. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +3 -3
  24. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/coremldata.bin +0 -0
  25. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +3 -3
  26. package/platforms/ios/BarkoderSDK.xcframework/Info.plist +5 -5
  27. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/BarkoderSDK +0 -0
  28. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +14 -0
  29. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Info.plist +0 -0
  30. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.abi.json +454 -70
  31. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +16 -1
  32. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  33. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftinterface +16 -1
  34. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/beep.wav +0 -0
  35. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json +98 -0
  36. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/BarkoderSDK +0 -0
  37. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +28 -0
  38. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Info.plist +0 -0
  39. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +454 -70
  40. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +16 -1
  41. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  42. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +16 -1
  43. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +454 -70
  44. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +16 -1
  45. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  46. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +16 -1
  47. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +29 -29
  48. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/beep.wav +0 -0
  49. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/templates.json +98 -0
  50. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/beep.mp3 +0 -0
  51. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/beep.mp3 +0 -0
@@ -634,6 +634,26 @@ export class BarkoderViewAndroid extends View {
634
634
  return this.bkdView.config.getDecoderConfig().Dotcode.enabled;
635
635
  case BarkoderConstants.DecoderType.IDDocument:
636
636
  return this.bkdView.config.getDecoderConfig().IDDocument.enabled;
637
+ case BarkoderConstants.DecoderType.Databar14:
638
+ return this.bkdView.config.getDecoderConfig().Databar14.enabled;
639
+ case BarkoderConstants.DecoderType.DatabarLimited:
640
+ return this.bkdView.config.getDecoderConfig().DatabarLimited.enabled;
641
+ case BarkoderConstants.DecoderType.DatabarExpanded:
642
+ return this.bkdView.config.getDecoderConfig().DatabarExpanded.enabled;
643
+ case BarkoderConstants.DecoderType.PostalIMB:
644
+ return this.bkdView.config.getDecoderConfig().PostalIMB.enabled;
645
+ case BarkoderConstants.DecoderType.Planet:
646
+ return this.bkdView.config.getDecoderConfig().Planet.enabled;
647
+ case BarkoderConstants.DecoderType.Postnet:
648
+ return this.bkdView.config.getDecoderConfig().Postnet.enabled;
649
+ case BarkoderConstants.DecoderType.AustralianPost:
650
+ return this.bkdView.config.getDecoderConfig().AustralianPost.enabled;
651
+ case BarkoderConstants.DecoderType.RoyalMail:
652
+ return this.bkdView.config.getDecoderConfig().RoyalMail.enabled;
653
+ case BarkoderConstants.DecoderType.KIX:
654
+ return this.bkdView.config.getDecoderConfig().KIX.enabled;
655
+ case BarkoderConstants.DecoderType.JapanesePost:
656
+ return this.bkdView.config.getDecoderConfig().JapanesePost.enabled;
637
657
  }
638
658
  }
639
659
 
@@ -672,6 +692,13 @@ export class BarkoderViewAndroid extends View {
672
692
  this.bkdView.config.getDecoderConfig().Databar14.enabled = false;
673
693
  this.bkdView.config.getDecoderConfig().DatabarLimited.enabled = false;
674
694
  this.bkdView.config.getDecoderConfig().DatabarExpanded.enabled = false;
695
+ this.bkdView.config.getDecoderConfig().PostalIMB.enabled = false;
696
+ this.bkdView.config.getDecoderConfig().Postnet.enabled = false;
697
+ this.bkdView.config.getDecoderConfig().Planet.enabled = false;
698
+ this.bkdView.config.getDecoderConfig().AustralianPost.enabled = false;
699
+ this.bkdView.config.getDecoderConfig().RoyalMail.enabled = false;
700
+ this.bkdView.config.getDecoderConfig().KIX.enabled = false;
701
+ this.bkdView.config.getDecoderConfig().JapanesePost.enabled = false;
675
702
  decoders.forEach((dt: BarkoderConstants.DecoderType) => {
676
703
  switch (dt) {
677
704
  case BarkoderConstants.DecoderType.Aztec:
@@ -767,6 +794,27 @@ export class BarkoderViewAndroid extends View {
767
794
  case BarkoderConstants.DecoderType.DatabarLimited:
768
795
  this.bkdView.config.getDecoderConfig().DatabarLimited.enabled = true;
769
796
  break;
797
+ case BarkoderConstants.DecoderType.PostalIMB:
798
+ this.bkdView.config.getDecoderConfig().PostalIMB.enabled = true;
799
+ break;
800
+ case BarkoderConstants.DecoderType.Postnet:
801
+ this.bkdView.config.getDecoderConfig().Postnet.enabled = true;
802
+ break;
803
+ case BarkoderConstants.DecoderType.Planet:
804
+ this.bkdView.config.getDecoderConfig().Planet.enabled = true;
805
+ break;
806
+ case BarkoderConstants.DecoderType.AustralianPost:
807
+ this.bkdView.config.getDecoderConfig().AustralianPost.enabled = true;
808
+ break;
809
+ case BarkoderConstants.DecoderType.RoyalMail:
810
+ this.bkdView.config.getDecoderConfig().RoyalMail.enabled = true;
811
+ break;
812
+ case BarkoderConstants.DecoderType.KIX:
813
+ this.bkdView.config.getDecoderConfig().KIX.enabled = true;
814
+ break;
815
+ case BarkoderConstants.DecoderType.JapanesePost:
816
+ this.bkdView.config.getDecoderConfig().JapanesePost.enabled = true;
817
+ break;
770
818
  default:
771
819
  break;
772
820
  }
@@ -1231,7 +1279,16 @@ export class BarkoderViewAndroid extends View {
1231
1279
  }
1232
1280
 
1233
1281
  setVideoStabilization(enabled: boolean) : void {
1234
- this.bkdView.setVideoStabilization(enabled)
1282
+ this.bkdView.setVideoStabilization(enabled);
1283
+ }
1284
+
1285
+ setCamera(cameraPosition: BarkoderConstants.BarkoderCameraPosition) : void {
1286
+ if(cameraPosition == BarkoderConstants.BarkoderCameraPosition.Front) {
1287
+ this.bkdView.setCamera(com.barkoder.enums.BarkoderCameraPosition.FRONT);
1288
+ } else if (cameraPosition == BarkoderConstants.BarkoderCameraPosition.Back) {
1289
+ this.bkdView.setCamera(com.barkoder.enums.BarkoderCameraPosition.BACK);
1290
+ }
1291
+
1235
1292
  }
1236
1293
 
1237
1294
 
@@ -52,7 +52,15 @@ export enum DecoderType {
52
52
  IDDocument = 28,
53
53
  Databar14 = 29,
54
54
  DatabarLimited = 30,
55
- DatabarExpanded = 31
55
+ DatabarExpanded = 31,
56
+ PostalIMB = 32,
57
+ Postnet = 33,
58
+ Planet = 34,
59
+ AustralianPost = 35,
60
+ RoyalMail = 36,
61
+ KIX = 37,
62
+ JapanesePost = 38
63
+
56
64
  }
57
65
 
58
66
  export enum FormattingType {
@@ -96,6 +104,11 @@ export enum Code39ChecksumType {
96
104
  Enabled = 1
97
105
  }
98
106
 
107
+ export enum BarkoderCameraPosition {
108
+ Back = 0,
109
+ Front = 1
110
+ }
111
+
99
112
  export class Common extends Observable {
100
113
 
101
114
  }
@@ -191,6 +204,13 @@ export class DekoderConfig {
191
204
  databar14?: BarcodeConfig;
192
205
  databarExpanded?: BarcodeConfig;
193
206
  databarLimited?: BarcodeConfig;
207
+ postalIMB?: BarcodeConfig;
208
+ postnet?: BarcodeConfig;
209
+ planet?: BarcodeConfig;
210
+ australianPost?: BarcodeConfig;
211
+ royalMail?: BarcodeConfig;
212
+ kix?: BarcodeConfig;
213
+ japanasePost?: BarcodeConfig;
194
214
  general?: GeneralSettings;
195
215
 
196
216
  constructor(config: Partial<DekoderConfig>) {
@@ -231,6 +251,13 @@ export class DekoderConfig {
231
251
  'Databar 14': this.databar14?.toMap(),
232
252
  'Databar Expanded': this.databarExpanded?.toMap(),
233
253
  'Databar Limited': this.databarLimited?.toMap(),
254
+ 'Postal IMB': this.postalIMB?.toMap(),
255
+ 'Postnet': this.postnet?.toMap(),
256
+ 'Planet': this.planet?.toMap(),
257
+ 'Australian Post': this.australianPost?.toMap(),
258
+ 'Royal Mail': this.royalMail?.toMap(),
259
+ 'KIX': this.kix?.toMap(),
260
+ 'Japanase Post': this.japanasePost?.toMap(),
234
261
  'general': this.general?.toMap()
235
262
  }
236
263
 
@@ -580,6 +580,26 @@ export class BarkoderViewIOS extends View {
580
580
  return this.bkdView.config.decoderConfig.dotcode.enabled;
581
581
  case BarkoderConstants.DecoderType.IDDocument:
582
582
  return this.bkdView.config.decoderConfig.idDocument.enabled;
583
+ case BarkoderConstants.DecoderType.DatabarLimited:
584
+ return this.bkdView.config.decoderConfig.databarLimited.enabled;
585
+ case BarkoderConstants.DecoderType.DatabarExpanded:
586
+ return this.bkdView.config.decoderConfig.databarExpanded.enabled;
587
+ case BarkoderConstants.DecoderType.Databar14:
588
+ return this.bkdView.config.decoderConfig.databar14.enabled;
589
+ case BarkoderConstants.DecoderType.PostalIMB:
590
+ return this.bkdView.config.decoderConfig.postalIMB.enabled;
591
+ case BarkoderConstants.DecoderType.Planet:
592
+ return this.bkdView.config.decoderConfig.planet.enabled;
593
+ case BarkoderConstants.DecoderType.Postnet:
594
+ return this.bkdView.config.decoderConfig.postnet.enabled;
595
+ case BarkoderConstants.DecoderType.AustralianPost:
596
+ return this.bkdView.config.decoderConfig.australianPost.enabled;
597
+ case BarkoderConstants.DecoderType.RoyalMail:
598
+ return this.bkdView.config.decoderConfig.royalMail.enabled;
599
+ case BarkoderConstants.DecoderType.KIX:
600
+ return this.bkdView.config.decoderConfig.kix.enabled;
601
+ case BarkoderConstants.DecoderType.JapanesePost:
602
+ return this.bkdView.config.decoderConfig.japanasePost.enabled;
583
603
  }
584
604
  }
585
605
 
@@ -619,6 +639,13 @@ export class BarkoderViewIOS extends View {
619
639
  this.bkdView.config.decoderConfig.databar14.enabled = false;
620
640
  this.bkdView.config.decoderConfig.databarLimited.enabled = false;
621
641
  this.bkdView.config.decoderConfig.databarExpanded.enabled = false;
642
+ this.bkdView.config.decoderConfig.postalIMB.enabled = false;
643
+ this.bkdView.config.decoderConfig.planet.enabled = false;
644
+ this.bkdView.config.decoderConfig.postnet.enabled = false;
645
+ this.bkdView.config.decoderConfig.australianPost.enabled = false;
646
+ this.bkdView.config.decoderConfig.royalMail.enabled = false;
647
+ this.bkdView.config.decoderConfig.kix.enabled = false;
648
+ this.bkdView.config.decoderConfig.japanesePost.enabled = false;
622
649
  decoders.forEach((dt: BarkoderConstants.DecoderType) => {
623
650
  switch (dt) {
624
651
  case BarkoderConstants.DecoderType.Aztec:
@@ -714,6 +741,27 @@ export class BarkoderViewIOS extends View {
714
741
  case BarkoderConstants.DecoderType.DatabarLimited:
715
742
  this.bkdView.config.decoderConfig.databarLimited.enabled = true;
716
743
  break;
744
+ case BarkoderConstants.DecoderType.PostalIMB:
745
+ this.bkdView.config.decoderConfig.postalIMB.enabled = true;
746
+ break;
747
+ case BarkoderConstants.DecoderType.Planet:
748
+ this.bkdView.config.decoderConfig.planet.enabled = true;
749
+ break;
750
+ case BarkoderConstants.DecoderType.Postnet:
751
+ this.bkdView.config.decoderConfig.postnet.enabled = true;
752
+ break;
753
+ case BarkoderConstants.DecoderType.AustralianPost:
754
+ this.bkdView.config.decoderConfig.australianPost.enabled = true;
755
+ break;
756
+ case BarkoderConstants.DecoderType.RoyalMail:
757
+ this.bkdView.config.decoderConfig.royalMail.enabled = true;
758
+ break;
759
+ case BarkoderConstants.DecoderType.KIX:
760
+ this.bkdView.config.decoderConfig.kix.enabled = true;
761
+ break;
762
+ case BarkoderConstants.DecoderType.JapanesePost:
763
+ this.bkdView.config.decoderConfig.japanesePost.enabled = true;
764
+ break;
717
765
  default:
718
766
  break;
719
767
  }
@@ -1247,6 +1295,14 @@ export class BarkoderViewIOS extends View {
1247
1295
  this.bkdView.setVideoStabilization(enabled)
1248
1296
  }
1249
1297
 
1298
+ setCamera(cameraPosition: BarkoderConstants.BarkoderCameraPosition): void {
1299
+ if(cameraPosition == BarkoderConstants.BarkoderCameraPosition.Front) {
1300
+ this.bkdView.setCamera(BarkoderCameraPosition.FRONT);
1301
+ } else if (cameraPosition == BarkoderConstants.BarkoderCameraPosition.Back) {
1302
+ this.bkdView.setCamera(BarkoderCameraPosition.BACK);
1303
+ }
1304
+ }
1305
+
1250
1306
 
1251
1307
  /**
1252
1308
  * Configures the Barkoder functionality based on the provided configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barkoder-nativescript",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "description": "Nativescript support for Barkoder - a Barcode Scanner SDK for the modern enterprise.",
5
5
  "main": "barkoder-nativescript",
6
6
  "typings": "index.d.ts",
Binary file
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>Barkoder.framework/Barkoder</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64</string>
11
+ <string>ios-arm64_x86_64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>Barkoder.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>Barkoder.framework/Barkoder</string>
24
27
  <key>LibraryIdentifier</key>
25
- <string>ios-arm64_x86_64-simulator</string>
28
+ <string>ios-arm64</string>
26
29
  <key>LibraryPath</key>
27
30
  <string>Barkoder.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>
@@ -66,7 +66,15 @@ typedef enum {
66
66
  IDDocument,
67
67
  Databar14,
68
68
  DatabarLimited,
69
- DatabarExpanded
69
+ DatabarExpanded,
70
+ PostalIMB,
71
+ Postnet,
72
+ Planet,
73
+ AustralianPost,
74
+ RoyalMail,
75
+ KIX,
76
+ JapanesePost
77
+
70
78
  } DecoderType;
71
79
 
72
80
 
@@ -74,7 +82,8 @@ typedef enum {
74
82
  Disabled = 0,
75
83
  Automatic,
76
84
  GS1,
77
- AAMVA
85
+ AAMVA,
86
+ SADL
78
87
  } Formatting;
79
88
 
80
89
  //==========================================================================
@@ -209,6 +218,56 @@ typedef enum {
209
218
  - (id)initWithDecoderType:(DecoderType)decoderType;
210
219
  @end
211
220
 
221
+ //==========================================================================
222
+ // Postal IMB Config
223
+ //==========================================================================
224
+ @interface PostalIMBConfig : SpecificConfig
225
+ - (id)initWithDecoderType:(DecoderType)decoderType;
226
+ @end
227
+
228
+ //==========================================================================
229
+ // Postnet Config
230
+ //==========================================================================
231
+ @interface PostnetConfig : SpecificConfig
232
+ - (id)initWithDecoderType:(DecoderType)decoderType;
233
+ @end
234
+
235
+ //==========================================================================
236
+ // Planet Config
237
+ //==========================================================================
238
+ @interface PlanetConfig : SpecificConfig
239
+ - (id)initWithDecoderType:(DecoderType)decoderType;
240
+ @end
241
+
242
+ //==========================================================================
243
+ // AustralianPost Config
244
+ //==========================================================================
245
+ @interface AustralianPostConfig : SpecificConfig
246
+ - (id)initWithDecoderType:(DecoderType)decoderType;
247
+ @end
248
+
249
+ //==========================================================================
250
+ // Royal Mail Config
251
+ //==========================================================================
252
+ @interface RoyalMailConfig : SpecificConfig
253
+ - (id)initWithDecoderType:(DecoderType)decoderType;
254
+ @end
255
+
256
+ //==========================================================================
257
+ // Japanese Post Config
258
+ //==========================================================================
259
+ @interface JapanesePostConfig : SpecificConfig
260
+ - (id)initWithDecoderType:(DecoderType)decoderType;
261
+ @end
262
+
263
+
264
+ //==========================================================================
265
+ // KIX Config
266
+ //==========================================================================
267
+ @interface KIXConfig : SpecificConfig
268
+ - (id)initWithDecoderType:(DecoderType)decoderType;
269
+ @end
270
+
212
271
  //==========================================================================
213
272
  // Dotcode Config
214
273
  //==========================================================================
@@ -453,6 +512,13 @@ typedef enum {
453
512
  @property (nonatomic, readonly, retain) Databar14Config* _Nonnull databar14;
454
513
  @property (nonatomic, readonly, retain) DatabarLimitedConfig* _Nonnull databarLimited;
455
514
  @property (nonatomic, readonly, retain) DatabarExpandedConfig* _Nonnull databarExpanded;
515
+ @property (nonatomic, readonly, retain) PostalIMBConfig* _Nonnull postalIMB;
516
+ @property (nonatomic, readonly, retain) PostnetConfig* _Nonnull postnet;
517
+ @property (nonatomic, readonly, retain) PlanetConfig* _Nonnull planet;
518
+ @property (nonatomic, readonly, retain) AustralianPostConfig* _Nonnull australianPost;
519
+ @property (nonatomic, readonly, retain) RoyalMailConfig* _Nonnull royalMail;
520
+ @property (nonatomic, readonly, retain) JapanesePostConfig* _Nonnull japanesePost;
521
+ @property (nonatomic, readonly, retain) KIXConfig* _Nonnull kix;
456
522
 
457
523
  @property (nonatomic, readonly, retain) IDDocumentConfig* _Nonnull idDocument;
458
524
 
@@ -519,7 +585,14 @@ typedef enum {
519
585
  BT_ID_MRZ3,
520
586
  BT_Databar14,
521
587
  BT_DatabarLimited,
522
- BT_DatabarExpanded
588
+ BT_DatabarExpanded,
589
+ BT_PostalIMB,
590
+ BT_Postnet,
591
+ BT_Planet,
592
+ BT_AustralianPost,
593
+ BT_RoyalMail,
594
+ BT_KIX,
595
+ BT_JapanesePost
523
596
 
524
597
  } BarcodeType;
525
598
 
@@ -71,12 +71,12 @@
71
71
  }
72
72
  ],
73
73
  "userDefinedMetadata" : {
74
- "com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
75
74
  "stride" : "32",
76
- "com.github.apple.coremltools.source_dialect" : "TorchScript",
75
+ "com.github.apple.coremltools.version" : "7.2",
76
+ "com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
77
77
  "docs" : "https:\/\/docs.ultralytics.com",
78
78
  "task" : "obb",
79
- "com.github.apple.coremltools.version" : "7.2",
79
+ "com.github.apple.coremltools.source_dialect" : "TorchScript",
80
80
  "imgsz" : "[256, 384]",
81
81
  "date" : "2024-08-01T09:34:45.251931",
82
82
  "batch" : "1",
@@ -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
- "com.github.apple.coremltools.source_dialect" : "TorchScript",
77
77
  "docs" : "https:\/\/docs.ultralytics.com",
78
78
  "task" : "obb",
79
- "stride" : "32",
80
- "date" : "2024-08-01T17:19:19.267647",
79
+ "com.github.apple.coremltools.source_dialect" : "TorchScript",
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
  },
@@ -66,7 +66,15 @@ typedef enum {
66
66
  IDDocument,
67
67
  Databar14,
68
68
  DatabarLimited,
69
- DatabarExpanded
69
+ DatabarExpanded,
70
+ PostalIMB,
71
+ Postnet,
72
+ Planet,
73
+ AustralianPost,
74
+ RoyalMail,
75
+ KIX,
76
+ JapanesePost
77
+
70
78
  } DecoderType;
71
79
 
72
80
 
@@ -74,7 +82,8 @@ typedef enum {
74
82
  Disabled = 0,
75
83
  Automatic,
76
84
  GS1,
77
- AAMVA
85
+ AAMVA,
86
+ SADL
78
87
  } Formatting;
79
88
 
80
89
  //==========================================================================
@@ -209,6 +218,56 @@ typedef enum {
209
218
  - (id)initWithDecoderType:(DecoderType)decoderType;
210
219
  @end
211
220
 
221
+ //==========================================================================
222
+ // Postal IMB Config
223
+ //==========================================================================
224
+ @interface PostalIMBConfig : SpecificConfig
225
+ - (id)initWithDecoderType:(DecoderType)decoderType;
226
+ @end
227
+
228
+ //==========================================================================
229
+ // Postnet Config
230
+ //==========================================================================
231
+ @interface PostnetConfig : SpecificConfig
232
+ - (id)initWithDecoderType:(DecoderType)decoderType;
233
+ @end
234
+
235
+ //==========================================================================
236
+ // Planet Config
237
+ //==========================================================================
238
+ @interface PlanetConfig : SpecificConfig
239
+ - (id)initWithDecoderType:(DecoderType)decoderType;
240
+ @end
241
+
242
+ //==========================================================================
243
+ // AustralianPost Config
244
+ //==========================================================================
245
+ @interface AustralianPostConfig : SpecificConfig
246
+ - (id)initWithDecoderType:(DecoderType)decoderType;
247
+ @end
248
+
249
+ //==========================================================================
250
+ // Royal Mail Config
251
+ //==========================================================================
252
+ @interface RoyalMailConfig : SpecificConfig
253
+ - (id)initWithDecoderType:(DecoderType)decoderType;
254
+ @end
255
+
256
+ //==========================================================================
257
+ // Japanese Post Config
258
+ //==========================================================================
259
+ @interface JapanesePostConfig : SpecificConfig
260
+ - (id)initWithDecoderType:(DecoderType)decoderType;
261
+ @end
262
+
263
+
264
+ //==========================================================================
265
+ // KIX Config
266
+ //==========================================================================
267
+ @interface KIXConfig : SpecificConfig
268
+ - (id)initWithDecoderType:(DecoderType)decoderType;
269
+ @end
270
+
212
271
  //==========================================================================
213
272
  // Dotcode Config
214
273
  //==========================================================================
@@ -453,6 +512,13 @@ typedef enum {
453
512
  @property (nonatomic, readonly, retain) Databar14Config* _Nonnull databar14;
454
513
  @property (nonatomic, readonly, retain) DatabarLimitedConfig* _Nonnull databarLimited;
455
514
  @property (nonatomic, readonly, retain) DatabarExpandedConfig* _Nonnull databarExpanded;
515
+ @property (nonatomic, readonly, retain) PostalIMBConfig* _Nonnull postalIMB;
516
+ @property (nonatomic, readonly, retain) PostnetConfig* _Nonnull postnet;
517
+ @property (nonatomic, readonly, retain) PlanetConfig* _Nonnull planet;
518
+ @property (nonatomic, readonly, retain) AustralianPostConfig* _Nonnull australianPost;
519
+ @property (nonatomic, readonly, retain) RoyalMailConfig* _Nonnull royalMail;
520
+ @property (nonatomic, readonly, retain) JapanesePostConfig* _Nonnull japanesePost;
521
+ @property (nonatomic, readonly, retain) KIXConfig* _Nonnull kix;
456
522
 
457
523
  @property (nonatomic, readonly, retain) IDDocumentConfig* _Nonnull idDocument;
458
524
 
@@ -519,7 +585,14 @@ typedef enum {
519
585
  BT_ID_MRZ3,
520
586
  BT_Databar14,
521
587
  BT_DatabarLimited,
522
- BT_DatabarExpanded
588
+ BT_DatabarExpanded,
589
+ BT_PostalIMB,
590
+ BT_Postnet,
591
+ BT_Planet,
592
+ BT_AustralianPost,
593
+ BT_RoyalMail,
594
+ BT_KIX,
595
+ BT_JapanesePost
523
596
 
524
597
  } BarcodeType;
525
598
 
@@ -4,17 +4,21 @@
4
4
  <dict>
5
5
  <key>files</key>
6
6
  <dict>
7
+ <key>.DS_Store</key>
8
+ <data>
9
+ P6qZVTGE53h9Lxb+J/uyXkv1bqY=
10
+ </data>
7
11
  <key>Headers/Barkoder.h</key>
8
12
  <data>
9
13
  9tBmdiEM3Piw6SdXbESop6X7Zac=
10
14
  </data>
11
15
  <key>Headers/iBarkoder.h</key>
12
16
  <data>
13
- HWvyfRx0vJw54YvowmacOsMcCZo=
17
+ SZhNgFi7RtRZqv2nkN1gkSWaMi0=
14
18
  </data>
15
19
  <key>Info.plist</key>
16
20
  <data>
17
- HpPzC0E5Z0vYLtrwpyYuK/ISng8=
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
- SK4RwTAvjikWlg3ipM8cmOmOvuQ=
29
+ g0rvIZOVkgeBTdCqKFiJdE0xH40=
26
30
  </data>
27
31
  <key>float16_384x256.mlmodelc/analytics/coremldata.bin</key>
28
32
  <data>
@@ -30,11 +34,11 @@
30
34
  </data>
31
35
  <key>float16_384x256.mlmodelc/coremldata.bin</key>
32
36
  <data>
33
- DhqAtxD028QsTfplUYIAps/FbHI=
37
+ 4acfvjtKB+QXIFN1DCZFn4BckhM=
34
38
  </data>
35
39
  <key>float16_384x256.mlmodelc/metadata.json</key>
36
40
  <data>
37
- N1FDjs1/pfpn4wosj/GpUePmZlU=
41
+ an14sqZLrrHp3mJLYRO7VdINw0w=
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
- 2AAFX/c1bbHK+W6ihEJUM5YoH3E=
57
+ PpHz5TTc8QHl8SBy3+sE1KII3Mc=
54
58
  </data>
55
59
  <key>float16_512x384.mlmodelc/metadata.json</key>
56
60
  <data>
57
- 6Sc0q3tN6csNFo1gyM1DdvtpHUc=
61
+ lANcsTOGAN+Avg4RsZuIUnf0YVw=
58
62
  </data>
59
63
  <key>float16_512x384.mlmodelc/model.mil</key>
60
64
  <data>
@@ -86,7 +90,7 @@
86
90
  <dict>
87
91
  <key>hash2</key>
88
92
  <data>
89
- LRZMgxoVr5DNV9oE8vKV1dCaffBCYCVMPALCEdPo8Q4=
93
+ y6miqUcIdmuwFuj3r3k8dHXBYmyuhBrLViEyYWPtuPU=
90
94
  </data>
91
95
  </dict>
92
96
  <key>Modules/module.modulemap</key>
@@ -100,7 +104,7 @@
100
104
  <dict>
101
105
  <key>hash2</key>
102
106
  <data>
103
- EnKjCsxhIQYquiSYcnox8C37lezGw1JDMj8J7ybQNFY=
107
+ KTc+Wq8krmIlx2re2CO30GCnkx1qk10cQcojmYEUkSc=
104
108
  </data>
105
109
  </dict>
106
110
  <key>float16_384x256.mlmodelc/analytics/coremldata.bin</key>
@@ -114,14 +118,14 @@
114
118
  <dict>
115
119
  <key>hash2</key>
116
120
  <data>
117
- d2P3cicPTjX12IQwvuqBets8rVTV6K52vXkuN04+XxU=
121
+ Khn5zu+up/5FpEHcufxmZI4MDDb7NMtGijeqPiFrgyE=
118
122
  </data>
119
123
  </dict>
120
124
  <key>float16_384x256.mlmodelc/metadata.json</key>
121
125
  <dict>
122
126
  <key>hash2</key>
123
127
  <data>
124
- kFdpsZsvkYqsbE0UZLsYr8gpvSX8Tlvg+JWg0nqHQR8=
128
+ VdQKGrmKPXUIeh9lWgIWK5mNsDTgi5MdZ3Kd4490VyQ=
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
- zYudbFEcMA6g9W+4WaUFEv4qG9/Mi969dWjFFQaMJKc=
156
+ ytxs9CfML0oDNZTtE4loTlHPKhli+oPL97vnLH8Nhmc=
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
- znNv6UVW9ClzS+Uaw2q3kvUgwhiW0tMLC63yY1Iv9sk=
163
+ OmPT2ZIzT4d3j19XzODQyt9+n8Qr5q2tKxLdEVJ0w18=
160
164
  </data>
161
165
  </dict>
162
166
  <key>float16_512x384.mlmodelc/model.mil</key>