barkoder-nativescript 1.5.1 → 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.
Files changed (58) hide show
  1. package/README.md +115 -0
  2. package/barkoder-nativescript.android.ts +65 -0
  3. package/barkoder-nativescript.common.ts +55 -0
  4. package/barkoder-nativescript.ios.ts +68 -0
  5. package/package.json +1 -1
  6. package/platforms/android/barkoder.aar +0 -0
  7. package/platforms/android/barkoder_nativescript.aar +0 -0
  8. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Barkoder +0 -0
  9. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Headers/iBarkoder.h +2 -0
  10. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder +0 -0
  11. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Headers/iBarkoder.h +2 -0
  12. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +10 -10
  13. package/platforms/ios/BarkoderSDK.xcframework/Info.plist +5 -5
  14. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/BarkoderSDK +0 -0
  15. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +12 -1
  16. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Info.plist +0 -0
  17. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.abi.json +699 -3749
  18. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +19 -18
  19. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  20. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftinterface +19 -18
  21. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json +14 -3
  22. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/BarkoderSDK +0 -0
  23. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +24 -2
  24. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Info.plist +0 -0
  25. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +699 -3749
  26. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +19 -18
  27. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  28. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +19 -18
  29. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +699 -3749
  30. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +19 -18
  31. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  32. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +19 -18
  33. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +25 -25
  34. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/templates.json +14 -3
  35. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/analytics/coremldata.bin +0 -0
  36. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/coremldata.bin +0 -0
  37. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +0 -85
  38. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/model.mil +0 -753
  39. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/weights/weight.bin +0 -0
  40. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/analytics/coremldata.bin +0 -0
  41. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/coremldata.bin +0 -0
  42. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +0 -85
  43. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/model.mil +0 -753
  44. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/weights/weight.bin +0 -0
  45. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/mrz.traineddata +0 -0
  46. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/mrzfast.traineddata +0 -0
  47. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/analytics/coremldata.bin +0 -0
  48. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/coremldata.bin +0 -0
  49. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +0 -85
  50. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/model.mil +0 -753
  51. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/weights/weight.bin +0 -0
  52. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/analytics/coremldata.bin +0 -0
  53. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/coremldata.bin +0 -0
  54. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +0 -85
  55. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/model.mil +0 -753
  56. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/weights/weight.bin +0 -0
  57. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/mrz.traineddata +0 -0
  58. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/mrzfast.traineddata +0 -0
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
3
- // swift-module-flags: -target arm64-apple-ios13.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name BarkoderSDK
4
- // swift-module-flags-ignorable: -enable-bare-slash-regex
2
+ // swift-compiler-version: Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
3
+ // swift-module-flags: -target arm64-apple-ios13.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BarkoderSDK
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface
5
5
  import AVFoundation
6
6
  import Barkoder
7
7
  @_exported import BarkoderSDK
@@ -66,7 +66,7 @@ extension UIKit.UIImage {
66
66
  @objc public protocol BarkoderPerformanceDelegate {
67
67
  @objc optional func performanceReceived(fps: Swift.Float, dps: Swift.Float)
68
68
  }
69
- @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc @_Concurrency.MainActor(unsafe) public class BarkoderView : UIKit.UIView, BarkoderSDK.BarkoderPreviewFramesDelegate {
69
+ @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc @_Concurrency.MainActor @preconcurrency public class BarkoderView : UIKit.UIView, BarkoderSDK.BarkoderPreviewFramesDelegate {
70
70
  @objc public enum BarkoderResolution : Swift.Int {
71
71
  case normal
72
72
  case high
@@ -76,23 +76,23 @@ extension UIKit.UIImage {
76
76
  get
77
77
  }
78
78
  }
79
- @objc @_Concurrency.MainActor(unsafe) public var config: BarkoderSDK.BarkoderConfig? {
79
+ @objc @_Concurrency.MainActor @preconcurrency public var config: BarkoderSDK.BarkoderConfig? {
80
80
  @objc get
81
81
  @objc set
82
82
  }
83
- @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
84
- @objc @_Concurrency.MainActor(unsafe) public func startCamera()
85
- @objc @_Concurrency.MainActor(unsafe) public func setPreviewFramesDelegate(_ delegate: (any BarkoderSDK.BarkoderPreviewFramesDelegate)?)
86
- @objc @_Concurrency.MainActor(unsafe) public func setBarkoderPerformanceDelegate(_ delegate: (any BarkoderSDK.BarkoderPerformanceDelegate)?)
87
- @objc @_Concurrency.MainActor(unsafe) public func startScanning(_ resultDelegate: any BarkoderSDK.BarkoderResultDelegate) throws
88
- @objc @_Concurrency.MainActor(unsafe) public func stopScanning()
89
- @objc @_Concurrency.MainActor(unsafe) public func pauseScanning()
90
- @objc @_Concurrency.MainActor(unsafe) public func setZoomFactor(_ zoomFactor: Swift.Float)
91
- @objc @_Concurrency.MainActor(unsafe) public func setFlash(_ enabled: Swift.Bool)
92
- @objc @_Concurrency.MainActor(unsafe) public func getMaxZoomFactor(_ completion: @escaping (_ maxZoomFactor: Swift.Float) -> Swift.Void)
93
- @objc @_Concurrency.MainActor(unsafe) public func isFlashAvailable(_ completion: @escaping (_ flashAvailable: Swift.Bool) -> Swift.Void)
94
- @_Concurrency.MainActor(unsafe) @objc public func cameraFrameReceived(sampleBuffer: CoreMedia.CMSampleBuffer)
95
- @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
83
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public init(frame: CoreFoundation.CGRect)
84
+ @objc @_Concurrency.MainActor @preconcurrency public func startCamera()
85
+ @objc @_Concurrency.MainActor @preconcurrency public func setPreviewFramesDelegate(_ delegate: (any BarkoderSDK.BarkoderPreviewFramesDelegate)?)
86
+ @objc @_Concurrency.MainActor @preconcurrency public func setBarkoderPerformanceDelegate(_ delegate: (any BarkoderSDK.BarkoderPerformanceDelegate)?)
87
+ @objc @_Concurrency.MainActor @preconcurrency public func startScanning(_ resultDelegate: any BarkoderSDK.BarkoderResultDelegate) throws
88
+ @objc @_Concurrency.MainActor @preconcurrency public func stopScanning()
89
+ @objc @_Concurrency.MainActor @preconcurrency public func pauseScanning()
90
+ @objc @_Concurrency.MainActor @preconcurrency public func setZoomFactor(_ zoomFactor: Swift.Float)
91
+ @objc @_Concurrency.MainActor @preconcurrency public func setFlash(_ enabled: Swift.Bool)
92
+ @objc @_Concurrency.MainActor @preconcurrency public func getMaxZoomFactor(_ completion: @escaping (_ maxZoomFactor: Swift.Float) -> Swift.Void)
93
+ @objc @_Concurrency.MainActor @preconcurrency public func isFlashAvailable(_ completion: @escaping (_ flashAvailable: Swift.Bool) -> Swift.Void)
94
+ @_Concurrency.MainActor @preconcurrency @objc public func cameraFrameReceived(sampleBuffer: CoreMedia.CMSampleBuffer)
95
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func layoutSubviews()
96
96
  @objc deinit
97
97
  }
98
98
  extension CoreFoundation.CGRect {
@@ -108,6 +108,7 @@ extension CoreFoundation.CGRect {
108
108
  }
109
109
  @_inheritsConvenienceInitializers @objc public class BarkoderHelper : ObjectiveC.NSObject {
110
110
  @objc public static func scanImage(_ image: UIKit.UIImage, bkdConfig: BarkoderSDK.BarkoderConfig, resultDelegate: any BarkoderSDK.BarkoderResultDelegate)
111
+ @objc public static func scanFromGallery(bkdConfig: BarkoderSDK.BarkoderConfig, resultDelegate: any BarkoderSDK.BarkoderResultDelegate)
111
112
  @objc public enum BarkoderConfigTemplate : Swift.Int {
112
113
  case all
113
114
  case pdf_optimized
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
3
- // swift-module-flags: -target arm64-apple-ios13.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name BarkoderSDK
4
- // swift-module-flags-ignorable: -enable-bare-slash-regex
2
+ // swift-compiler-version: Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
3
+ // swift-module-flags: -target arm64-apple-ios13.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BarkoderSDK
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface
5
5
  import AVFoundation
6
6
  import Barkoder
7
7
  @_exported import BarkoderSDK
@@ -66,7 +66,7 @@ extension UIKit.UIImage {
66
66
  @objc public protocol BarkoderPerformanceDelegate {
67
67
  @objc optional func performanceReceived(fps: Swift.Float, dps: Swift.Float)
68
68
  }
69
- @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc @_Concurrency.MainActor(unsafe) public class BarkoderView : UIKit.UIView, BarkoderSDK.BarkoderPreviewFramesDelegate {
69
+ @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc @_Concurrency.MainActor @preconcurrency public class BarkoderView : UIKit.UIView, BarkoderSDK.BarkoderPreviewFramesDelegate {
70
70
  @objc public enum BarkoderResolution : Swift.Int {
71
71
  case normal
72
72
  case high
@@ -76,23 +76,23 @@ extension UIKit.UIImage {
76
76
  get
77
77
  }
78
78
  }
79
- @objc @_Concurrency.MainActor(unsafe) public var config: BarkoderSDK.BarkoderConfig? {
79
+ @objc @_Concurrency.MainActor @preconcurrency public var config: BarkoderSDK.BarkoderConfig? {
80
80
  @objc get
81
81
  @objc set
82
82
  }
83
- @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
84
- @objc @_Concurrency.MainActor(unsafe) public func startCamera()
85
- @objc @_Concurrency.MainActor(unsafe) public func setPreviewFramesDelegate(_ delegate: (any BarkoderSDK.BarkoderPreviewFramesDelegate)?)
86
- @objc @_Concurrency.MainActor(unsafe) public func setBarkoderPerformanceDelegate(_ delegate: (any BarkoderSDK.BarkoderPerformanceDelegate)?)
87
- @objc @_Concurrency.MainActor(unsafe) public func startScanning(_ resultDelegate: any BarkoderSDK.BarkoderResultDelegate) throws
88
- @objc @_Concurrency.MainActor(unsafe) public func stopScanning()
89
- @objc @_Concurrency.MainActor(unsafe) public func pauseScanning()
90
- @objc @_Concurrency.MainActor(unsafe) public func setZoomFactor(_ zoomFactor: Swift.Float)
91
- @objc @_Concurrency.MainActor(unsafe) public func setFlash(_ enabled: Swift.Bool)
92
- @objc @_Concurrency.MainActor(unsafe) public func getMaxZoomFactor(_ completion: @escaping (_ maxZoomFactor: Swift.Float) -> Swift.Void)
93
- @objc @_Concurrency.MainActor(unsafe) public func isFlashAvailable(_ completion: @escaping (_ flashAvailable: Swift.Bool) -> Swift.Void)
94
- @_Concurrency.MainActor(unsafe) @objc public func cameraFrameReceived(sampleBuffer: CoreMedia.CMSampleBuffer)
95
- @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
83
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public init(frame: CoreFoundation.CGRect)
84
+ @objc @_Concurrency.MainActor @preconcurrency public func startCamera()
85
+ @objc @_Concurrency.MainActor @preconcurrency public func setPreviewFramesDelegate(_ delegate: (any BarkoderSDK.BarkoderPreviewFramesDelegate)?)
86
+ @objc @_Concurrency.MainActor @preconcurrency public func setBarkoderPerformanceDelegate(_ delegate: (any BarkoderSDK.BarkoderPerformanceDelegate)?)
87
+ @objc @_Concurrency.MainActor @preconcurrency public func startScanning(_ resultDelegate: any BarkoderSDK.BarkoderResultDelegate) throws
88
+ @objc @_Concurrency.MainActor @preconcurrency public func stopScanning()
89
+ @objc @_Concurrency.MainActor @preconcurrency public func pauseScanning()
90
+ @objc @_Concurrency.MainActor @preconcurrency public func setZoomFactor(_ zoomFactor: Swift.Float)
91
+ @objc @_Concurrency.MainActor @preconcurrency public func setFlash(_ enabled: Swift.Bool)
92
+ @objc @_Concurrency.MainActor @preconcurrency public func getMaxZoomFactor(_ completion: @escaping (_ maxZoomFactor: Swift.Float) -> Swift.Void)
93
+ @objc @_Concurrency.MainActor @preconcurrency public func isFlashAvailable(_ completion: @escaping (_ flashAvailable: Swift.Bool) -> Swift.Void)
94
+ @_Concurrency.MainActor @preconcurrency @objc public func cameraFrameReceived(sampleBuffer: CoreMedia.CMSampleBuffer)
95
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func layoutSubviews()
96
96
  @objc deinit
97
97
  }
98
98
  extension CoreFoundation.CGRect {
@@ -108,6 +108,7 @@ extension CoreFoundation.CGRect {
108
108
  }
109
109
  @_inheritsConvenienceInitializers @objc public class BarkoderHelper : ObjectiveC.NSObject {
110
110
  @objc public static func scanImage(_ image: UIKit.UIImage, bkdConfig: BarkoderSDK.BarkoderConfig, resultDelegate: any BarkoderSDK.BarkoderResultDelegate)
111
+ @objc public static func scanFromGallery(bkdConfig: BarkoderSDK.BarkoderConfig, resultDelegate: any BarkoderSDK.BarkoderResultDelegate)
111
112
  @objc public enum BarkoderConfigTemplate : Swift.Int {
112
113
  case all
113
114
  case pdf_optimized
@@ -412,6 +412,14 @@
412
412
  "enabled": true,
413
413
  "dpmMode": 1
414
414
  },
415
+ "QR": {
416
+ "enabled": true,
417
+ "dpmMode": 1
418
+ },
419
+ "QR Micro": {
420
+ "enabled": true,
421
+ "dpmMode": 1
422
+ },
415
423
  "general": {
416
424
  "maxThreads": 2,
417
425
  "decodingSpeed": 2,
@@ -671,7 +679,8 @@
671
679
  "mrz": {
672
680
  "decoder": {
673
681
  "ID Document": {
674
- "enabled": true
682
+ "enabled": true,
683
+ "masterChecksum": 0
675
684
  },
676
685
  "general": {
677
686
  "maxThreads": 2,
@@ -715,10 +724,12 @@
715
724
  "enabled": true
716
725
  },
717
726
  "QR": {
718
- "enabled": true
727
+ "enabled": true,
728
+ "dpmMode": 1
719
729
  },
720
730
  "QR Micro": {
721
- "enabled": true
731
+ "enabled": true,
732
+ "dpmMode": 1
722
733
  },
723
734
  "Code 128": {
724
735
  "enabled": true,
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
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
@@ -42,6 +42,8 @@
42
42
  #include <string.h>
43
43
  #endif
44
44
  #if defined(__cplusplus)
45
+ #pragma clang diagnostic push
46
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
45
47
  #if defined(__arm64e__) && __has_include(<ptrauth.h>)
46
48
  # include <ptrauth.h>
47
49
  #else
@@ -55,6 +57,7 @@
55
57
  # endif
56
58
  #pragma clang diagnostic pop
57
59
  #endif
60
+ #pragma clang diagnostic pop
58
61
  #endif
59
62
 
60
63
  #if !defined(SWIFT_TYPEDEFS)
@@ -294,6 +297,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
294
297
  #pragma clang diagnostic ignored "-Wunknown-pragmas"
295
298
  #pragma clang diagnostic ignored "-Wnullability"
296
299
  #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
300
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
297
301
 
298
302
  #if __has_attribute(external_source_symbol)
299
303
  # pragma push_macro("any")
@@ -414,6 +418,12 @@ SWIFT_CLASS("_TtC11BarkoderSDK14BarkoderHelper")
414
418
  /// \param resultDelegate where you will receive scanned result
415
419
  ///
416
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;
417
427
  /// Apply config params from predefined template
418
428
  /// \param config that will be configured
419
429
  ///
@@ -465,6 +475,7 @@ typedef SWIFT_ENUM(NSInteger, BarkoderConfigTemplate, open) {
465
475
  };
466
476
 
467
477
 
478
+
468
479
  SWIFT_PROTOCOL("_TtP11BarkoderSDK27BarkoderPerformanceDelegate_")
469
480
  @protocol BarkoderPerformanceDelegate
470
481
  @optional
@@ -543,7 +554,7 @@ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
543
554
  #endif
544
555
 
545
556
  #elif defined(__x86_64__) && __x86_64__
546
- // Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
557
+ // Generated by Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
547
558
  #ifndef BARKODERSDK_SWIFT_H
548
559
  #define BARKODERSDK_SWIFT_H
549
560
  #pragma clang diagnostic push
@@ -585,6 +596,8 @@ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
585
596
  #include <string.h>
586
597
  #endif
587
598
  #if defined(__cplusplus)
599
+ #pragma clang diagnostic push
600
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
588
601
  #if defined(__arm64e__) && __has_include(<ptrauth.h>)
589
602
  # include <ptrauth.h>
590
603
  #else
@@ -598,6 +611,7 @@ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
598
611
  # endif
599
612
  #pragma clang diagnostic pop
600
613
  #endif
614
+ #pragma clang diagnostic pop
601
615
  #endif
602
616
 
603
617
  #if !defined(SWIFT_TYPEDEFS)
@@ -837,6 +851,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
837
851
  #pragma clang diagnostic ignored "-Wunknown-pragmas"
838
852
  #pragma clang diagnostic ignored "-Wnullability"
839
853
  #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
854
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
840
855
 
841
856
  #if __has_attribute(external_source_symbol)
842
857
  # pragma push_macro("any")
@@ -957,6 +972,12 @@ SWIFT_CLASS("_TtC11BarkoderSDK14BarkoderHelper")
957
972
  /// \param resultDelegate where you will receive scanned result
958
973
  ///
959
974
  + (void)scanImage:(UIImage * _Nonnull)image bkdConfig:(BarkoderConfig * _Nonnull)bkdConfig resultDelegate:(id <BarkoderResultDelegate> _Nonnull)resultDelegate;
975
+ /// Opens the device’s photo gallery, allowing you to choose an image to be processed for barcode scanning.
976
+ /// \param bkdConfig config that will be used for scanning process
977
+ ///
978
+ /// \param resultDelegate where you will receive scanned result
979
+ ///
980
+ + (void)scanFromGalleryWithBkdConfig:(BarkoderConfig * _Nonnull)bkdConfig resultDelegate:(id <BarkoderResultDelegate> _Nonnull)resultDelegate;
960
981
  /// Apply config params from predefined template
961
982
  /// \param config that will be configured
962
983
  ///
@@ -1008,6 +1029,7 @@ typedef SWIFT_ENUM(NSInteger, BarkoderConfigTemplate, open) {
1008
1029
  };
1009
1030
 
1010
1031
 
1032
+
1011
1033
  SWIFT_PROTOCOL("_TtP11BarkoderSDK27BarkoderPerformanceDelegate_")
1012
1034
  @protocol BarkoderPerformanceDelegate
1013
1035
  @optional