scandit-react-native-datacapture-core 8.5.0-beta.1 → 8.5.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/android/build.gradle +1 -1
- package/android/generated/jni/CMakeLists.txt +21 -1
- package/dist/core.js +0 -3
- package/dist/core.js.map +1 -1
- package/dist/dts/DataCaptureView.d.ts +7 -2
- package/dist/dts/private/hooks/useViewHandle.d.ts +18 -1
- package/dist/index.js +120 -26
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/ios/Sources/Shared/ScanditReactNativeFactoryContainer.swift +11 -3
- package/package.json +2 -2
- package/scandit-react-native-datacapture-core.podspec +6 -3
package/android/build.gradle
CHANGED
|
@@ -99,7 +99,7 @@ if (file( "${rootProject.projectDir}/build-test.gradle").exists()) {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
dependencies {
|
|
102
|
-
def sdk_version = "8.5.
|
|
102
|
+
def sdk_version = "8.5.1"
|
|
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
|
|
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
|
@@ -4190,13 +4190,10 @@ class BaseDataCaptureView extends DefaultSerializeable {
|
|
|
4190
4190
|
}
|
|
4191
4191
|
createNativeView(viewId) {
|
|
4192
4192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4193
|
-
var _a, _b, _c;
|
|
4194
4193
|
if (this.isViewCreated) {
|
|
4195
4194
|
return Promise.resolve();
|
|
4196
4195
|
}
|
|
4197
4196
|
this.viewId = viewId;
|
|
4198
|
-
const json = this.toJSON();
|
|
4199
|
-
console.log('[createNativeView] controls count:', (_b = (_a = json.controls) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0, 'control types:', (_c = json.controls) === null || _c === void 0 ? void 0 : _c.map((c) => c.type));
|
|
4200
4197
|
yield this.controller.createNativeView();
|
|
4201
4198
|
this.isViewCreated = true;
|
|
4202
4199
|
this.notifyOverlaysOfViewIdChange();
|