scandit-react-native-datacapture-core 8.6.2 → 8.7.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/README.md CHANGED
@@ -2,6 +2,17 @@ ScanditCaptureCore builds the foundation of all data capture related functionali
2
2
 
3
3
  Learn more with the [official documentation](https://docs.scandit.com/) or get started with [our samples](https://github.com/Scandit/datacapture-react-native-samples)
4
4
 
5
+ ## CocoaPods specs repo
6
+
7
+ Scandit pods are published to Scandit's specs repo, because CocoaPods trunk is read-only from 2026-12-02. Add it to `ios/Podfile`, together with trunk, which a Podfile stops using implicitly once it declares any source:
8
+
9
+ ```ruby
10
+ source 'https://github.com/Scandit/scandit-cocoapods-specs.git'
11
+ source 'https://cdn.cocoapods.org/'
12
+ ```
13
+
14
+ Without it, `pod install` fails with `Unable to find a specification for scandit-datacapture-frameworks-core`.
15
+
5
16
  ## iOS troubleshooting
6
17
 
7
18
  ### `use_frameworks!` and Expo `useFrameworks: "static"` support
@@ -99,7 +99,7 @@ if (file( "${rootProject.projectDir}/build-test.gradle").exists()) {
99
99
  }
100
100
 
101
101
  dependencies {
102
- def sdk_version = "8.6.2"
102
+ def sdk_version = "8.7.0"
103
103
 
104
104
  println("Version of the native sdk used in this build: ${safeExtGet('frameworks_sdk_version', sdk_version)}")
105
105
  if (findProject(':scandit-datacapture-frameworks-core') != null) {
@@ -51,7 +51,7 @@ public abstract class NativeScanditDataCaptureCoreSpec extends ReactContextBaseJ
51
51
  Map<String, Object> constants = getTypedExportedConstants();
52
52
  if (ReactBuildConfig.DEBUG || ReactBuildConfig.IS_INTERNAL_BUILD) {
53
53
  Set<String> obligatoryFlowConstants = new HashSet<>(Arrays.asList(
54
- "Defaults"
54
+ "DynamicDefaults"
55
55
  ));
56
56
  Set<String> optionalFlowConstants = new HashSet<>();
57
57
  Set<String> undeclaredConstants = new HashSet<>(constants.keySet());
@@ -28,7 +28,7 @@ class ScanditDataCaptureCoreModuleBase(
28
28
  ) {
29
29
  companion object {
30
30
  const val NAME = "ScanditDataCaptureCore"
31
- private const val DEFAULTS_KEY = "Defaults"
31
+ private const val DYNAMIC_DEFAULTS_KEY = "DynamicDefaults"
32
32
 
33
33
  private val VIEW_MANAGER_NULL_ERROR = Error(
34
34
  "Unable to add the DataCaptureView on Android. " +
@@ -38,7 +38,7 @@ class ScanditDataCaptureCoreModuleBase(
38
38
 
39
39
  fun getDefaults(): MutableMap<String, Any> {
40
40
  return mutableMapOf(
41
- DEFAULTS_KEY to coreModule.getDefaults()
41
+ DYNAMIC_DEFAULTS_KEY to coreModule.getDynamicDefaults()
42
42
  )
43
43
  }
44
44
 
@@ -14,6 +14,7 @@ import com.facebook.react.module.annotations.ReactModule
14
14
  import com.facebook.react.uimanager.ViewGroupManager
15
15
  import com.scandit.datacapture.frameworks.core.CoreModule
16
16
  import com.scandit.datacapture.frameworks.core.FrameworkModule
17
+ import com.scandit.datacapture.frameworks.core.listeners.registry.CoreEventEmitter
17
18
  import com.scandit.datacapture.frameworks.core.locator.ServiceLocator
18
19
  import com.scandit.datacapture.reactnative.core.utils.ReactNativeEventEmitter
19
20
  import com.scandit.datacapture.reactnative.core.utils.ViewWindowEvents
@@ -59,6 +60,7 @@ class ScanditDataCaptureCoreModule(
59
60
  // Per-view window attach/detach events for the JS camera-ownership
60
61
  // model (SDC-32484); view containers emit through this relay.
61
62
  ViewWindowEvents.emitter = emitter
63
+ CoreEventEmitter.emitter = emitter
62
64
 
63
65
  val coreModule = CoreModule.create(emitter)
64
66
  coreModule.onCreate(reactContext)
@@ -15,6 +15,7 @@ import com.facebook.react.module.annotations.ReactModule
15
15
  import com.facebook.react.uimanager.ViewGroupManager
16
16
  import com.scandit.datacapture.frameworks.core.CoreModule
17
17
  import com.scandit.datacapture.frameworks.core.FrameworkModule
18
+ import com.scandit.datacapture.frameworks.core.listeners.registry.CoreEventEmitter
18
19
  import com.scandit.datacapture.frameworks.core.locator.ServiceLocator
19
20
  import com.scandit.datacapture.reactnative.core.utils.ReactNativeEventEmitter
20
21
  import com.scandit.datacapture.reactnative.core.utils.ViewWindowEvents
@@ -58,6 +59,7 @@ class ScanditDataCaptureCoreModule(
58
59
  // Per-view window attach/detach events for the JS camera-ownership
59
60
  // model (SDC-32484); view containers emit through this relay.
60
61
  ViewWindowEvents.emitter = emitter
62
+ CoreEventEmitter.emitter = emitter
61
63
 
62
64
  val coreModule = CoreModule.create(emitter)
63
65
  coreModule.onCreate(reactContext)