scandit-react-native-datacapture-core 8.4.1 → 8.5.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/THIRD_PARTY.txt CHANGED
@@ -1,8 +1,3 @@
1
- ScanditCaptureCore / Scandit.DataCapture.Core / scandit-...-datacapture-core
2
- includes components licensed under the following licenses:
3
-
4
- ================================================================================
5
-
6
1
 
7
2
  Apache License
8
3
  Version 2.0, January 2004
@@ -59,7 +59,7 @@ android {
59
59
  namespace "com.scandit.datacapture.reactnative.core"
60
60
  }
61
61
 
62
- compileSdkVersion safeExtGet("compileSdkVersion", 33)
62
+ compileSdkVersion safeExtGet("compileSdkVersion", 36)
63
63
 
64
64
  sourceSets {
65
65
  main {
@@ -78,7 +78,7 @@ android {
78
78
 
79
79
  defaultConfig {
80
80
  minSdkVersion safeExtGet("minSdkVersion", 24)
81
- targetSdkVersion safeExtGet("targetSdkVersion", 33)
81
+ targetSdkVersion safeExtGet("targetSdkVersion", 36)
82
82
  versionCode 1
83
83
  versionName "1.0"
84
84
  }
@@ -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.1"
102
+ def sdk_version = "8.5.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) {
@@ -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)