scandit-react-native-datacapture-parser 6.17.2 → 6.18.0-beta.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.
package/android/build.gradle
CHANGED
|
@@ -8,7 +8,7 @@ def safeExtGet(prop, fallback) {
|
|
|
8
8
|
|
|
9
9
|
buildscript {
|
|
10
10
|
ext {
|
|
11
|
-
kotlin_version = "1.
|
|
11
|
+
kotlin_version = "1.7.21"
|
|
12
12
|
agp_version = "7.2.1"
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -42,10 +42,11 @@ android {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
dependencies {
|
|
45
|
-
def sdk_version = "6.
|
|
45
|
+
def sdk_version = "6.18.0-beta.2"
|
|
46
46
|
|
|
47
|
+
println("Version of the native sdk used in this build: ${safeExtGet('global_sdk_version', sdk_version)}")
|
|
47
48
|
api project(path: ':scandit-react-native-datacapture-core')
|
|
48
|
-
api "com.scandit.datacapture:parser:$sdk_version"
|
|
49
|
+
api "com.scandit.datacapture:parser:${safeExtGet('global_sdk_version', sdk_version)}"
|
|
49
50
|
|
|
50
51
|
//noinspection GradleDynamicVersion
|
|
51
52
|
implementation 'com.facebook.react:react-native:+' // From node_modules
|
|
@@ -10,11 +10,11 @@ import android.util.Base64
|
|
|
10
10
|
import androidx.annotation.VisibleForTesting
|
|
11
11
|
import com.facebook.react.bridge.*
|
|
12
12
|
import com.scandit.datacapture.core.json.JsonValue
|
|
13
|
+
import com.scandit.datacapture.frameworks.core.deserialization.DeserializationLifecycleObserver
|
|
14
|
+
import com.scandit.datacapture.frameworks.core.deserialization.Deserializers
|
|
13
15
|
import com.scandit.datacapture.parser.Parser
|
|
14
16
|
import com.scandit.datacapture.parser.serialization.ParserDeserializer
|
|
15
17
|
import com.scandit.datacapture.parser.serialization.ParserDeserializerListener
|
|
16
|
-
import com.scandit.datacapture.reactnative.core.deserializers.Deserializers
|
|
17
|
-
import com.scandit.datacapture.reactnative.core.deserializers.TreeLifecycleObserver
|
|
18
18
|
import com.scandit.datacapture.reactnative.core.utils.Error
|
|
19
19
|
import com.scandit.datacapture.reactnative.core.utils.reject
|
|
20
20
|
|
|
@@ -25,7 +25,7 @@ class ScanditDataCaptureParserModule(
|
|
|
25
25
|
private val parserDeserializer: ParserDeserializer = ParserDeserializer()
|
|
26
26
|
) : ReactContextBaseJavaModule(reactContext),
|
|
27
27
|
ParserDeserializerListener,
|
|
28
|
-
|
|
28
|
+
DeserializationLifecycleObserver.Observer {
|
|
29
29
|
companion object {
|
|
30
30
|
private const val DEFAULTS_KEY = "Defaults"
|
|
31
31
|
|
|
@@ -50,16 +50,16 @@ class ScanditDataCaptureParserModule(
|
|
|
50
50
|
parserDeserializer.listener = this
|
|
51
51
|
Deserializers.Factory.addComponentDeserializer(parserDeserializer)
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
DeserializationLifecycleObserver.attach(this)
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
override fun onCatalystInstanceDestroy() {
|
|
57
|
-
|
|
57
|
+
DeserializationLifecycleObserver.detach(this)
|
|
58
58
|
|
|
59
59
|
Deserializers.Factory.removeComponentDeserializer(parserDeserializer)
|
|
60
60
|
parserDeserializer.listener = null
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
parsers.clear()
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
@ReactMethod
|
|
@@ -117,7 +117,7 @@ class ScanditDataCaptureParserModule(
|
|
|
117
117
|
parsers[parser.id] = parser
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
override fun
|
|
120
|
+
override fun onDataCaptureContextDisposed() {
|
|
121
121
|
parsers.clear()
|
|
122
122
|
}
|
|
123
123
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scandit-react-native-datacapture-parser",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.18.0-beta.2",
|
|
4
4
|
"description": "Scandit Data Capture SDK for React Native",
|
|
5
5
|
"homepage": "https://github.com/Scandit/scandit-react-native-datacapture-parser",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"typescript": "^3.8.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"scandit-react-native-datacapture-core": "6.
|
|
32
|
+
"scandit-react-native-datacapture-core": "6.18.0-beta.2"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.requires_arc = true
|
|
17
17
|
s.module_name = "ScanditDataCaptureParser"
|
|
18
18
|
s.header_dir = "ScanditDataCaptureParser"
|
|
19
|
-
s.dependency 'ScanditParser', '= 6.
|
|
19
|
+
s.dependency 'ScanditParser', '= 6.18.0-beta.2'
|
|
20
20
|
|
|
21
21
|
s.dependency "React"
|
|
22
22
|
s.dependency "scandit-react-native-datacapture-core"
|