capacitor-camera-module 0.0.46 → 0.0.48

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.
@@ -5,8 +5,7 @@ import UIKit
5
5
  import Photos
6
6
 
7
7
  @objc(CameraModule)
8
- public class CameraModulePlugin: CAPPlugin,
9
- AVCaptureVideoDataOutputSampleBufferDelegate {
8
+ public class CameraModulePlugin: CAPPlugin,CAPBridgedPlugin,AVCaptureVideoDataOutputSampleBufferDelegate {
10
9
 
11
10
  // MARK: - Camera
12
11
 
@@ -32,7 +31,10 @@ public class CameraModulePlugin: CAPPlugin,
32
31
 
33
32
  // MARK: - Capacitor Bridge
34
33
 
35
- public let pluginMethods: [CAPPluginMethod] = [
34
+ public static let identifier = "CameraModule"
35
+ public static let jsName = "CameraModule"
36
+
37
+ public static let pluginMethods: [CAPPluginMethod] = [
36
38
  CAPPluginMethod(name: "checkPermission", returnType: CAPPluginReturnPromise),
37
39
  CAPPluginMethod(name: "requestPermission", returnType: CAPPluginReturnPromise),
38
40
 
@@ -53,6 +55,7 @@ public class CameraModulePlugin: CAPPlugin,
53
55
  CAPPluginMethod(name: "stopBarcodeScan", returnType: CAPPluginReturnPromise)
54
56
  ]
55
57
 
58
+
56
59
  // MARK: - Lifecycle
57
60
 
58
61
  public override func load() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-camera-module",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "description": "Plugin to request permissiones view camera take phots",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",