scandit-capacitor-datacapture-core 8.6.1 → 8.7.0-beta.1
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 +1 -11
- package/ScanditCapacitorDatacaptureCore.podspec +1 -2
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/scandit/capacitor/datacapture/core/ScanditCaptureCoreNative.java +5 -3
- package/dist/core.js +6244 -3037
- package/dist/core.js.map +1 -1
- package/dist/dts/core.d.ts +7087 -884
- package/dist/dts/index.d.ts +246 -3
- package/dist/index.js +301 -255
- package/dist/index.js.map +1 -1
- package/ios/Sources/ScanditCapacitorCore/ScanditCaptureCore.swift +6 -5
- package/package.json +8 -2
- package/ios/Sources/ScanditCapacitorCoreObjC/SDCVolumeButtonObserver.h +0 -23
- package/ios/Sources/ScanditCapacitorCoreObjC/SDCVolumeButtonObserver.m +0 -35
package/Package.swift
CHANGED
|
@@ -33,23 +33,13 @@ let package = Package(
|
|
|
33
33
|
),
|
|
34
34
|
],
|
|
35
35
|
targets: [
|
|
36
|
-
// Objective-C target for VolumeButtonObserver
|
|
37
|
-
.target(
|
|
38
|
-
name: "ScanditCapacitorDatacaptureCoreObjC",
|
|
39
|
-
dependencies: [
|
|
40
|
-
.product(name: "ScanditFrameworksCore", package: "scandit-datacapture-frameworks-core")
|
|
41
|
-
],
|
|
42
|
-
path: "ios/Sources/ScanditCapacitorCoreObjC",
|
|
43
|
-
publicHeadersPath: "."
|
|
44
|
-
),
|
|
45
|
-
// Swift target that depends on the Objective-C target
|
|
46
36
|
.target(
|
|
47
37
|
name: "ScanditCapacitorDatacaptureCore",
|
|
48
38
|
dependencies: [
|
|
49
39
|
.product(name: "Capacitor", package: "capacitor-swift-pm"),
|
|
50
40
|
.product(name: "Cordova", package: "capacitor-swift-pm"),
|
|
51
41
|
.product(name: "ScanditFrameworksCore", package: "scandit-datacapture-frameworks-core"),
|
|
52
|
-
"
|
|
42
|
+
.product(name: "_ScanditFrameworksCorePrivate", package: "scandit-datacapture-frameworks-core"),
|
|
53
43
|
],
|
|
54
44
|
path: "ios/Sources/ScanditCapacitorCore"
|
|
55
45
|
),
|
|
@@ -12,10 +12,9 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.author = package["author"]
|
|
13
13
|
s.source = { :git => package["homepage"], :tag => s.version.to_s }
|
|
14
14
|
s.source_files = "ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}"
|
|
15
|
-
s.public_header_files = "ios/Sources/ScanditCapacitorCoreObjC/**/*.h"
|
|
16
15
|
s.ios.deployment_target = "15.0"
|
|
17
16
|
s.swift_version = "5.7"
|
|
18
17
|
|
|
19
18
|
s.dependency "Capacitor"
|
|
20
|
-
s.dependency "scandit-datacapture-frameworks-core", '= 8.
|
|
19
|
+
s.dependency "scandit-datacapture-frameworks-core", '= 8.7.0-beta.1'
|
|
21
20
|
end
|
package/android/build.gradle
CHANGED
package/android/src/main/java/com/scandit/capacitor/datacapture/core/ScanditCaptureCoreNative.java
CHANGED
|
@@ -24,6 +24,7 @@ import com.scandit.datacapture.frameworks.core.errors.ParameterNullError;
|
|
|
24
24
|
import com.scandit.datacapture.frameworks.core.events.Emitter;
|
|
25
25
|
import com.scandit.datacapture.frameworks.core.lifecycle.ActivityLifecycleDispatcher;
|
|
26
26
|
import com.scandit.datacapture.frameworks.core.lifecycle.DefaultActivityLifecycle;
|
|
27
|
+
import com.scandit.datacapture.frameworks.core.listeners.registry.CoreEventEmitter;
|
|
27
28
|
import com.scandit.datacapture.frameworks.core.locator.DefaultServiceLocator;
|
|
28
29
|
import com.scandit.datacapture.frameworks.core.result.NoopFrameworksResult;
|
|
29
30
|
import java.util.ArrayList;
|
|
@@ -56,6 +57,7 @@ public class ScanditCaptureCoreNative extends Plugin implements Emitter {
|
|
|
56
57
|
public ScanditCaptureCoreNative() {
|
|
57
58
|
this.lifecycleDispatcher = DefaultActivityLifecycle.Companion.getInstance();
|
|
58
59
|
this.captureViewHandler = new DataCaptureViewHandler();
|
|
60
|
+
CoreEventEmitter.INSTANCE.setEmitter(this);
|
|
59
61
|
this.coreModule = CoreModule.create(this);
|
|
60
62
|
this.lastFrameSourceState = FrameSourceState.OFF;
|
|
61
63
|
this.plugins = new ArrayList<>();
|
|
@@ -187,12 +189,12 @@ public class ScanditCaptureCoreNative extends Plugin implements Emitter {
|
|
|
187
189
|
// endregion
|
|
188
190
|
|
|
189
191
|
@PluginMethod
|
|
190
|
-
public void
|
|
192
|
+
public void getDynamicDefaults(PluginCall call) {
|
|
191
193
|
try {
|
|
192
|
-
Map<String, Object> defaults = coreModule.
|
|
194
|
+
Map<String, Object> defaults = coreModule.getDynamicDefaults();
|
|
193
195
|
call.resolve(JSObject.fromJSONObject(new JSONObject(defaults)));
|
|
194
196
|
} catch (JSONException e) {
|
|
195
|
-
call.reject("Failed to get defaults: " + e.getMessage());
|
|
197
|
+
call.reject("Failed to get dynamic defaults: " + e.getMessage());
|
|
196
198
|
}
|
|
197
199
|
}
|
|
198
200
|
|