@momo-kits/camerakit 0.152.4-sp.4 → 0.152.5
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
|
@@ -68,7 +68,7 @@ dependencies {
|
|
|
68
68
|
|
|
69
69
|
implementation 'com.google.mlkit:barcode-scanning:17.3.0'
|
|
70
70
|
|
|
71
|
-
implementation
|
|
71
|
+
implementation fileTree(dir: "libs", include: ["*.aar"])
|
|
72
72
|
implementation 'com.google.zxing:core:3.5.1'
|
|
73
73
|
}
|
|
74
74
|
repositories {
|
|
Binary file
|
|
@@ -41,7 +41,6 @@ class RealCamera: NSObject, CameraProtocol, AVCaptureMetadataOutputObjectsDelega
|
|
|
41
41
|
private var resetFocus: (() -> Void)?
|
|
42
42
|
private var focusFinished: (() -> Void)?
|
|
43
43
|
private var onBarcodeRead: ((_ barcode: String,_ codeFormat : CodeFormat) -> Void)?
|
|
44
|
-
private var supportedBarcodeTypes: [CodeFormat] = []
|
|
45
44
|
private var scannerFrameSize: CGRect? = nil
|
|
46
45
|
private var barcodeFrameSize: CGSize? = nil
|
|
47
46
|
private var onOrientationChange: RCTDirectEventBlock?
|
|
@@ -101,7 +100,6 @@ class RealCamera: NSObject, CameraProtocol, AVCaptureMetadataOutputObjectsDelega
|
|
|
101
100
|
// MARK: - Public
|
|
102
101
|
|
|
103
102
|
func setup(cameraType: CameraType, supportedBarcodeType: [CodeFormat]) {
|
|
104
|
-
self.supportedBarcodeTypes = supportedBarcodeType
|
|
105
103
|
|
|
106
104
|
// Setup the capture session with priority on basic video preview first
|
|
107
105
|
sessionQueue.async {
|
|
@@ -210,7 +208,6 @@ class RealCamera: NSObject, CameraProtocol, AVCaptureMetadataOutputObjectsDelega
|
|
|
210
208
|
}
|
|
211
209
|
}
|
|
212
210
|
|
|
213
|
-
// MARK: - Zoom
|
|
214
211
|
func zoomPinchStart() {
|
|
215
212
|
sessionQueue.async {
|
|
216
213
|
guard let videoDevice = self.videoDeviceInput?.device else { return }
|
|
@@ -494,7 +491,6 @@ class RealCamera: NSObject, CameraProtocol, AVCaptureMetadataOutputObjectsDelega
|
|
|
494
491
|
onBarcodeRead: ((_ barcode: String,_ codeFormat:CodeFormat) -> Void)?) {
|
|
495
492
|
sessionQueue.async {
|
|
496
493
|
self.onBarcodeRead = onBarcodeRead
|
|
497
|
-
self.supportedBarcodeTypes = supportedBarcodeType
|
|
498
494
|
|
|
499
495
|
let availableTypes = self.metadataOutput.availableMetadataObjectTypes
|
|
500
496
|
let newTypes: [AVMetadataObject.ObjectType]
|
package/package.json
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
2
|
+
"name": "@momo-kits/camerakit",
|
|
3
|
+
"version": "0.152.5",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/teslamotors/react-native-camera-kit.git"
|
|
7
|
+
},
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"registry": "https://registry.npmjs.org/"
|
|
10
|
+
},
|
|
11
|
+
"description": "A high performance, fully featured, rock solid camera library for React Native applications",
|
|
12
|
+
"nativePackage": true,
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "echo",
|
|
15
|
+
"test": "jest",
|
|
16
|
+
"lint": "yarn eslint -c .eslintrc.js"
|
|
17
|
+
},
|
|
18
|
+
"main": "./src/index.ts",
|
|
19
|
+
"dependencies": {},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"react": "19.0.0",
|
|
23
|
+
"react-native": "0.80.1"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": "*",
|
|
27
|
+
"react-native": "*"
|
|
28
|
+
},
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18"
|
|
31
|
+
},
|
|
32
|
+
"codegenConfig": {
|
|
33
|
+
"name": "rncamerakit_specs",
|
|
34
|
+
"type": "all",
|
|
35
|
+
"jsSrcsDir": "src/specs",
|
|
36
|
+
"android": {
|
|
37
|
+
"javaPackageName": "com.rncamerakit"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"packageManager": "yarn@1.22.22"
|
|
41
|
+
}
|