scandit-capacitor-datacapture-core 8.6.0 → 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 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
- "ScanditCapacitorDatacaptureCoreObjC",
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.6.0'
19
+ s.dependency "scandit-datacapture-frameworks-core", '= 8.7.0-beta.1'
21
20
  end
@@ -141,7 +141,7 @@ if (ext.has('repos')) {
141
141
  }
142
142
 
143
143
  dependencies {
144
- def sdk_version = "8.6.0"
144
+ def sdk_version = "8.7.0-beta.1"
145
145
 
146
146
  implementation fileTree(dir: 'libs', include: ['*.jar'])
147
147
 
@@ -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 getDefaults(PluginCall call) {
192
+ public void getDynamicDefaults(PluginCall call) {
191
193
  try {
192
- Map<String, Object> defaults = coreModule.getDefaults();
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