scandit-react-native-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/android/build.gradle +1 -1
- package/android/generated/java/com/facebook/fbreact/specs/NativeScanditDataCaptureCoreSpec.java +1 -1
- package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/ScanditDataCaptureCoreModuleBase.kt +2 -2
- package/android/src/main/newArch/kotlin/com/scandit/datacapture/reactnative/core/ScanditDataCaptureCoreModule.kt +2 -0
- package/android/src/main/oldArch/kotlin/com/scandit/datacapture/reactnative/core/ScanditDataCaptureCoreModule.kt +2 -0
- package/dist/core.js +6244 -3037
- package/dist/core.js.flow +5797 -845
- package/dist/core.js.map +1 -1
- package/dist/dts/core.d.ts +7134 -882
- package/dist/dts/index.d.ts +467 -44
- package/dist/index.js +354 -92
- package/dist/index.js.flow +427 -94
- package/dist/index.js.map +1 -1
- package/ios/Sources/ScanditDataCaptureCore.swift +10 -6
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/ScanditReactNativeDatacaptureCoreSpec.h +3 -3
- package/package.json +13 -5
- package/scandit-react-native-datacapture-core.podspec +1 -1
- package/specs/NativeScanditDataCaptureCore.ts +1 -1
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.
|
|
102
|
+
def sdk_version = "8.7.0-beta.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) {
|
package/android/generated/java/com/facebook/fbreact/specs/NativeScanditDataCaptureCoreSpec.java
CHANGED
|
@@ -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
|
-
"
|
|
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
|
|
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
|
-
|
|
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)
|