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
@@ -1,8 +1,9 @@
1
1
  // swift-interface-format-version: 1.0
2
2
  // swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
3
- // swift-module-flags: -target arm64-apple-ios13.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BarkoderSDK
3
+ // swift-module-flags: -target arm64-apple-ios12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BarkoderSDK
4
4
  // swift-module-flags-ignorable: -no-verify-emitted-module-interface
5
5
  import AVFoundation
6
+ import AudioToolbox
6
7
  import Barkoder
7
8
  @_exported import BarkoderSDK
8
9
  import CoreMedia
@@ -93,6 +94,15 @@ extension UIKit.UIImage {
93
94
  get
94
95
  }
95
96
  }
97
+ @objc public enum BarkoderCameraPosition : Swift.Int {
98
+ case BACK
99
+ case FRONT
100
+ public init?(rawValue: Swift.Int)
101
+ public typealias RawValue = Swift.Int
102
+ public var rawValue: Swift.Int {
103
+ get
104
+ }
105
+ }
96
106
  @objc @_Concurrency.MainActor @preconcurrency public var config: BarkoderSDK.BarkoderConfig? {
97
107
  @objc get
98
108
  @objc set
@@ -105,6 +115,7 @@ extension UIKit.UIImage {
105
115
  @objc @_Concurrency.MainActor @preconcurrency public func stopScanning()
106
116
  @objc @_Concurrency.MainActor @preconcurrency public func pauseScanning()
107
117
  @objc @_Concurrency.MainActor @preconcurrency public func setZoomFactor(_ zoomFactor: Swift.Float)
118
+ @objc @_Concurrency.MainActor @preconcurrency public func setCamera(_ position: BarkoderSDK.BarkoderView.BarkoderCameraPosition)
108
119
  @objc @_Concurrency.MainActor @preconcurrency public func setFlash(_ enabled: Swift.Bool)
109
120
  @objc @_Concurrency.MainActor @preconcurrency public func getMaxZoomFactor(_ completion: @escaping (_ maxZoomFactor: Swift.Float) -> Swift.Void)
110
121
  @objc @_Concurrency.MainActor @preconcurrency public func isFlashAvailable(_ completion: @escaping (_ flashAvailable: Swift.Bool) -> Swift.Void)
@@ -143,6 +154,7 @@ extension CoreFoundation.CGRect {
143
154
  case mrz
144
155
  case gallery_scan
145
156
  case composite
157
+ case postal_codes
146
158
  public init?(rawValue: Swift.Int)
147
159
  public typealias RawValue = Swift.Int
148
160
  public var rawValue: Swift.Int {
@@ -160,6 +172,9 @@ extension CoreFoundation.CGRect {
160
172
  extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.Equatable {}
161
173
  extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.Hashable {}
162
174
  extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.RawRepresentable {}
175
+ extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.Equatable {}
176
+ extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.Hashable {}
177
+ extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.RawRepresentable {}
163
178
  extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.Equatable {}
164
179
  extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.Hashable {}
165
180
  extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.RawRepresentable {}
@@ -1,8 +1,9 @@
1
1
  // swift-interface-format-version: 1.0
2
2
  // swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
3
- // swift-module-flags: -target arm64-apple-ios13.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BarkoderSDK
3
+ // swift-module-flags: -target arm64-apple-ios12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BarkoderSDK
4
4
  // swift-module-flags-ignorable: -no-verify-emitted-module-interface
5
5
  import AVFoundation
6
+ import AudioToolbox
6
7
  import Barkoder
7
8
  @_exported import BarkoderSDK
8
9
  import CoreMedia
@@ -93,6 +94,15 @@ extension UIKit.UIImage {
93
94
  get
94
95
  }
95
96
  }
97
+ @objc public enum BarkoderCameraPosition : Swift.Int {
98
+ case BACK
99
+ case FRONT
100
+ public init?(rawValue: Swift.Int)
101
+ public typealias RawValue = Swift.Int
102
+ public var rawValue: Swift.Int {
103
+ get
104
+ }
105
+ }
96
106
  @objc @_Concurrency.MainActor @preconcurrency public var config: BarkoderSDK.BarkoderConfig? {
97
107
  @objc get
98
108
  @objc set
@@ -105,6 +115,7 @@ extension UIKit.UIImage {
105
115
  @objc @_Concurrency.MainActor @preconcurrency public func stopScanning()
106
116
  @objc @_Concurrency.MainActor @preconcurrency public func pauseScanning()
107
117
  @objc @_Concurrency.MainActor @preconcurrency public func setZoomFactor(_ zoomFactor: Swift.Float)
118
+ @objc @_Concurrency.MainActor @preconcurrency public func setCamera(_ position: BarkoderSDK.BarkoderView.BarkoderCameraPosition)
108
119
  @objc @_Concurrency.MainActor @preconcurrency public func setFlash(_ enabled: Swift.Bool)
109
120
  @objc @_Concurrency.MainActor @preconcurrency public func getMaxZoomFactor(_ completion: @escaping (_ maxZoomFactor: Swift.Float) -> Swift.Void)
110
121
  @objc @_Concurrency.MainActor @preconcurrency public func isFlashAvailable(_ completion: @escaping (_ flashAvailable: Swift.Bool) -> Swift.Void)
@@ -143,6 +154,7 @@ extension CoreFoundation.CGRect {
143
154
  case mrz
144
155
  case gallery_scan
145
156
  case composite
157
+ case postal_codes
146
158
  public init?(rawValue: Swift.Int)
147
159
  public typealias RawValue = Swift.Int
148
160
  public var rawValue: Swift.Int {
@@ -160,6 +172,9 @@ extension CoreFoundation.CGRect {
160
172
  extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.Equatable {}
161
173
  extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.Hashable {}
162
174
  extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.RawRepresentable {}
175
+ extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.Equatable {}
176
+ extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.Hashable {}
177
+ extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.RawRepresentable {}
163
178
  extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.Equatable {}
164
179
  extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.Hashable {}
165
180
  extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.RawRepresentable {}