scandit-react-native-datacapture-core 8.2.1 → 8.3.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/android/build.gradle +20 -9
- package/android/generated/java/com/facebook/fbreact/specs/NativeScanditDataCaptureCoreSpec.java +83 -0
- package/android/generated/java/com/facebook/react/viewmanagers/RNTDataCaptureViewManagerDelegate.java +26 -0
- package/android/generated/java/com/facebook/react/viewmanagers/RNTDataCaptureViewManagerInterface.java +16 -0
- package/android/generated/jni/CMakeLists.txt +29 -0
- package/android/generated/jni/ScanditReactNativeDatacaptureCoreSpec-generated.cpp +52 -0
- package/android/generated/jni/ScanditReactNativeDatacaptureCoreSpec.h +31 -0
- package/android/generated/jni/react/renderer/components/ScanditReactNativeDatacaptureCoreSpec/ComponentDescriptors.cpp +22 -0
- package/android/generated/jni/react/renderer/components/ScanditReactNativeDatacaptureCoreSpec/ComponentDescriptors.h +24 -0
- package/android/generated/jni/react/renderer/components/ScanditReactNativeDatacaptureCoreSpec/EventEmitters.cpp +16 -0
- package/android/generated/jni/react/renderer/components/ScanditReactNativeDatacaptureCoreSpec/EventEmitters.h +23 -0
- package/android/generated/jni/react/renderer/components/ScanditReactNativeDatacaptureCoreSpec/Props.cpp +25 -0
- package/android/generated/jni/react/renderer/components/ScanditReactNativeDatacaptureCoreSpec/Props.h +27 -0
- package/android/generated/jni/react/renderer/components/ScanditReactNativeDatacaptureCoreSpec/ScanditReactNativeDatacaptureCoreSpecJSI-generated.cpp +47 -0
- package/android/generated/jni/react/renderer/components/ScanditReactNativeDatacaptureCoreSpec/ScanditReactNativeDatacaptureCoreSpecJSI.h +169 -0
- package/android/generated/jni/react/renderer/components/ScanditReactNativeDatacaptureCoreSpec/ShadowNodes.cpp +17 -0
- package/android/generated/jni/react/renderer/components/ScanditReactNativeDatacaptureCoreSpec/ShadowNodes.h +32 -0
- package/android/generated/jni/react/renderer/components/ScanditReactNativeDatacaptureCoreSpec/States.cpp +16 -0
- package/android/generated/jni/react/renderer/components/ScanditReactNativeDatacaptureCoreSpec/States.h +29 -0
- package/android/src/main/AndroidManifest.xml +3 -1
- package/android/src/main/AndroidManifestNew.xml +3 -1
- package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/{ScanditDataCaptureCoreModule.kt → ScanditDataCaptureCoreModuleBase.kt} +15 -40
- package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/ScanditDataCaptureCorePackage.kt +1 -23
- package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/ui/{DataCaptureViewManager.kt → DataCaptureViewManagerBase.kt} +9 -4
- package/android/src/main/newArch/kotlin/com/scandit/datacapture/reactnative/core/ScanditDataCaptureCoreModule.kt +72 -0
- package/android/src/main/newArch/kotlin/com/scandit/datacapture/reactnative/core/ScanditReactPackageBase.kt +44 -11
- package/android/src/main/newArch/kotlin/com/scandit/datacapture/reactnative/core/ui/DataCaptureViewManager.kt +31 -0
- package/android/src/main/newArch/kotlin/com/scandit/datacapture/reactnative/core/utils/ReactNativeEventEmitter.kt +39 -0
- package/android/src/main/oldArch/kotlin/com/scandit/datacapture/reactnative/core/ScanditDataCaptureCoreModule.kt +86 -0
- package/android/src/main/oldArch/kotlin/com/scandit/datacapture/reactnative/core/ScanditReactPackageBase.kt +2 -2
- package/android/src/main/oldArch/kotlin/com/scandit/datacapture/reactnative/core/ui/DataCaptureViewManager.kt +18 -0
- package/android/src/main/{kotlin → oldArch/kotlin}/com/scandit/datacapture/reactnative/core/utils/ReactNativeEventEmitter.kt +4 -1
- package/dist/core.js +871 -69
- package/dist/core.js.map +1 -1
- package/dist/dts/DataCaptureView.d.ts +3 -0
- package/dist/dts/index.d.ts +79 -13
- package/dist/dts/native/RNNativeCaller.d.ts +8 -1
- package/dist/index.js +44 -7
- package/dist/index.js.flow +79 -99
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/ios/Sources/NewArch/RCTDataCaptureView.mm +110 -0
- package/ios/Sources/NewArch/ScanditDataCaptureCore.mm +102 -0
- package/ios/Sources/OldArch/RCTFabricDataCaptureViewContainers.mm +17 -0
- package/ios/Sources/OldArch/ScanditDataCaptureCore.mm +92 -0
- package/ios/Sources/RNTSDCDataCaptureViewManager.swift +41 -0
- package/ios/Sources/SDCLogger.h +11 -0
- package/ios/Sources/SDCLogger.m +16 -0
- package/ios/Sources/SDCTurboModuleEventBridge.h +42 -0
- package/ios/Sources/SDCTurboModuleEventBridge.m +20 -0
- package/ios/Sources/ScanditDataCaptureCore-Bridging-Header.h +3 -0
- package/ios/Sources/ScanditDataCaptureCore.h +35 -1
- package/ios/Sources/ScanditDataCaptureCore.swift +134 -60
- package/ios/Sources/Shared/DataCaptureViewWrapper.swift +129 -0
- package/ios/Sources/{Protocols → Shared}/ScanditReactNativeFactoryContainer.swift +7 -3
- package/ios/Sources/Utils/CallbackLock.swift +1 -1
- package/ios/Sources/Utils/ReactNativeEmitter.swift +43 -10
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/ComponentDescriptors.cpp +22 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/ComponentDescriptors.h +24 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/EventEmitters.cpp +16 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/EventEmitters.h +23 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/Props.cpp +25 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/Props.h +27 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/RCTComponentViewHelpers.h +20 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/ScanditReactNativeDatacaptureCoreSpec-generated.mm +67 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/ScanditReactNativeDatacaptureCoreSpec.h +109 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/ShadowNodes.cpp +17 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/ShadowNodes.h +32 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/States.cpp +16 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/States.h +29 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpecJSI-generated.cpp +47 -0
- package/ios/generated/ScanditReactNativeDatacaptureCoreSpecJSI.h +169 -0
- package/package.json +26 -7
- package/react-native.config.js +12 -0
- package/scandit-react-native-datacapture-core.podspec +49 -17
- package/specs/NativeScanditDataCaptureCore.ts +36 -0
- package/specs/RNTDataCaptureViewNativeComponent.ts +14 -0
- package/ios/Sources/ScanditDataCaptureCore.m +0 -30
- package/ios/Sources/ScanditDataCaptureViewManager.swift +0 -68
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleObjCpp
|
|
8
|
+
*
|
|
9
|
+
* We create an umbrella header (and corresponding implementation) here since
|
|
10
|
+
* Cxx compilation in BUCK has a limitation: source-code producing genrule()s
|
|
11
|
+
* must have a single output. More files => more genrule()s => slower builds.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
#import "ScanditReactNativeDatacaptureCoreSpec.h"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@implementation NativeScanditDataCaptureCoreSpecBase
|
|
18
|
+
- (void)emitOnScanditEvent:(NSDictionary *)value
|
|
19
|
+
{
|
|
20
|
+
_eventEmitterCallback("onScanditEvent", value);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
|
|
24
|
+
{
|
|
25
|
+
_eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
|
|
26
|
+
}
|
|
27
|
+
@end
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
namespace facebook::react {
|
|
31
|
+
|
|
32
|
+
static facebook::jsi::Value __hostFunction_NativeScanditDataCaptureCoreSpecJSI_createDataCaptureView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
33
|
+
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "createDataCaptureView", @selector(createDataCaptureView:resolve:reject:), args, count);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
static facebook::jsi::Value __hostFunction_NativeScanditDataCaptureCoreSpecJSI_removeDataCaptureView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
37
|
+
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "removeDataCaptureView", @selector(removeDataCaptureView:resolve:reject:), args, count);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static facebook::jsi::Value __hostFunction_NativeScanditDataCaptureCoreSpecJSI_executeCore(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
41
|
+
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "executeCore", @selector(executeCore:resolve:reject:), args, count);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static facebook::jsi::Value __hostFunction_NativeScanditDataCaptureCoreSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
45
|
+
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
NativeScanditDataCaptureCoreSpecJSI::NativeScanditDataCaptureCoreSpecJSI(const ObjCTurboModule::InitParams ¶ms)
|
|
49
|
+
: ObjCTurboModule(params) {
|
|
50
|
+
|
|
51
|
+
methodMap_["createDataCaptureView"] = MethodMetadata {1, __hostFunction_NativeScanditDataCaptureCoreSpecJSI_createDataCaptureView};
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
methodMap_["removeDataCaptureView"] = MethodMetadata {1, __hostFunction_NativeScanditDataCaptureCoreSpecJSI_removeDataCaptureView};
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
methodMap_["executeCore"] = MethodMetadata {1, __hostFunction_NativeScanditDataCaptureCoreSpecJSI_executeCore};
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeScanditDataCaptureCoreSpecJSI_getConstants};
|
|
61
|
+
|
|
62
|
+
eventEmitterMap_["onScanditEvent"] = std::make_shared<AsyncEventEmitter<id>>();
|
|
63
|
+
setEventEmitterCallback([&](const std::string &name, id value) {
|
|
64
|
+
static_cast<AsyncEventEmitter<id> &>(*eventEmitterMap_[name]).emit(value);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
} // namespace facebook::react
|
package/ios/generated/ScanditReactNativeDatacaptureCoreSpec/ScanditReactNativeDatacaptureCoreSpec.h
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleObjCpp
|
|
8
|
+
*
|
|
9
|
+
* We create an umbrella header (and corresponding implementation) here since
|
|
10
|
+
* Cxx compilation in BUCK has a limitation: source-code producing genrule()s
|
|
11
|
+
* must have a single output. More files => more genrule()s => slower builds.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
#ifndef __cplusplus
|
|
15
|
+
#error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
|
|
16
|
+
#endif
|
|
17
|
+
|
|
18
|
+
// Avoid multiple includes of ScanditReactNativeDatacaptureCoreSpec symbols
|
|
19
|
+
#ifndef ScanditReactNativeDatacaptureCoreSpec_H
|
|
20
|
+
#define ScanditReactNativeDatacaptureCoreSpec_H
|
|
21
|
+
|
|
22
|
+
#import <Foundation/Foundation.h>
|
|
23
|
+
#import <RCTRequired/RCTRequired.h>
|
|
24
|
+
#import <RCTTypeSafety/RCTConvertHelpers.h>
|
|
25
|
+
#import <RCTTypeSafety/RCTTypedModuleConstants.h>
|
|
26
|
+
#import <React/RCTBridgeModule.h>
|
|
27
|
+
#import <React/RCTCxxConvert.h>
|
|
28
|
+
#import <React/RCTManagedPointer.h>
|
|
29
|
+
#import <ReactCommon/RCTTurboModule.h>
|
|
30
|
+
#import <optional>
|
|
31
|
+
#import <vector>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
35
|
+
namespace JS {
|
|
36
|
+
namespace NativeScanditDataCaptureCore {
|
|
37
|
+
struct Constants {
|
|
38
|
+
|
|
39
|
+
struct Builder {
|
|
40
|
+
// Backwards compat for RCTTypedModuleConstants
|
|
41
|
+
using ResultT = Constants;
|
|
42
|
+
|
|
43
|
+
struct Input {
|
|
44
|
+
RCTRequired<id<NSObject>> Defaults;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** Initialize with a set of values */
|
|
48
|
+
Builder(const Input i);
|
|
49
|
+
/** Initialize with an existing Constants */
|
|
50
|
+
Builder(Constants i);
|
|
51
|
+
/** Builds the object. Generally used only by the infrastructure. */
|
|
52
|
+
NSDictionary *buildUnsafeRawValue() const { return _factory(); };
|
|
53
|
+
private:
|
|
54
|
+
NSDictionary *(^_factory)(void);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; }
|
|
58
|
+
NSDictionary *unsafeRawValue() const { return _v; }
|
|
59
|
+
private:
|
|
60
|
+
Constants(NSDictionary *const v) : _v(v) {}
|
|
61
|
+
NSDictionary *_v;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
@protocol NativeScanditDataCaptureCoreSpec <RCTBridgeModule, RCTTurboModule>
|
|
66
|
+
|
|
67
|
+
- (void)createDataCaptureView:(NSDictionary *)data
|
|
68
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
69
|
+
reject:(RCTPromiseRejectBlock)reject;
|
|
70
|
+
- (void)removeDataCaptureView:(NSDictionary *)data
|
|
71
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
72
|
+
reject:(RCTPromiseRejectBlock)reject;
|
|
73
|
+
- (void)executeCore:(NSDictionary *)data
|
|
74
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
75
|
+
reject:(RCTPromiseRejectBlock)reject;
|
|
76
|
+
- (facebook::react::ModuleConstants<JS::NativeScanditDataCaptureCore::Constants::Builder>)constantsToExport;
|
|
77
|
+
- (facebook::react::ModuleConstants<JS::NativeScanditDataCaptureCore::Constants::Builder>)getConstants;
|
|
78
|
+
|
|
79
|
+
@end
|
|
80
|
+
|
|
81
|
+
@interface NativeScanditDataCaptureCoreSpecBase : NSObject {
|
|
82
|
+
@protected
|
|
83
|
+
facebook::react::EventEmitterCallback _eventEmitterCallback;
|
|
84
|
+
}
|
|
85
|
+
- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper;
|
|
86
|
+
|
|
87
|
+
- (void)emitOnScanditEvent:(NSDictionary *)value;
|
|
88
|
+
@end
|
|
89
|
+
|
|
90
|
+
namespace facebook::react {
|
|
91
|
+
/**
|
|
92
|
+
* ObjC++ class for module 'NativeScanditDataCaptureCore'
|
|
93
|
+
*/
|
|
94
|
+
class JSI_EXPORT NativeScanditDataCaptureCoreSpecJSI : public ObjCTurboModule {
|
|
95
|
+
public:
|
|
96
|
+
NativeScanditDataCaptureCoreSpecJSI(const ObjCTurboModule::InitParams ¶ms);
|
|
97
|
+
};
|
|
98
|
+
} // namespace facebook::react
|
|
99
|
+
inline JS::NativeScanditDataCaptureCore::Constants::Builder::Builder(const Input i) : _factory(^{
|
|
100
|
+
NSMutableDictionary *d = [NSMutableDictionary new];
|
|
101
|
+
auto Defaults = i.Defaults.get();
|
|
102
|
+
d[@"Defaults"] = Defaults;
|
|
103
|
+
return d;
|
|
104
|
+
}) {}
|
|
105
|
+
inline JS::NativeScanditDataCaptureCore::Constants::Builder::Builder(Constants i) : _factory(^{
|
|
106
|
+
return i.unsafeRawValue();
|
|
107
|
+
}) {}
|
|
108
|
+
NS_ASSUME_NONNULL_END
|
|
109
|
+
#endif // ScanditReactNativeDatacaptureCoreSpec_H
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateShadowNodeCpp.js
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#include "ShadowNodes.h"
|
|
12
|
+
|
|
13
|
+
namespace facebook::react {
|
|
14
|
+
|
|
15
|
+
extern const char RNTDataCaptureViewComponentName[] = "RNTDataCaptureView";
|
|
16
|
+
|
|
17
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateShadowNodeH.js
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#pragma once
|
|
12
|
+
|
|
13
|
+
#include "EventEmitters.h"
|
|
14
|
+
#include "Props.h"
|
|
15
|
+
#include "States.h"
|
|
16
|
+
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
|
|
17
|
+
#include <jsi/jsi.h>
|
|
18
|
+
|
|
19
|
+
namespace facebook::react {
|
|
20
|
+
|
|
21
|
+
JSI_EXPORT extern const char RNTDataCaptureViewComponentName[];
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
* `ShadowNode` for <RNTDataCaptureView> component.
|
|
25
|
+
*/
|
|
26
|
+
using RNTDataCaptureViewShadowNode = ConcreteViewShadowNode<
|
|
27
|
+
RNTDataCaptureViewComponentName,
|
|
28
|
+
RNTDataCaptureViewProps,
|
|
29
|
+
RNTDataCaptureViewEventEmitter,
|
|
30
|
+
RNTDataCaptureViewState>;
|
|
31
|
+
|
|
32
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateStateCpp.js
|
|
9
|
+
*/
|
|
10
|
+
#include "States.h"
|
|
11
|
+
|
|
12
|
+
namespace facebook::react {
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateStateH.js
|
|
8
|
+
*/
|
|
9
|
+
#pragma once
|
|
10
|
+
|
|
11
|
+
#ifdef ANDROID
|
|
12
|
+
#include <folly/dynamic.h>
|
|
13
|
+
#endif
|
|
14
|
+
|
|
15
|
+
namespace facebook::react {
|
|
16
|
+
|
|
17
|
+
class RNTDataCaptureViewState {
|
|
18
|
+
public:
|
|
19
|
+
RNTDataCaptureViewState() = default;
|
|
20
|
+
|
|
21
|
+
#ifdef ANDROID
|
|
22
|
+
RNTDataCaptureViewState(RNTDataCaptureViewState const &previousState, folly::dynamic data){};
|
|
23
|
+
folly::dynamic getDynamic() const {
|
|
24
|
+
return {};
|
|
25
|
+
};
|
|
26
|
+
#endif
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleCpp.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#include "ScanditReactNativeDatacaptureCoreSpecJSI.h"
|
|
11
|
+
|
|
12
|
+
namespace facebook::react {
|
|
13
|
+
|
|
14
|
+
static jsi::Value __hostFunction_NativeScanditDataCaptureCoreCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
15
|
+
return static_cast<NativeScanditDataCaptureCoreCxxSpecJSI *>(&turboModule)->getConstants(
|
|
16
|
+
rt
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
static jsi::Value __hostFunction_NativeScanditDataCaptureCoreCxxSpecJSI_createDataCaptureView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
20
|
+
return static_cast<NativeScanditDataCaptureCoreCxxSpecJSI *>(&turboModule)->createDataCaptureView(
|
|
21
|
+
rt,
|
|
22
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
static jsi::Value __hostFunction_NativeScanditDataCaptureCoreCxxSpecJSI_removeDataCaptureView(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
26
|
+
return static_cast<NativeScanditDataCaptureCoreCxxSpecJSI *>(&turboModule)->removeDataCaptureView(
|
|
27
|
+
rt,
|
|
28
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
static jsi::Value __hostFunction_NativeScanditDataCaptureCoreCxxSpecJSI_executeCore(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
32
|
+
return static_cast<NativeScanditDataCaptureCoreCxxSpecJSI *>(&turboModule)->executeCore(
|
|
33
|
+
rt,
|
|
34
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
NativeScanditDataCaptureCoreCxxSpecJSI::NativeScanditDataCaptureCoreCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
|
|
39
|
+
: TurboModule("ScanditDataCaptureCore", jsInvoker) {
|
|
40
|
+
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeScanditDataCaptureCoreCxxSpecJSI_getConstants};
|
|
41
|
+
methodMap_["createDataCaptureView"] = MethodMetadata {1, __hostFunction_NativeScanditDataCaptureCoreCxxSpecJSI_createDataCaptureView};
|
|
42
|
+
methodMap_["removeDataCaptureView"] = MethodMetadata {1, __hostFunction_NativeScanditDataCaptureCoreCxxSpecJSI_removeDataCaptureView};
|
|
43
|
+
methodMap_["executeCore"] = MethodMetadata {1, __hostFunction_NativeScanditDataCaptureCoreCxxSpecJSI_executeCore};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleH.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#pragma once
|
|
11
|
+
|
|
12
|
+
#include <ReactCommon/TurboModule.h>
|
|
13
|
+
#include <react/bridging/Bridging.h>
|
|
14
|
+
|
|
15
|
+
namespace facebook::react {
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
#pragma mark - NativeScanditDataCaptureCoreScanditEventPayload
|
|
20
|
+
|
|
21
|
+
template <typename P0, typename P1, typename P2, typename P3>
|
|
22
|
+
struct NativeScanditDataCaptureCoreScanditEventPayload {
|
|
23
|
+
P0 name;
|
|
24
|
+
P1 data;
|
|
25
|
+
P2 viewId;
|
|
26
|
+
P3 modeId;
|
|
27
|
+
bool operator==(const NativeScanditDataCaptureCoreScanditEventPayload &other) const {
|
|
28
|
+
return name == other.name && data == other.data && viewId == other.viewId && modeId == other.modeId;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
template <typename T>
|
|
33
|
+
struct NativeScanditDataCaptureCoreScanditEventPayloadBridging {
|
|
34
|
+
static T types;
|
|
35
|
+
|
|
36
|
+
static T fromJs(
|
|
37
|
+
jsi::Runtime &rt,
|
|
38
|
+
const jsi::Object &value,
|
|
39
|
+
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
40
|
+
T result{
|
|
41
|
+
bridging::fromJs<decltype(types.name)>(rt, value.getProperty(rt, "name"), jsInvoker),
|
|
42
|
+
bridging::fromJs<decltype(types.data)>(rt, value.getProperty(rt, "data"), jsInvoker),
|
|
43
|
+
bridging::fromJs<decltype(types.viewId)>(rt, value.getProperty(rt, "viewId"), jsInvoker),
|
|
44
|
+
bridging::fromJs<decltype(types.modeId)>(rt, value.getProperty(rt, "modeId"), jsInvoker)};
|
|
45
|
+
return result;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
#ifdef DEBUG
|
|
49
|
+
static jsi::String nameToJs(jsi::Runtime &rt, decltype(types.name) value) {
|
|
50
|
+
return bridging::toJs(rt, value);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static jsi::String dataToJs(jsi::Runtime &rt, decltype(types.data) value) {
|
|
54
|
+
return bridging::toJs(rt, value);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static double viewIdToJs(jsi::Runtime &rt, decltype(types.viewId) value) {
|
|
58
|
+
return bridging::toJs(rt, value);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
static double modeIdToJs(jsi::Runtime &rt, decltype(types.modeId) value) {
|
|
62
|
+
return bridging::toJs(rt, value);
|
|
63
|
+
}
|
|
64
|
+
#endif
|
|
65
|
+
|
|
66
|
+
static jsi::Object toJs(
|
|
67
|
+
jsi::Runtime &rt,
|
|
68
|
+
const T &value,
|
|
69
|
+
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
70
|
+
auto result = facebook::jsi::Object(rt);
|
|
71
|
+
result.setProperty(rt, "name", bridging::toJs(rt, value.name, jsInvoker));
|
|
72
|
+
result.setProperty(rt, "data", bridging::toJs(rt, value.data, jsInvoker));
|
|
73
|
+
if (value.viewId) {
|
|
74
|
+
result.setProperty(rt, "viewId", bridging::toJs(rt, value.viewId.value(), jsInvoker));
|
|
75
|
+
}
|
|
76
|
+
if (value.modeId) {
|
|
77
|
+
result.setProperty(rt, "modeId", bridging::toJs(rt, value.modeId.value(), jsInvoker));
|
|
78
|
+
}
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
class JSI_EXPORT NativeScanditDataCaptureCoreCxxSpecJSI : public TurboModule {
|
|
84
|
+
protected:
|
|
85
|
+
NativeScanditDataCaptureCoreCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
86
|
+
|
|
87
|
+
public:
|
|
88
|
+
virtual jsi::Object getConstants(jsi::Runtime &rt) = 0;
|
|
89
|
+
virtual jsi::Value createDataCaptureView(jsi::Runtime &rt, jsi::Object data) = 0;
|
|
90
|
+
virtual jsi::Value removeDataCaptureView(jsi::Runtime &rt, jsi::Object data) = 0;
|
|
91
|
+
virtual jsi::Value executeCore(jsi::Runtime &rt, jsi::Object data) = 0;
|
|
92
|
+
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
template <typename T>
|
|
96
|
+
class JSI_EXPORT NativeScanditDataCaptureCoreCxxSpec : public TurboModule {
|
|
97
|
+
public:
|
|
98
|
+
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
99
|
+
return delegate_.create(rt, propName);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
103
|
+
return delegate_.getPropertyNames(runtime);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
static constexpr std::string_view kModuleName = "ScanditDataCaptureCore";
|
|
107
|
+
|
|
108
|
+
protected:
|
|
109
|
+
NativeScanditDataCaptureCoreCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
110
|
+
: TurboModule(std::string{NativeScanditDataCaptureCoreCxxSpec::kModuleName}, jsInvoker),
|
|
111
|
+
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
112
|
+
|
|
113
|
+
template <typename OnScanditEventType> void emitOnScanditEvent(OnScanditEventType value) {
|
|
114
|
+
static_assert(bridging::supportsFromJs<OnScanditEventType, jsi::Object>, "value cannnot be converted to jsi::Object");
|
|
115
|
+
static_cast<AsyncEventEmitter<jsi::Value>&>(*delegate_.eventEmitterMap_["onScanditEvent"]).emit([jsInvoker = jsInvoker_, eventValue = value](jsi::Runtime& rt) -> jsi::Value {
|
|
116
|
+
return bridging::toJs(rt, eventValue, jsInvoker);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
private:
|
|
121
|
+
class Delegate : public NativeScanditDataCaptureCoreCxxSpecJSI {
|
|
122
|
+
public:
|
|
123
|
+
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
124
|
+
NativeScanditDataCaptureCoreCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
125
|
+
eventEmitterMap_["onScanditEvent"] = std::make_shared<AsyncEventEmitter<jsi::Value>>();
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
jsi::Object getConstants(jsi::Runtime &rt) override {
|
|
129
|
+
static_assert(
|
|
130
|
+
bridging::getParameterCount(&T::getConstants) == 1,
|
|
131
|
+
"Expected getConstants(...) to have 1 parameters");
|
|
132
|
+
|
|
133
|
+
return bridging::callFromJs<jsi::Object>(
|
|
134
|
+
rt, &T::getConstants, jsInvoker_, instance_);
|
|
135
|
+
}
|
|
136
|
+
jsi::Value createDataCaptureView(jsi::Runtime &rt, jsi::Object data) override {
|
|
137
|
+
static_assert(
|
|
138
|
+
bridging::getParameterCount(&T::createDataCaptureView) == 2,
|
|
139
|
+
"Expected createDataCaptureView(...) to have 2 parameters");
|
|
140
|
+
|
|
141
|
+
return bridging::callFromJs<jsi::Value>(
|
|
142
|
+
rt, &T::createDataCaptureView, jsInvoker_, instance_, std::move(data));
|
|
143
|
+
}
|
|
144
|
+
jsi::Value removeDataCaptureView(jsi::Runtime &rt, jsi::Object data) override {
|
|
145
|
+
static_assert(
|
|
146
|
+
bridging::getParameterCount(&T::removeDataCaptureView) == 2,
|
|
147
|
+
"Expected removeDataCaptureView(...) to have 2 parameters");
|
|
148
|
+
|
|
149
|
+
return bridging::callFromJs<jsi::Value>(
|
|
150
|
+
rt, &T::removeDataCaptureView, jsInvoker_, instance_, std::move(data));
|
|
151
|
+
}
|
|
152
|
+
jsi::Value executeCore(jsi::Runtime &rt, jsi::Object data) override {
|
|
153
|
+
static_assert(
|
|
154
|
+
bridging::getParameterCount(&T::executeCore) == 2,
|
|
155
|
+
"Expected executeCore(...) to have 2 parameters");
|
|
156
|
+
|
|
157
|
+
return bridging::callFromJs<jsi::Value>(
|
|
158
|
+
rt, &T::executeCore, jsInvoker_, instance_, std::move(data));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
private:
|
|
162
|
+
friend class NativeScanditDataCaptureCoreCxxSpec;
|
|
163
|
+
T *instance_;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
Delegate delegate_;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
} // namespace facebook::react
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scandit-react-native-datacapture-core",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
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": "dist/index.js",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"types": "./dist/dts/experimental.d.ts",
|
|
17
17
|
"flow": "./dist/experimental.js.flow"
|
|
18
18
|
},
|
|
19
|
-
"./package.json": "./package.json"
|
|
19
|
+
"./package.json": "./package.json",
|
|
20
|
+
"./react-native.config.js": "./react-native.config.js"
|
|
20
21
|
},
|
|
21
22
|
"scripts": {
|
|
23
|
+
"build": "rollup -c ../../rollup.config.js --bundleConfigAsCjs",
|
|
24
|
+
"generate-flow": "flowgen dist/dts/index.d.ts -o dist/index.js.flow && flowgen dist/dts/experimental.d.ts -o dist/experimental.js.flow",
|
|
22
25
|
"jest": "jest",
|
|
23
26
|
"coverage": "jest --coverage",
|
|
24
27
|
"test": "pnpm run lint",
|
|
25
|
-
"lint": "eslint
|
|
28
|
+
"lint": "eslint ts",
|
|
26
29
|
"tsc": "tsc",
|
|
27
|
-
"build": "pnpm run rollup && pnpm run generate-flow",
|
|
28
|
-
"rollup": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
29
|
-
"generate-flow": "flowgen dist/dts/index.d.ts -o dist/index.js.flow && flowgen dist/dts/experimental.d.ts -o dist/experimental.js.flow",
|
|
30
30
|
"start": "pnpm build -- --watch"
|
|
31
31
|
},
|
|
32
32
|
"keywords": [
|
|
@@ -64,7 +64,26 @@
|
|
|
64
64
|
"typescript": "4.9.5"
|
|
65
65
|
},
|
|
66
66
|
"packageManager": "pnpm@10.15.0",
|
|
67
|
+
"codegenConfig": {
|
|
68
|
+
"name": "ScanditReactNativeDatacaptureCoreSpec",
|
|
69
|
+
"type": "all",
|
|
70
|
+
"jsSrcsDir": "specs",
|
|
71
|
+
"outputDir": {
|
|
72
|
+
"ios": "ios/generated",
|
|
73
|
+
"android": "android/generated"
|
|
74
|
+
},
|
|
75
|
+
"includesGeneratedCode": true,
|
|
76
|
+
"android": {
|
|
77
|
+
"javaPackageName": "com.scandit.datacapture.reactnative.core"
|
|
78
|
+
},
|
|
79
|
+
"ios": {
|
|
80
|
+
"unstableRequiresMainQueueSetup": true,
|
|
81
|
+
"componentProvider": {
|
|
82
|
+
"RNTDataCaptureView": "RCTDataCaptureView"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
67
86
|
"dependencies": {
|
|
68
|
-
"scandit-datacapture-frameworks-core": "8.
|
|
87
|
+
"scandit-datacapture-frameworks-core": "8.3.0"
|
|
69
88
|
}
|
|
70
89
|
}
|
|
@@ -3,19 +3,27 @@ require "json"
|
|
|
3
3
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
4
|
version = package["version"]
|
|
5
5
|
|
|
6
|
-
# Helper to detect React Native version
|
|
6
|
+
# Helper to detect React Native version.
|
|
7
|
+
# Walks up the directory tree from the podspec location looking for
|
|
8
|
+
# node_modules/react-native/package.json, mirroring Node module resolution.
|
|
9
|
+
# This works regardless of whether dependencies are installed via file:, workspace:*,
|
|
10
|
+
# or any other layout (flat, hoisted, nested).
|
|
7
11
|
rn_version_gte = lambda do |min_version|
|
|
8
12
|
begin
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
dir = __dir__
|
|
14
|
+
rn_package_path = nil
|
|
15
|
+
until dir == File.dirname(dir) # stop at filesystem root
|
|
16
|
+
candidate = File.join(dir, "node_modules", "react-native", "package.json")
|
|
17
|
+
if File.exist?(candidate)
|
|
18
|
+
rn_package_path = candidate
|
|
19
|
+
break
|
|
20
|
+
end
|
|
21
|
+
dir = File.dirname(dir)
|
|
13
22
|
end
|
|
14
|
-
return false unless
|
|
23
|
+
return false unless rn_package_path
|
|
15
24
|
|
|
16
25
|
rn_package = JSON.parse(File.read(rn_package_path))
|
|
17
|
-
|
|
18
|
-
Gem::Version.new(rn_version) >= Gem::Version.new(min_version)
|
|
26
|
+
Gem::Version.new(rn_package["version"]) >= Gem::Version.new(min_version)
|
|
19
27
|
rescue
|
|
20
28
|
false
|
|
21
29
|
end
|
|
@@ -31,28 +39,52 @@ Pod::Spec.new do |s|
|
|
|
31
39
|
s.platforms = { :ios => "15.0" }
|
|
32
40
|
s.source = { :git => package["homepage"] + ".git", :tag => "#{s.version}" }
|
|
33
41
|
s.swift_version = '5.0'
|
|
34
|
-
s.source_files = "ios/Sources/**/*.{h,m,swift}"
|
|
35
42
|
s.requires_arc = true
|
|
36
43
|
s.module_name = "ScanditDataCaptureCore"
|
|
37
44
|
s.header_dir = "ScanditDataCaptureCore"
|
|
38
45
|
|
|
39
|
-
|
|
40
|
-
s.dependency "React-Core"
|
|
46
|
+
is_new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
|
|
41
47
|
|
|
42
|
-
#
|
|
43
|
-
|
|
48
|
+
# RCTReactNativeFactory was introduced in RN 0.78
|
|
49
|
+
is_factory_available = rn_version_gte.call("0.78.0")
|
|
50
|
+
|
|
51
|
+
if is_new_arch_enabled
|
|
52
|
+
s.source_files = "ios/Sources/**/*.{h,m,mm,swift}", "ios/generated/**/*.{h,m,mm,cpp}"
|
|
53
|
+
s.private_header_files = "ios/generated/**/*.h"
|
|
54
|
+
s.exclude_files = "ios/Sources/OldArch/**/*"
|
|
44
55
|
s.dependency "React-RCTAppDelegate"
|
|
45
56
|
|
|
46
57
|
swift_flags = ['-DRCT_NEW_ARCH_ENABLED']
|
|
47
|
-
|
|
48
|
-
if rn_version_gte.call("0.78.0")
|
|
58
|
+
if is_factory_available
|
|
49
59
|
swift_flags << '-DRCT_REACT_NATIVE_FACTORY_AVAILABLE'
|
|
50
60
|
end
|
|
51
61
|
|
|
52
62
|
s.pod_target_xcconfig = {
|
|
53
|
-
'OTHER_SWIFT_FLAGS' => swift_flags.join(' ')
|
|
63
|
+
'OTHER_SWIFT_FLAGS' => swift_flags.join(' '),
|
|
64
|
+
'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)/ios/generated"'
|
|
54
65
|
}
|
|
66
|
+
else
|
|
67
|
+
s.source_files = "ios/Sources/**/*.{h,m,mm,swift}"
|
|
68
|
+
s.exclude_files = "ios/Sources/NewArch/**/*"
|
|
69
|
+
s.dependency "React-RCTAppDelegate"
|
|
70
|
+
|
|
71
|
+
swift_flags = []
|
|
72
|
+
if is_factory_available
|
|
73
|
+
swift_flags << '-DRCT_REACT_NATIVE_FACTORY_AVAILABLE'
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
unless swift_flags.empty?
|
|
77
|
+
s.pod_target_xcconfig = {
|
|
78
|
+
'OTHER_SWIFT_FLAGS' => swift_flags.join(' ')
|
|
79
|
+
}
|
|
80
|
+
end
|
|
55
81
|
end
|
|
56
82
|
|
|
57
|
-
|
|
83
|
+
s.dependency "scandit-datacapture-frameworks-core", '= 8.3.0'
|
|
84
|
+
|
|
85
|
+
if respond_to?(:install_modules_dependencies, true)
|
|
86
|
+
install_modules_dependencies(s)
|
|
87
|
+
else
|
|
88
|
+
s.dependency "React-Core"
|
|
89
|
+
end
|
|
58
90
|
end
|