scandit-capacitor-datacapture-label 8.0.0 → 8.1.0

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/Package.swift CHANGED
@@ -1,13 +1,14 @@
1
- // swift-tools-version: 5.9
2
- import PackageDescription
3
1
  import Foundation
2
+ // swift-tools-version: 5.5
3
+ import PackageDescription
4
4
 
5
5
  // Read version from package.json
6
6
  func getVersion() -> String {
7
7
  let packageJSONPath = Context.packageDirectory + "/package.json"
8
8
  guard let data = try? Data(contentsOf: URL(fileURLWithPath: packageJSONPath)),
9
- let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
10
- let version = json["version"] as? String else {
9
+ let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
10
+ let version = json["version"] as? String
11
+ else {
11
12
  fatalError("Could not read version from package.json at \(packageJSONPath)")
12
13
  }
13
14
  return version
@@ -21,13 +22,23 @@ let package = Package(
21
22
  products: [
22
23
  .library(
23
24
  name: "ScanditCapacitorDatacaptureLabel",
24
- targets: ["ScanditCapacitorLabel"])
25
+ targets: ["ScanditCapacitorLabel"]
26
+ )
25
27
  ],
26
28
  dependencies: [
27
29
  .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0"),
28
- .package(url: "https://github.com/Scandit/scandit-capacitor-datacapture-core.git", exact: Version(stringLiteral: version)),
29
- .package(url: "https://github.com/Scandit/scandit-capacitor-datacapture-barcode.git", exact: Version(stringLiteral: version)),
30
- .package(url: "https://github.com/Scandit/scandit-datacapture-frameworks-label.git", exact: Version(stringLiteral: version)),
30
+ .package(
31
+ url: "https://github.com/Scandit/scandit-capacitor-datacapture-core.git",
32
+ exact: Version(stringLiteral: version)
33
+ ),
34
+ .package(
35
+ url: "https://github.com/Scandit/scandit-capacitor-datacapture-barcode.git",
36
+ exact: Version(stringLiteral: version)
37
+ ),
38
+ .package(
39
+ url: "https://github.com/Scandit/scandit-datacapture-frameworks-label.git",
40
+ exact: Version(stringLiteral: version)
41
+ ),
31
42
  ],
32
43
  targets: [
33
44
  .target(
@@ -39,10 +50,12 @@ let package = Package(
39
50
  .product(name: "ScanditCapacitorDatacaptureBarcode", package: "scandit-capacitor-datacapture-barcode"),
40
51
  .product(name: "ScanditFrameworksLabel", package: "scandit-datacapture-frameworks-label"),
41
52
  ],
42
- path: "ios/Sources/ScanditCapacitorLabel"),
53
+ path: "ios/Sources/ScanditCapacitorLabel"
54
+ ),
43
55
  .testTarget(
44
56
  name: "ScanditCapacitorLabelTests",
45
57
  dependencies: ["ScanditCapacitorLabel"],
46
- path: "ios/Tests/ScanditCapacitorLabelTests")
58
+ path: "ios/Tests/ScanditCapacitorLabelTests"
59
+ ),
47
60
  ]
48
61
  )
@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
18
18
  s.dependency "Capacitor"
19
19
  s.dependency "ScanditCapacitorDatacaptureCore", "= #{version}"
20
20
  s.dependency "ScanditCapacitorDatacaptureBarcode", "= #{version}"
21
- s.dependency "scandit-datacapture-frameworks-label", '= 8.0.0'
21
+ s.dependency "scandit-datacapture-frameworks-label", '= 8.1.0'
22
22
  end
@@ -65,7 +65,7 @@ apply plugin: 'com.android.library'
65
65
  apply plugin: 'kotlin-android'
66
66
 
67
67
  android {
68
- namespace "com.scandit.capacitor.datacapture.barcode"
68
+ namespace "com.scandit.capacitor.datacapture.label"
69
69
  compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
70
70
  defaultConfig {
71
71
  minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
@@ -94,7 +94,7 @@ repositories {
94
94
  }
95
95
 
96
96
  dependencies {
97
- def sdk_version = "8.0.0"
97
+ def sdk_version = "8.1.0"
98
98
 
99
99
  implementation fileTree(dir: 'libs', include: ['*.jar'])
100
100
  implementation fileTree(dir: 'library', include: ['*.aar'])
@@ -1,4 +1,3 @@
1
- import { CapacitorNativeCaller } from 'scandit-capacitor-datacapture-core';
2
1
  import { LabelCaptureDefaults } from 'scandit-datacapture-frameworks-label';
3
2
  export declare const Capacitor: {
4
3
  pluginName: string;
@@ -12,4 +11,3 @@ export interface CapacitorWindow extends Window {
12
11
  Capacitor: any;
13
12
  }
14
13
  export declare const getDefaults: () => Promise<LabelCaptureDefaults>;
15
- export declare const capacitorLabelNativeCaller: CapacitorNativeCaller;
@@ -0,0 +1,5 @@
1
+ import { LabelNativeCallerProvider, LabelProxyType } from 'scandit-datacapture-frameworks-label';
2
+ import { NativeCaller } from 'scandit-datacapture-frameworks-core';
3
+ export declare class CapacitorLabelNativeCallerProvider implements LabelNativeCallerProvider {
4
+ getNativeCaller(_proxyType: LabelProxyType): NativeCaller;
5
+ }