scandit-react-native-datacapture-core 6.15.1 → 6.16.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 +10 -6
- package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/ScanditDataCaptureCoreModule.kt +0 -2
- package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/ui/DataCaptureViewManager.kt +37 -15
- package/ios/Sources/ScanditDataCaptureCore.swift +42 -16
- package/ios/Sources/ScanditDataCaptureCore.xcodeproj/project.pbxproj +2 -2
- package/ios/Sources/ScanditDataCaptureViewManager.swift +1 -1
- package/js/DataCaptureVersion.js +1 -1
- package/js/DataCaptureVersion.js.map +1 -1
- package/js/Feedback.d.ts +16 -1
- package/js/Feedback.js +42 -1
- package/js/Feedback.js.map +1 -1
- package/js/LocationSelection.d.ts +3 -0
- package/js/LocationSelection.js +36 -0
- package/js/LocationSelection.js.map +1 -1
- package/js/private/PrivateLocationSelection.d.ts +14 -0
- package/js/private/PrivateLocationSelection.js +3 -0
- package/js/private/PrivateLocationSelection.js.map +1 -0
- package/package.json +1 -1
- package/scandit-react-native-datacapture-core.podspec +2 -2
package/android/build.gradle
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
def DEFAULT_COMPILE_SDK_VERSION = 32
|
|
2
|
+
def DEFAULT_MIN_SDK_VERSION = 24
|
|
3
|
+
def DEFAULT_TARGET_SDK_VERSION = 32
|
|
4
|
+
|
|
1
5
|
def safeExtGet(prop, fallback) {
|
|
2
6
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
3
7
|
}
|
|
@@ -23,11 +27,11 @@ apply plugin: 'com.android.library'
|
|
|
23
27
|
apply plugin: 'kotlin-android'
|
|
24
28
|
|
|
25
29
|
android {
|
|
26
|
-
compileSdkVersion safeExtGet('compileSdkVersion',
|
|
30
|
+
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
|
|
27
31
|
|
|
28
32
|
defaultConfig {
|
|
29
|
-
minSdkVersion safeExtGet('minSdkVersion',
|
|
30
|
-
targetSdkVersion safeExtGet('targetSdkVersion',
|
|
33
|
+
minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION)
|
|
34
|
+
targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION)
|
|
31
35
|
versionCode 1
|
|
32
36
|
versionName "1.0"
|
|
33
37
|
}
|
|
@@ -38,11 +42,11 @@ android {
|
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
dependencies {
|
|
41
|
-
def sdk_version = "6.
|
|
45
|
+
def sdk_version = "6.16.0-beta.2"
|
|
42
46
|
|
|
43
47
|
api "com.scandit.datacapture:core:$sdk_version"
|
|
44
|
-
|
|
48
|
+
|
|
45
49
|
//noinspection GradleDynamicVersion
|
|
46
50
|
implementation 'com.facebook.react:react-native:+' // From node_modules
|
|
47
|
-
implementation "com.squareup.okhttp3:okhttp:4.9.
|
|
51
|
+
implementation "com.squareup.okhttp3:okhttp:4.9.2"
|
|
48
52
|
}
|
|
@@ -72,7 +72,6 @@ class ScanditDataCaptureCoreModule(
|
|
|
72
72
|
private val ERROR_NULL_FRAME = Error(5, "Frame is null, it might've been reused already.")
|
|
73
73
|
|
|
74
74
|
var lastFrame: FrameData? = null
|
|
75
|
-
var context: DataCaptureContext? = null
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
@get:VisibleForTesting
|
|
@@ -81,7 +80,6 @@ class ScanditDataCaptureCoreModule(
|
|
|
81
80
|
field?.removeListener(this)
|
|
82
81
|
field?.release()
|
|
83
82
|
field = value?.also { it.addListener(this) }
|
|
84
|
-
context = value
|
|
85
83
|
}
|
|
86
84
|
|
|
87
85
|
private var camera: Camera? = null
|
|
@@ -9,6 +9,7 @@ package com.scandit.datacapture.reactnative.core.ui
|
|
|
9
9
|
import android.view.Choreographer
|
|
10
10
|
import android.view.View
|
|
11
11
|
import android.view.View.MeasureSpec.makeMeasureSpec
|
|
12
|
+
import android.view.ViewGroup
|
|
12
13
|
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
|
|
13
14
|
import android.widget.FrameLayout
|
|
14
15
|
import androidx.annotation.VisibleForTesting
|
|
@@ -22,12 +23,17 @@ class DataCaptureViewManager :
|
|
|
22
23
|
DataCaptureViewHandler.ViewListener {
|
|
23
24
|
|
|
24
25
|
@get:VisibleForTesting
|
|
25
|
-
|
|
26
|
+
val currentContainer: FrameLayout?
|
|
27
|
+
get() {
|
|
28
|
+
return if (containers.size > 0) containers[containers.size - 1] else null
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
private val containers = mutableListOf<FrameLayout>()
|
|
26
32
|
|
|
27
|
-
val frameCallback: Choreographer.FrameCallback = object : Choreographer.FrameCallback {
|
|
33
|
+
private val frameCallback: Choreographer.FrameCallback = object : Choreographer.FrameCallback {
|
|
28
34
|
override fun doFrame(frameTimeNanos: Long) {
|
|
29
35
|
manuallyLayoutChildren()
|
|
30
|
-
|
|
36
|
+
currentContainer?.viewTreeObserver?.dispatchOnGlobalLayout()
|
|
31
37
|
Choreographer.getInstance().postFrameCallback(this)
|
|
32
38
|
}
|
|
33
39
|
}
|
|
@@ -39,7 +45,18 @@ class DataCaptureViewManager :
|
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
override fun createViewInstance(reactContext: ThemedReactContext): FrameLayout {
|
|
42
|
-
container = FrameLayout(reactContext)
|
|
48
|
+
val container = FrameLayout(reactContext).also {
|
|
49
|
+
addDataCaptureViewToContainer(it)
|
|
50
|
+
containers.add(it)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (containers.size == 1) {
|
|
54
|
+
scheduleMeasureAndLayout()
|
|
55
|
+
}
|
|
56
|
+
return container
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private fun addDataCaptureViewToContainer(container: FrameLayout) {
|
|
43
60
|
DataCaptureViewHandler.dataCaptureView?.let { view ->
|
|
44
61
|
/*
|
|
45
62
|
During hot reloading, DataCaptureViewManager recreates the view instance with
|
|
@@ -49,14 +66,11 @@ class DataCaptureViewManager :
|
|
|
49
66
|
DataCaptureViewHandler.dataCaptureView to the newly created container.
|
|
50
67
|
*/
|
|
51
68
|
view.parent?.let {
|
|
52
|
-
|
|
69
|
+
(it as ViewGroup).removeView(view)
|
|
53
70
|
}
|
|
54
|
-
container
|
|
55
|
-
container
|
|
71
|
+
container.removeAllViews()
|
|
72
|
+
container.addView(view, MATCH_PARENT, MATCH_PARENT)
|
|
56
73
|
}
|
|
57
|
-
|
|
58
|
-
scheduleMeasureAndLayout()
|
|
59
|
-
return container!!
|
|
60
74
|
}
|
|
61
75
|
|
|
62
76
|
/**
|
|
@@ -74,7 +88,7 @@ class DataCaptureViewManager :
|
|
|
74
88
|
}
|
|
75
89
|
|
|
76
90
|
private fun manuallyLayoutChildren() {
|
|
77
|
-
|
|
91
|
+
currentContainer?.let { container ->
|
|
78
92
|
for (i in 0 until container.childCount) {
|
|
79
93
|
val child = container.getChildAt(i)
|
|
80
94
|
child.measure(
|
|
@@ -87,8 +101,14 @@ class DataCaptureViewManager :
|
|
|
87
101
|
}
|
|
88
102
|
|
|
89
103
|
override fun onDropViewInstance(view: FrameLayout) {
|
|
90
|
-
|
|
91
|
-
|
|
104
|
+
containers.remove(view)
|
|
105
|
+
if (containers.size == 0) {
|
|
106
|
+
cancelMeasureAndLayout()
|
|
107
|
+
} else {
|
|
108
|
+
currentContainer?.let {
|
|
109
|
+
addDataCaptureViewToContainer(it)
|
|
110
|
+
}
|
|
111
|
+
}
|
|
92
112
|
}
|
|
93
113
|
|
|
94
114
|
override fun onViewDeserialized(view: DataCaptureView) {
|
|
@@ -96,8 +116,10 @@ class DataCaptureViewManager :
|
|
|
96
116
|
// If the view has a parent it means that the view is already added to the container.
|
|
97
117
|
// In this scenario we should not remove and add it again because with trial licenses
|
|
98
118
|
// it's going to show the license popup over and over again.
|
|
99
|
-
|
|
100
|
-
|
|
119
|
+
view.parent?.let {
|
|
120
|
+
(it as ViewGroup).removeView(view)
|
|
121
|
+
}
|
|
122
|
+
currentContainer?.addView(view, MATCH_PARENT, MATCH_PARENT)
|
|
101
123
|
}
|
|
102
124
|
}
|
|
103
125
|
}
|
|
@@ -11,6 +11,10 @@ public protocol RNTDataCaptureViewListener: class {
|
|
|
11
11
|
func didUpdate(dataCaptureView: DataCaptureView?)
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
public protocol RNTDataCaptureContextListener: class {
|
|
15
|
+
func didUpdate(dataCaptureContext: DataCaptureContext?)
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
public let SDCSharedMethodQeueue = DispatchQueue(label: "com.scandit.reactnative.methodQueue",
|
|
15
19
|
qos: .userInteractive)
|
|
16
20
|
|
|
@@ -19,10 +23,12 @@ enum ScanditDataCaptureCoreError: Int, CustomNSError {
|
|
|
19
23
|
case nilDataCaptureView
|
|
20
24
|
case nilFrame
|
|
21
25
|
|
|
22
|
-
var domain: String {
|
|
26
|
+
var domain: String {
|
|
27
|
+
"ScanditDataCaptureCoreErrorDomain"
|
|
28
|
+
}
|
|
23
29
|
|
|
24
30
|
var code: Int {
|
|
25
|
-
|
|
31
|
+
rawValue
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
var message: String {
|
|
@@ -37,7 +43,7 @@ enum ScanditDataCaptureCoreError: Int, CustomNSError {
|
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
var errorUserInfo: [String: Any] {
|
|
40
|
-
|
|
46
|
+
[NSLocalizedDescriptionKey: message]
|
|
41
47
|
}
|
|
42
48
|
}
|
|
43
49
|
|
|
@@ -50,7 +56,11 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
|
|
|
50
56
|
|
|
51
57
|
didSet {
|
|
52
58
|
context?.addListener(self)
|
|
53
|
-
|
|
59
|
+
pthread_mutex_lock(&dataCaptureContextListenersLock)
|
|
60
|
+
defer { pthread_mutex_unlock(&dataCaptureContextListenersLock) }
|
|
61
|
+
dataCaptureContextListeners
|
|
62
|
+
.compactMap { $0 as? RNTDataCaptureContextListener }
|
|
63
|
+
.forEach { $0.didUpdate(dataCaptureContext: context) }
|
|
54
64
|
}
|
|
55
65
|
}
|
|
56
66
|
|
|
@@ -58,7 +68,7 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
|
|
|
58
68
|
didSet {
|
|
59
69
|
guard oldValue != dataCaptureView else { return }
|
|
60
70
|
|
|
61
|
-
|
|
71
|
+
dataCaptureView?.addListener(self)
|
|
62
72
|
|
|
63
73
|
pthread_mutex_lock(&dataCaptureViewListenersLock)
|
|
64
74
|
defer {pthread_mutex_unlock(&dataCaptureViewListenersLock)}
|
|
@@ -69,17 +79,16 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
|
|
|
69
79
|
}
|
|
70
80
|
|
|
71
81
|
public static var lastFrame: FrameData?
|
|
72
|
-
public static var dataCaptureContext: DataCaptureContext?
|
|
73
82
|
|
|
74
83
|
lazy internal var contextDeserializer: DataCaptureContextDeserializer = {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
84
|
+
DataCaptureContextDeserializer(frameSourceDeserializer: frameSourceDeserializer,
|
|
85
|
+
viewDeserializer: dataCaptureViewDeserializer,
|
|
86
|
+
modeDeserializers: modeDeserializers,
|
|
87
|
+
componentDeserializers: componentDeserializers)
|
|
79
88
|
}()
|
|
80
89
|
|
|
81
90
|
lazy internal var dataCaptureViewDeserializer: DataCaptureViewDeserializer = {
|
|
82
|
-
|
|
91
|
+
DataCaptureViewDeserializer(modeDeserializers: modeDeserializers)
|
|
83
92
|
}()
|
|
84
93
|
|
|
85
94
|
lazy internal var frameSourceDeserializer: FrameSourceDeserializer = {
|
|
@@ -91,7 +100,7 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
|
|
|
91
100
|
|
|
92
101
|
static var RNTSDCModeDeserializers = [DataCaptureModeDeserializer]()
|
|
93
102
|
internal var modeDeserializers: [DataCaptureModeDeserializer] {
|
|
94
|
-
|
|
103
|
+
ScanditDataCaptureCore.RNTSDCModeDeserializers
|
|
95
104
|
}
|
|
96
105
|
|
|
97
106
|
static public func register(modeDeserializer: DataCaptureModeDeserializer) {
|
|
@@ -103,7 +112,7 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
|
|
|
103
112
|
|
|
104
113
|
static var RNTSDCComponentDeserializers = [DataCaptureComponentDeserializer]()
|
|
105
114
|
internal var componentDeserializers: [DataCaptureComponentDeserializer] {
|
|
106
|
-
|
|
115
|
+
ScanditDataCaptureCore.RNTSDCComponentDeserializers
|
|
107
116
|
}
|
|
108
117
|
|
|
109
118
|
static public func register(componentDeserializer: DataCaptureComponentDeserializer) {
|
|
@@ -118,21 +127,24 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
|
|
|
118
127
|
|
|
119
128
|
fileprivate var componentsSet = Set<String>()
|
|
120
129
|
public func hasComponent(with id: String) -> Bool {
|
|
121
|
-
|
|
130
|
+
componentsSet.contains(id)
|
|
122
131
|
}
|
|
123
132
|
|
|
124
133
|
// dataCaptureViewListeners
|
|
125
134
|
private var dataCaptureViewListenersLock = pthread_mutex_t()
|
|
126
135
|
private lazy var dataCaptureViewListeners = NSMutableSet()
|
|
127
136
|
|
|
137
|
+
private var dataCaptureContextListenersLock = pthread_mutex_t()
|
|
138
|
+
private lazy var dataCaptureContextListeners = NSMutableSet()
|
|
139
|
+
|
|
128
140
|
internal var hasListeners = false
|
|
129
141
|
|
|
130
142
|
public override class func requiresMainQueueSetup() -> Bool {
|
|
131
|
-
|
|
143
|
+
true
|
|
132
144
|
}
|
|
133
145
|
|
|
134
146
|
public override var methodQueue: DispatchQueue! {
|
|
135
|
-
|
|
147
|
+
SDCSharedMethodQeueue
|
|
136
148
|
}
|
|
137
149
|
|
|
138
150
|
deinit {
|
|
@@ -282,6 +294,20 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
|
|
|
282
294
|
dataCaptureViewListeners.remove(listener)
|
|
283
295
|
}
|
|
284
296
|
|
|
297
|
+
public func addRNTDataCaptureContextListener(_ listener: RNTDataCaptureContextListener) {
|
|
298
|
+
pthread_mutex_lock(&dataCaptureContextListenersLock)
|
|
299
|
+
defer { pthread_mutex_unlock(&dataCaptureContextListenersLock) }
|
|
300
|
+
guard !dataCaptureContextListeners.contains(listener) else { return }
|
|
301
|
+
dataCaptureContextListeners.add(listener)
|
|
302
|
+
listener.didUpdate(dataCaptureContext: context)
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
public func removeRNTDataCaptureContextListener(_ listener: RNTDataCaptureContextListener) {
|
|
306
|
+
pthread_mutex_lock(&dataCaptureContextListenersLock)
|
|
307
|
+
defer {pthread_mutex_unlock(&dataCaptureContextListenersLock)}
|
|
308
|
+
dataCaptureContextListeners.remove(listener)
|
|
309
|
+
}
|
|
310
|
+
|
|
285
311
|
// Empty methods to unify the logic on the TS side for supporting functionality automatically provided by RN on iOS,
|
|
286
312
|
// but custom implemented on Android.
|
|
287
313
|
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
215
215
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
216
216
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
217
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
217
|
+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
|
218
218
|
MTL_ENABLE_DEBUG_INFO = YES;
|
|
219
219
|
ONLY_ACTIVE_ARCH = YES;
|
|
220
220
|
SDKROOT = iphoneos;
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
258
258
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
259
259
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
260
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
260
|
+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
|
261
261
|
MTL_ENABLE_DEBUG_INFO = NO;
|
|
262
262
|
SDKROOT = iphoneos;
|
|
263
263
|
VALIDATE_PRODUCT = YES;
|
package/js/DataCaptureVersion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCaptureVersion.js","sourceRoot":"","sources":["../ts/DataCaptureVersion.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAE7C,yCAAyC;AACzC,IAAM,YAAY,GAAG,4BAAa,CAAC,sBAAsB,CAAC;AAE1D;IAAA;IAQA,CAAC;IAPC,sBAAkB,mCAAa;aAA/B;YACE,OAAO,
|
|
1
|
+
{"version":3,"file":"DataCaptureVersion.js","sourceRoot":"","sources":["../ts/DataCaptureVersion.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAE7C,yCAAyC;AACzC,IAAM,YAAY,GAAG,4BAAa,CAAC,sBAAsB,CAAC;AAE1D;IAAA;IAQA,CAAC;IAPC,sBAAkB,mCAAa;aAA/B;YACE,OAAO,eAAe,CAAC;QACzB,CAAC;;;OAAA;IAED,sBAAkB,gCAAU;aAA5B;YACE,OAAO,YAAY,CAAC,OAAO,CAAC;QAC9B,CAAC;;;OAAA;IACH,yBAAC;AAAD,CAAC,AARD,IAQC;AARY,gDAAkB"}
|
package/js/Feedback.d.ts
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import { DefaultSerializeable } from './private/Serializeable';
|
|
2
|
+
declare enum VibrationType {
|
|
3
|
+
default = "default",
|
|
4
|
+
selectionHaptic = "selectionHaptic",
|
|
5
|
+
successHaptic = "successHaptic",
|
|
6
|
+
waveForm = "waveForm"
|
|
7
|
+
}
|
|
2
8
|
export declare class Vibration extends DefaultSerializeable {
|
|
3
9
|
private type;
|
|
4
10
|
static get defaultVibration(): Vibration;
|
|
5
11
|
static get selectionHapticFeedback(): Vibration;
|
|
6
12
|
static get successHapticFeedback(): Vibration;
|
|
7
13
|
private static fromJSON;
|
|
8
|
-
|
|
14
|
+
protected constructor(type: VibrationType);
|
|
15
|
+
}
|
|
16
|
+
export declare class WaveFormVibration extends Vibration {
|
|
17
|
+
private _timings;
|
|
18
|
+
get timings(): number[];
|
|
19
|
+
private _amplitudes;
|
|
20
|
+
get amplitudes(): number[] | null;
|
|
21
|
+
constructor(timings: number[], amplitudes?: number[] | null);
|
|
22
|
+
toJSON(): object;
|
|
9
23
|
}
|
|
10
24
|
export declare class Sound extends DefaultSerializeable {
|
|
11
25
|
resource: string | null;
|
|
@@ -24,3 +38,4 @@ export declare class Feedback extends DefaultSerializeable {
|
|
|
24
38
|
constructor(vibration: Vibration | null, sound: Sound | null);
|
|
25
39
|
emit(): void;
|
|
26
40
|
}
|
|
41
|
+
export {};
|
package/js/Feedback.js
CHANGED
|
@@ -19,14 +19,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
19
19
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.Feedback = exports.Sound = exports.Vibration = void 0;
|
|
22
|
+
exports.Feedback = exports.Sound = exports.WaveFormVibration = exports.Vibration = void 0;
|
|
23
23
|
var FeedbackProxy_1 = require("./native/FeedbackProxy");
|
|
24
24
|
var Serializeable_1 = require("./private/Serializeable");
|
|
25
|
+
var react_native_1 = require("react-native");
|
|
25
26
|
var VibrationType;
|
|
26
27
|
(function (VibrationType) {
|
|
27
28
|
VibrationType["default"] = "default";
|
|
28
29
|
VibrationType["selectionHaptic"] = "selectionHaptic";
|
|
29
30
|
VibrationType["successHaptic"] = "successHaptic";
|
|
31
|
+
VibrationType["waveForm"] = "waveForm";
|
|
30
32
|
})(VibrationType || (VibrationType = {}));
|
|
31
33
|
var Vibration = /** @class */ (function (_super) {
|
|
32
34
|
__extends(Vibration, _super);
|
|
@@ -62,6 +64,45 @@ var Vibration = /** @class */ (function (_super) {
|
|
|
62
64
|
return Vibration;
|
|
63
65
|
}(Serializeable_1.DefaultSerializeable));
|
|
64
66
|
exports.Vibration = Vibration;
|
|
67
|
+
var WaveFormVibration = /** @class */ (function (_super) {
|
|
68
|
+
__extends(WaveFormVibration, _super);
|
|
69
|
+
function WaveFormVibration(timings, amplitudes) {
|
|
70
|
+
if (amplitudes === void 0) { amplitudes = null; }
|
|
71
|
+
var _this = _super.call(this, VibrationType.waveForm) || this;
|
|
72
|
+
_this._timings = timings;
|
|
73
|
+
_this._amplitudes = amplitudes;
|
|
74
|
+
return _this;
|
|
75
|
+
}
|
|
76
|
+
Object.defineProperty(WaveFormVibration.prototype, "timings", {
|
|
77
|
+
get: function () {
|
|
78
|
+
return this._timings;
|
|
79
|
+
},
|
|
80
|
+
enumerable: false,
|
|
81
|
+
configurable: true
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(WaveFormVibration.prototype, "amplitudes", {
|
|
84
|
+
get: function () {
|
|
85
|
+
return this._amplitudes;
|
|
86
|
+
},
|
|
87
|
+
enumerable: false,
|
|
88
|
+
configurable: true
|
|
89
|
+
});
|
|
90
|
+
WaveFormVibration.prototype.toJSON = function () {
|
|
91
|
+
if (react_native_1.Platform.OS === 'ios') {
|
|
92
|
+
return Vibration.successHapticFeedback.toJSON();
|
|
93
|
+
}
|
|
94
|
+
return _super.prototype.toJSON.call(this);
|
|
95
|
+
};
|
|
96
|
+
__decorate([
|
|
97
|
+
Serializeable_1.nameForSerialization('timings')
|
|
98
|
+
], WaveFormVibration.prototype, "_timings", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
Serializeable_1.ignoreFromSerializationIfNull,
|
|
101
|
+
Serializeable_1.nameForSerialization('amplitudes')
|
|
102
|
+
], WaveFormVibration.prototype, "_amplitudes", void 0);
|
|
103
|
+
return WaveFormVibration;
|
|
104
|
+
}(Vibration));
|
|
105
|
+
exports.WaveFormVibration = WaveFormVibration;
|
|
65
106
|
var Sound = /** @class */ (function (_super) {
|
|
66
107
|
__extends(Sound, _super);
|
|
67
108
|
function Sound(resource) {
|
package/js/Feedback.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feedback.js","sourceRoot":"","sources":["../ts/Feedback.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAuD;AAEvD,yDAKiC;
|
|
1
|
+
{"version":3,"file":"Feedback.js","sourceRoot":"","sources":["../ts/Feedback.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAuD;AAEvD,yDAKiC;AACjC,6CAAwC;AAExC,IAAK,aAKJ;AALD,WAAK,aAAa;IAChB,oCAAmB,CAAA;IACnB,oDAAmC,CAAA;IACnC,gDAA+B,CAAA;IAC/B,sCAAqB,CAAA;AACvB,CAAC,EALI,aAAa,KAAb,aAAa,QAKjB;AAED;IAA+B,6BAAoB;IAmBjD,mBAAsB,IAAmB;QAAzC,YACE,iBAAO,SAER;QADC,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;;IACnB,CAAC;IAnBD,sBAAkB,6BAAgB;aAAlC;YACE,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC;;;OAAA;IAED,sBAAkB,oCAAuB;aAAzC;YACE,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QACtD,CAAC;;;OAAA;IAED,sBAAkB,kCAAqB;aAAvC;YACE,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;QACpD,CAAC;;;OAAA;IAEc,kBAAQ,GAAvB,UAAwB,IAAmB;QACzC,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,IAAqB,CAAC,CAAC;IACnD,CAAC;IAMH,gBAAC;AAAD,CAAC,AAvBD,CAA+B,oCAAoB,GAuBlD;AAvBY,8BAAS;AAyBtB;IAAuC,qCAAS;IAgB9C,2BAAmB,OAAiB,EAAE,UAAkC;QAAlC,2BAAA,EAAA,iBAAkC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2
2
|
import { DefaultSerializeable } from './private/Serializeable';
|
|
3
|
+
import { RadiusLocationSelectionJSON, RectangularLocationSelectionJSON } from './private/PrivateLocationSelection';
|
|
3
4
|
export interface LocationSelection {
|
|
4
5
|
}
|
|
5
6
|
export declare const NoneLocationSelection: {
|
|
@@ -9,6 +10,7 @@ export declare class RadiusLocationSelection extends DefaultSerializeable implem
|
|
|
9
10
|
private type;
|
|
10
11
|
private _radius;
|
|
11
12
|
get radius(): NumberWithUnit;
|
|
13
|
+
static fromJSON(JSON: RadiusLocationSelectionJSON): RadiusLocationSelection;
|
|
12
14
|
constructor(radius: NumberWithUnit);
|
|
13
15
|
}
|
|
14
16
|
export declare class RectangularLocationSelection extends DefaultSerializeable implements LocationSelection {
|
|
@@ -18,4 +20,5 @@ export declare class RectangularLocationSelection extends DefaultSerializeable i
|
|
|
18
20
|
static withSize(size: SizeWithUnit): RectangularLocationSelection;
|
|
19
21
|
static withWidthAndAspectRatio(width: NumberWithUnit, heightToWidthAspectRatio: number): RectangularLocationSelection;
|
|
20
22
|
static withHeightAndAspectRatio(height: NumberWithUnit, widthToHeightAspectRatio: number): RectangularLocationSelection;
|
|
23
|
+
static fromJSON(rectangularLocationSelectionJSON: RectangularLocationSelectionJSON): RectangularLocationSelection;
|
|
21
24
|
}
|
package/js/LocationSelection.js
CHANGED
|
@@ -39,6 +39,10 @@ var RadiusLocationSelection = /** @class */ (function (_super) {
|
|
|
39
39
|
enumerable: false,
|
|
40
40
|
configurable: true
|
|
41
41
|
});
|
|
42
|
+
RadiusLocationSelection.fromJSON = function (JSON) {
|
|
43
|
+
var radius = Common_1.NumberWithUnit.fromJSON(JSON.radius);
|
|
44
|
+
return new RadiusLocationSelection(radius);
|
|
45
|
+
};
|
|
42
46
|
__decorate([
|
|
43
47
|
Serializeable_1.nameForSerialization('radius')
|
|
44
48
|
], RadiusLocationSelection.prototype, "_radius", void 0);
|
|
@@ -76,6 +80,38 @@ var RectangularLocationSelection = /** @class */ (function (_super) {
|
|
|
76
80
|
.sizeWithHeightAndAspectRatio(height, widthToHeightAspectRatio);
|
|
77
81
|
return locationSelection;
|
|
78
82
|
};
|
|
83
|
+
RectangularLocationSelection.fromJSON = function (rectangularLocationSelectionJSON) {
|
|
84
|
+
if (rectangularLocationSelectionJSON.aspect.width && rectangularLocationSelectionJSON.aspect.height) {
|
|
85
|
+
var width = Common_1.NumberWithUnit
|
|
86
|
+
.fromJSON(rectangularLocationSelectionJSON.aspect.width);
|
|
87
|
+
var height = Common_1.NumberWithUnit
|
|
88
|
+
.fromJSON(rectangularLocationSelectionJSON.aspect.height);
|
|
89
|
+
var size = new Common_1.SizeWithUnit(width, height);
|
|
90
|
+
return this.withSize(size);
|
|
91
|
+
}
|
|
92
|
+
else if (rectangularLocationSelectionJSON.aspect.width && rectangularLocationSelectionJSON.aspect.aspect) {
|
|
93
|
+
var width = Common_1.NumberWithUnit
|
|
94
|
+
.fromJSON(rectangularLocationSelectionJSON.aspect.width);
|
|
95
|
+
return this.withWidthAndAspectRatio(width, rectangularLocationSelectionJSON.aspect.aspect);
|
|
96
|
+
}
|
|
97
|
+
else if (rectangularLocationSelectionJSON.aspect.height && rectangularLocationSelectionJSON.aspect.aspect) {
|
|
98
|
+
var height = Common_1.NumberWithUnit
|
|
99
|
+
.fromJSON(rectangularLocationSelectionJSON.aspect.height);
|
|
100
|
+
return this.withHeightAndAspectRatio(height, rectangularLocationSelectionJSON.aspect.aspect);
|
|
101
|
+
}
|
|
102
|
+
else if (rectangularLocationSelectionJSON.aspect.shorterDimension && rectangularLocationSelectionJSON.aspect.aspect) {
|
|
103
|
+
var shorterDimension = Common_1.NumberWithUnit
|
|
104
|
+
.fromJSON(rectangularLocationSelectionJSON.aspect.shorterDimension);
|
|
105
|
+
var sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect
|
|
106
|
+
.sizeWithShorterDimensionAndAspectRatio(shorterDimension, rectangularLocationSelectionJSON.aspect.aspect);
|
|
107
|
+
var locationSelection = new RectangularLocationSelection();
|
|
108
|
+
locationSelection._sizeWithUnitAndAspect = sizeWithUnitAndAspect;
|
|
109
|
+
return locationSelection;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
throw new Error("RectangularLocationSelectionJSON is malformed: " + JSON.stringify(rectangularLocationSelectionJSON));
|
|
113
|
+
}
|
|
114
|
+
};
|
|
79
115
|
__decorate([
|
|
80
116
|
Serializeable_1.nameForSerialization('size')
|
|
81
117
|
], RectangularLocationSelection.prototype, "_sizeWithUnitAndAspect", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocationSelection.js","sourceRoot":"","sources":["../ts/LocationSelection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA+E;AAC/E,yDAAqF;
|
|
1
|
+
{"version":3,"file":"LocationSelection.js","sourceRoot":"","sources":["../ts/LocationSelection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA+E;AAC/E,yDAAqF;AAOrF,yCAAyC;AAC5B,QAAA,qBAAqB,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AAEtD;IAA6C,2CAAoB;IAe/D,iCAAmB,MAAsB;QAAzC,YACE,iBAAO,SAER;QAjBO,UAAI,GAAG,QAAQ,CAAC;QAgBtB,KAAI,CAAC,OAAO,GAAG,MAAM,CAAC;;IACxB,CAAC;IAZD,sBAAW,2CAAM;aAAjB;YACE,OAAO,IAAI,CAAC,OAAO,CAAC;QACtB,CAAC;;;OAAA;IAEM,gCAAQ,GAAf,UAAgB,IAAiC;QAC/C,IAAM,MAAM,GAAI,uBAA+C,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtF,OAAO,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IATD;QADC,oCAAoB,CAAC,QAAQ,CAAC;4DACC;IAelC,8BAAC;CAAA,AAnBD,CAA6C,oCAAoB,GAmBhE;AAnBY,0DAAu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H,CAAC;IAvDD;QADC,oCAAoB,CAAC,MAAM,CAAC;gFAC0B;IAwDzD,mCAAC;CAAA,AA5DD,CAAkD,oCAAoB,GA4DrE;AA5DY,oEAA4B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RadiusLocationSelection, RectangularLocationSelection } from '../LocationSelection';
|
|
2
|
+
import { NumberWithUnitJSON, SizeWithUnitAndAspectJSON } from './PrivateCommon';
|
|
3
|
+
export interface RadiusLocationSelectionJSON {
|
|
4
|
+
radius: NumberWithUnitJSON;
|
|
5
|
+
}
|
|
6
|
+
export interface PrivateRadiusLocationSelection {
|
|
7
|
+
fromJSON(JSON: RadiusLocationSelectionJSON): RadiusLocationSelection;
|
|
8
|
+
}
|
|
9
|
+
export interface RectangularLocationSelectionJSON {
|
|
10
|
+
aspect: SizeWithUnitAndAspectJSON;
|
|
11
|
+
}
|
|
12
|
+
export interface PrivateRectangularLocationSelection {
|
|
13
|
+
fromJSON(JSON: RectangularLocationSelectionJSON): RectangularLocationSelection;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrivateLocationSelection.js","sourceRoot":"","sources":["../../ts/private/PrivateLocationSelection.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scandit-react-native-datacapture-core",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.16.0-beta.2",
|
|
4
4
|
"description": "Scandit Data Capture SDK for React Native",
|
|
5
5
|
"homepage": "https://github.com/Scandit/scandit-react-native-datacapture-core",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -9,14 +9,14 @@ Pod::Spec.new do |s|
|
|
|
9
9
|
s.homepage = package["homepage"]
|
|
10
10
|
s.license = package["license"]
|
|
11
11
|
s.authors = { package["author"]["name"] => package["author"]["email"] }
|
|
12
|
-
s.platforms = { :ios => "
|
|
12
|
+
s.platforms = { :ios => "13.0" }
|
|
13
13
|
s.source = { :git => package["homepage"] + ".git", :tag => "#{s.version}" }
|
|
14
14
|
s.swift_version = '4.0'
|
|
15
15
|
s.source_files = "ios/Sources/**/*.{h,m,swift}"
|
|
16
16
|
s.requires_arc = true
|
|
17
17
|
s.module_name = "ScanditDataCaptureCore"
|
|
18
18
|
s.header_dir = "ScanditDataCaptureCore"
|
|
19
|
-
s.dependency 'ScanditCaptureCore', '= 6.
|
|
19
|
+
s.dependency 'ScanditCaptureCore', '= 6.16.0-beta.2'
|
|
20
20
|
|
|
21
21
|
s.dependency "React"
|
|
22
22
|
end
|