scandit-react-native-datacapture-core 8.4.0 → 8.4.2

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.
@@ -99,7 +99,7 @@ if (file( "${rootProject.projectDir}/build-test.gradle").exists()) {
99
99
  }
100
100
 
101
101
  dependencies {
102
- def sdk_version = "8.4.0"
102
+ def sdk_version = "8.4.2"
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) {
@@ -25,5 +25,25 @@ target_link_libraries(
25
25
  reactnative
26
26
  )
27
27
 
28
- target_compile_reactnative_options(react_codegen_ScanditReactNativeDatacaptureCoreSpec PRIVATE)
28
+ # target_compile_reactnative_options ships with React Native 0.81+. On older
29
+ # RN (e.g. 0.78 with New Architecture) the macro is undefined and configure
30
+ # fails with "Unknown CMake command". Guard it and fall back to the equivalent
31
+ # flags the helper sets, including RN_SERIALIZABLE_STATE on Android (required
32
+ # for correct Fabric memory layout in Release builds).
33
+ if(COMMAND target_compile_reactnative_options)
34
+ target_compile_reactnative_options(react_codegen_ScanditReactNativeDatacaptureCoreSpec PRIVATE)
35
+ else()
36
+ target_compile_options(
37
+ react_codegen_ScanditReactNativeDatacaptureCoreSpec
38
+ PRIVATE
39
+ -DLOG_TAG=\"ReactNative\"
40
+ -fexceptions
41
+ -frtti
42
+ -std=c++20
43
+ -Wall
44
+ )
45
+ if(ANDROID)
46
+ target_compile_definitions(react_codegen_ScanditReactNativeDatacaptureCoreSpec PRIVATE RN_SERIALIZABLE_STATE)
47
+ endif()
48
+ endif()
29
49
  target_compile_options(react_codegen_ScanditReactNativeDatacaptureCoreSpec PRIVATE -Wno-deprecated-declarations)
package/dist/core.js CHANGED
@@ -2281,6 +2281,12 @@ class ImageFrameSource extends DefaultSerializeable {
2281
2281
  return Promise.resolve();
2282
2282
  }
2283
2283
  }
2284
+ setNativeFrameSourceIsBeingCreated() {
2285
+ // ImageFrameSource has no asynchronous native initialization step, so
2286
+ // there is nothing to track here. The method exists only to satisfy the
2287
+ // PrivateFrameSource contract that DataCaptureContext.setFrameSource()
2288
+ // invokes on every frame source.
2289
+ }
2284
2290
  }
2285
2291
  __decorate([
2286
2292
  nameForSerialization('id')