capacitor-camera-view 2.1.0 → 2.2.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/README.md +7 -6
- package/android/src/main/java/com/michaelwolz/capacitorcameraview/CameraView.kt +1 -0
- package/android/src/main/java/com/michaelwolz/capacitorcameraview/CameraViewPlugin.kt +6 -0
- package/android/src/main/java/com/michaelwolz/capacitorcameraview/model/BarcodeDetectionResult.kt +1 -0
- package/dist/docs.json +13 -1
- package/dist/esm/definitions.d.ts +17 -1
- package/dist/esm/definitions.js.map +1 -1
- package/ios/Sources/CameraViewPlugin/CameraEvents.swift +36 -12
- package/ios/Sources/CameraViewPlugin/CameraViewManager+BarcodeScan.swift +34 -3
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -670,12 +670,13 @@ Response for the camera permission status.
|
|
|
670
670
|
|
|
671
671
|
Data for a detected barcode.
|
|
672
672
|
|
|
673
|
-
| Prop | Type | Description
|
|
674
|
-
| ------------------ | ----------------------------------------------------- |
|
|
675
|
-
| **`value`** | <code>string</code> | The decoded string value of the barcode
|
|
676
|
-
| **`
|
|
677
|
-
| **`
|
|
678
|
-
| **`
|
|
673
|
+
| Prop | Type | Description | Since |
|
|
674
|
+
| ------------------ | ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |
|
|
675
|
+
| **`value`** | <code>string</code> | The decoded string value of the barcode | |
|
|
676
|
+
| **`rawBytes`** | <code>number[]</code> | Raw bytes as they were encoded in the barcode. On Android, this is forwarded from ML Kit. On iOS, this is available for descriptor-backed formats such as QR, Aztec, PDF417, and Data Matrix. On web, this is not available because the Barcode Detection API only exposes the decoded string value. | 2.2.0 |
|
|
677
|
+
| **`displayValue`** | <code>string</code> | The display value of the barcode on Android. This is forwarded from ML Kit and may contain a formatted, human-readable representation that differs from the raw decoded value. iOS and web do not expose a separate display value, so this property is only emitted on Android. | |
|
|
678
|
+
| **`type`** | <code>string</code> | The type/format of the barcode (e.g., 'qr', 'code128', etc.) | |
|
|
679
|
+
| **`boundingRect`** | <code><a href="#boundingrect">BoundingRect</a></code> | The bounding rectangle of the barcode in the camera frame. | |
|
|
679
680
|
|
|
680
681
|
|
|
681
682
|
#### BoundingRect
|
|
@@ -723,6 +723,7 @@ class CameraView(plugin: Plugin) {
|
|
|
723
723
|
val barcodeResult =
|
|
724
724
|
BarcodeDetectionResult(
|
|
725
725
|
value = barcode.rawValue ?: "",
|
|
726
|
+
rawBytes = barcode.rawBytes ?: ByteArray(0),
|
|
726
727
|
displayValue = barcode.displayValue ?: "",
|
|
727
728
|
type = getBarcodeFormatString(barcode.format),
|
|
728
729
|
boundingRect = webBoundingRect
|
|
@@ -289,8 +289,14 @@ class CameraViewPlugin : Plugin() {
|
|
|
289
289
|
* Called by the CameraView when a barcode is detected.
|
|
290
290
|
*/
|
|
291
291
|
fun notifyBarcodeDetected(result: BarcodeDetectionResult) {
|
|
292
|
+
val rawBytesArray = JSArray().apply {
|
|
293
|
+
result.rawBytes.forEach { put(it.toInt() and 0xFF) }
|
|
294
|
+
}
|
|
295
|
+
|
|
292
296
|
val jsObject = JSObject().apply {
|
|
293
297
|
put("value", result.value)
|
|
298
|
+
put("displayValue", result.displayValue)
|
|
299
|
+
put("rawBytes", rawBytesArray)
|
|
294
300
|
put("type", result.type)
|
|
295
301
|
put("boundingRect", JSObject().apply {
|
|
296
302
|
put("x", result.boundingRect.x)
|
package/dist/docs.json
CHANGED
|
@@ -980,10 +980,22 @@
|
|
|
980
980
|
"complexTypes": [],
|
|
981
981
|
"type": "string"
|
|
982
982
|
},
|
|
983
|
+
{
|
|
984
|
+
"name": "rawBytes",
|
|
985
|
+
"tags": [
|
|
986
|
+
{
|
|
987
|
+
"text": "2.2.0",
|
|
988
|
+
"name": "since"
|
|
989
|
+
}
|
|
990
|
+
],
|
|
991
|
+
"docs": "Raw bytes as they were encoded in the barcode.\n\nOn Android, this is forwarded from ML Kit.\nOn iOS, this is available for descriptor-backed formats such as QR, Aztec, PDF417, and Data Matrix.\nOn web, this is not available because the Barcode Detection API only exposes the decoded string value.",
|
|
992
|
+
"complexTypes": [],
|
|
993
|
+
"type": "number[] | undefined"
|
|
994
|
+
},
|
|
983
995
|
{
|
|
984
996
|
"name": "displayValue",
|
|
985
997
|
"tags": [],
|
|
986
|
-
"docs": "The display value of the barcode
|
|
998
|
+
"docs": "The display value of the barcode on Android.\n\nThis is forwarded from ML Kit and may contain a formatted, human-readable\nrepresentation that differs from the raw decoded value. iOS and web do not\nexpose a separate display value, so this property is only emitted on Android.",
|
|
987
999
|
"complexTypes": [],
|
|
988
1000
|
"type": "string | undefined"
|
|
989
1001
|
},
|
|
@@ -473,7 +473,23 @@ export interface GetTorchModeResponse {
|
|
|
473
473
|
export interface BarcodeDetectionData {
|
|
474
474
|
/** The decoded string value of the barcode */
|
|
475
475
|
value: string;
|
|
476
|
-
/**
|
|
476
|
+
/**
|
|
477
|
+
* Raw bytes as they were encoded in the barcode.
|
|
478
|
+
*
|
|
479
|
+
* On Android, this is forwarded from ML Kit.
|
|
480
|
+
* On iOS, this is available for descriptor-backed formats such as QR, Aztec, PDF417, and Data Matrix.
|
|
481
|
+
* On web, this is not available because the Barcode Detection API only exposes the decoded string value.
|
|
482
|
+
*
|
|
483
|
+
* @since 2.2.0
|
|
484
|
+
*/
|
|
485
|
+
rawBytes?: number[];
|
|
486
|
+
/**
|
|
487
|
+
* The display value of the barcode on Android.
|
|
488
|
+
*
|
|
489
|
+
* This is forwarded from ML Kit and may contain a formatted, human-readable
|
|
490
|
+
* representation that differs from the raw decoded value. iOS and web do not
|
|
491
|
+
* expose a separate display value, so this property is only emitted on Android.
|
|
492
|
+
*/
|
|
477
493
|
displayValue?: string;
|
|
478
494
|
/** The type/format of the barcode (e.g., 'qr', 'code128', etc.) */
|
|
479
495
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PermissionState, PluginListenerHandle } from '@capacitor/core';\n\n/**\n * Main plugin interface for Capacitor Camera View functionality.\n *\n * @since 1.0.0\n */\nexport interface CameraViewPlugin {\n /**\n * Start the camera view with optional configuration.\n *\n * @param options - Configuration options for the camera session\n * @returns A promise that resolves when the camera has started\n *\n * @since 1.0.0\n */\n start(options?: CameraSessionConfiguration): Promise<void>;\n\n /**\n * Stop the camera view and release resources.\n *\n * @returns A promise that resolves when the camera has stopped\n *\n * @since 1.0.0\n */\n stop(): Promise<void>;\n\n /**\n * Check if the camera view is currently running.\n *\n * @returns A promise that resolves with an object containing the running state of the camera\n *\n * @since 1.0.0\n */\n isRunning(): Promise<IsRunningResponse>;\n\n /**\n * Capture a photo using the current camera configuration.\n *\n * @param options - Capture configuration options\n * @returns A promise that resolves with an object containing either a base64 encoded string or file path of the captured photo\n *\n * @since 1.0.0\n */\n capture<T extends CaptureOptions>(options: T): Promise<CaptureResponse<T>>;\n\n /**\n * Captures a frame from the current camera preview without using the full camera capture pipeline.\n *\n * Unlike `capture()` which may trigger hardware-level photo capture on native platforms,\n * this method quickly samples the current video stream. This is suitable computer vision or\n * simple snapshots where high fidelity is not required.\n *\n * On web this method does exactly the same as `capture()` as it only captures a frame from the video stream\n * because unfortunately [ImageCapture API](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture) is\n * not yet well supported on the web.\n *\n * @param options - Capture configuration options\n * @returns A promise that resolves with an object containing either a base64 encoded string or file path of the captured sample\n *\n * @since 1.0.0\n */\n captureSample<T extends CaptureOptions>(options: T): Promise<CaptureResponse<T>>;\n\n /**\n * Switch between front and back camera.\n *\n * @returns A promise that resolves when the camera has been flipped\n *\n * @since 1.0.0\n */\n flipCamera(): Promise<void>;\n\n /**\n * Get available camera devices for capturing photos.\n *\n * @returns A promise that resolves with an object containing an array of available capture devices\n *\n * @since 1.0.0\n */\n getAvailableDevices(): Promise<GetAvailableDevicesResponse>;\n\n /**\n * Get current zoom level information and available range.\n *\n * @remarks\n * Make sure the camera is properly initialized before calling this method. Otherwise, this might\n * lead to returning default values on android.\n *\n * @returns A promise that resolves with an object containing min, max and current zoom levels\n *\n * @since 1.0.0\n */\n getZoom(): Promise<GetZoomResponse>;\n\n /**\n * Set the camera zoom level.\n *\n * @param options - Zoom configuration options\n * @param options.level - The zoom level to set\n * @param options.ramp - Whether to animate the zoom level change, defaults to false (iOS only)\n * @returns A promise that resolves when the zoom level has been set\n *\n * @remarks\n * On web platforms, zoom functionality may be limited by browser support.\n * When native zoom is not available, a CSS-based zoom simulation is applied.\n *\n * @since 1.0.0\n */\n setZoom(options: { level: number; ramp?: boolean }): Promise<void>;\n\n /**\n * Get current flash mode setting.\n *\n * @returns A promise that resolves with an object containing the current flash mode\n *\n * @since 1.0.0\n */\n getFlashMode(): Promise<GetFlashModeResponse>;\n\n /**\n * Get supported flash modes for the current camera.\n *\n * @returns A promise that resolves with an object containing an array of supported flash modes\n *\n * @since 1.0.0\n */\n getSupportedFlashModes(): Promise<GetSupportedFlashModesResponse>;\n\n /**\n * Set the camera flash mode.\n *\n * @param options - Flash mode configuration options\n * @param options.mode - The flash mode to set\n * @returns A promise that resolves when the flash mode has been set\n *\n * @since 1.0.0\n */\n setFlashMode(options: { mode: FlashMode }): Promise<void>;\n\n /**\n * Check if the device supports torch (flashlight) functionality.\n *\n * @remarks\n * **Important**: You must call this method and verify torch availability before using\n * `setTorchMode()` or `getTorchMode()`. Calling torch methods on devices without\n * torch support will throw an exception.\n *\n * @returns A promise that resolves with an object containing torch availability status\n *\n * @since 1.2.0\n */\n isTorchAvailable(): Promise<IsTorchAvailableResponse>;\n\n /**\n * Get the current torch (flashlight) state.\n *\n * @remarks\n * **Important**: Call `isTorchAvailable()` first to ensure the device supports torch\n * functionality. This method will throw an exception if torch is not supported.\n *\n * @returns A promise that resolves with an object containing the current torch state\n *\n * @since 1.2.0\n */\n getTorchMode(): Promise<GetTorchModeResponse>;\n\n /**\n * Set the torch (flashlight) mode and intensity.\n *\n * @remarks\n * **Important**: Call `isTorchAvailable()` first to ensure the device supports torch\n * functionality. This method will throw an exception if torch is not supported.\n *\n * The torch provides continuous illumination, unlike flash which only activates during photo capture.\n * On iOS, you can control the torch intensity level. On Android, the torch is either on or off.\n *\n * @param options - Torch configuration options\n * @param options.enabled - Whether to enable or disable the torch\n * @param options.level - The torch intensity level (0.0 to 1.0, iOS only). Defaults to 1.0 when enabled\n * @returns A promise that resolves when the torch mode has been set\n *\n * @since 1.2.0\n */\n setTorchMode(options: { enabled: boolean; level?: number }): Promise<void>;\n\n /**\n * Check camera permission status without requesting permissions.\n *\n * @returns A promise that resolves with an object containing the camera permission status\n *\n * @since 1.0.0\n */\n checkPermissions(): Promise<PermissionStatus>;\n\n /**\n * Request camera permission from the user.\n *\n * @returns A promise that resolves with an object containing the camera permission status\n *\n * @since 1.0.0\n */\n requestPermissions(): Promise<PermissionStatus>;\n\n /**\n * Listen for barcode detection events.\n * This event is emitted when a barcode is detected in the camera preview.\n *\n * @param eventName - The name of the event to listen for ('barcodeDetected')\n * @param listenerFunc - The callback function to execute when a barcode is detected\n * @returns A promise that resolves with an event subscription\n *\n * @since 1.0.0\n */\n addListener(\n eventName: 'barcodeDetected',\n listenerFunc: (data: BarcodeDetectionData) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Remove all listeners for this plugin.\n *\n * @param eventName - Optional event name to remove listeners for\n * @returns A promise that resolves when the listeners are removed\n *\n * @since 1.0.0\n */\n removeAllListeners(eventName?: string): Promise<void>;\n}\n\n// ------------------------------------------------------------------------------\n// Camera Configuration Types\n// ------------------------------------------------------------------------------\n\n/**\n * Position options for the camera.\n * - 'front': Front-facing camera\n * - 'back': Rear-facing camera\n *\n * @since 1.0.0\n */\nexport type CameraPosition = 'front' | 'back';\n\n/**\n * Flash mode options for the camera.\n * - 'off': Flash disabled\n * - 'on': Flash always on\n * - 'auto': Flash automatically enabled in low-light conditions\n *\n * @since 1.0.0\n */\nexport type FlashMode = 'off' | 'on' | 'auto';\n\n/**\n * Represents a physical camera device on the device.\n *\n * @since 1.0.0\n */\nexport interface CameraDevice {\n /** The unique identifier of the camera device */\n id: string;\n\n /** The human-readable name of the camera device */\n name: string;\n\n /** The position of the camera device (front or back) */\n position: CameraPosition;\n\n /** The type of the camera device (e.g., wide, ultra-wide, telephoto) - iOS only */\n deviceType?: CameraDeviceType;\n}\n\n/**\n * Available camera device types for iOS.\n * Maps to AVCaptureDevice DeviceTypes in iOS.\n *\n * @see https://developer.apple.com/documentation/avfoundation/avcapturedevice/devicetype-swift.struct\n *\n * @since 1.0.0\n */\nexport type CameraDeviceType =\n /** builtInWideAngleCamera - standard camera */\n | 'wideAngle'\n /** builtInUltraWideCamera - 0.5x zoom level */\n | 'ultraWide'\n /** builtInTelephotoCamera - 2x/3x zoom level */\n | 'telephoto'\n /** builtInDualCamera - wide + telephoto combination */\n | 'dual'\n /** builtInDualWideCamera - wide + ultraWide combination */\n | 'dualWide'\n /** builtInTripleCamera - wide + ultraWide + telephoto */\n | 'triple'\n /** builtInTrueDepthCamera - front-facing camera with depth sensing */\n | 'trueDepth';\n\n/**\n * Supported barcode types for detection.\n * Specifying only the barcode types you need can improve performance\n * and reduce battery consumption.\n *\n * @since 2.1.0\n */\nexport type BarcodeType =\n /** QR Code */\n | 'qr'\n /** Code 128 barcode */\n | 'code128'\n /** Code 39 barcode */\n | 'code39'\n /** Code 39 Mod 43 barcode */\n | 'code39Mod43'\n /** Code 93 barcode */\n | 'code93'\n /** EAN-8 barcode */\n | 'ean8'\n /** EAN-13 barcode */\n | 'ean13'\n /** Interleaved 2 of 5 barcode */\n | 'interleaved2of5'\n /** ITF-14 barcode */\n | 'itf14'\n /** PDF417 barcode */\n | 'pdf417'\n /** Aztec code */\n | 'aztec'\n /** Data Matrix code */\n | 'dataMatrix'\n /** UPC-E barcode */\n | 'upce';\n\n/**\n * Configuration options for starting a camera session.\n *\n * @since 1.0.0\n */\nexport interface CameraSessionConfiguration {\n /**\n * Enables the barcode detection functionality\n * @default false\n */\n enableBarcodeDetection?: boolean;\n\n /**\n * Specific barcode types to detect. If not provided, all supported types are detected.\n * Specifying only the types you need can significantly improve performance and reduce\n * battery consumption, especially on mobile devices.\n *\n * @example ['qr', 'code128'] // Only detect QR codes and Code 128 barcodes\n * @default undefined - all supported types are detected\n * @since 2.1.0\n */\n barcodeTypes?: BarcodeType[];\n\n /**\n * Position of the camera to use\n * @default 'back'\n */\n position?: CameraPosition;\n\n /**\n * Specific device ID of the camera to use\n * If provided, takes precedence over position\n */\n deviceId?: string;\n\n /**\n * Whether to use the triple camera if available (iPhone Pro models only)\n * @default false\n */\n useTripleCameraIfAvailable?: boolean;\n\n /**\n * Ordered list of preferred camera device types to use (iOS only).\n * The system will attempt to use the first available camera type in the list.\n * If position is also provided, the system will use the first available camera type\n * that matches the position and is in the list.\n *\n * This will fallback to the default camera type if none of the preferred types are available.\n *\n * @example [CameraDeviceType.WideAngle, CameraDeviceType.UltraWide, CameraDeviceType.Telephoto]\n * @default undefined - system will decide based on position/deviceId\n */\n preferredCameraDeviceTypes?: CameraDeviceType[];\n\n /**\n * The initial zoom factor to use\n * @default 1.0\n */\n zoomFactor?: number;\n\n /**\n * Optional HTML ID of the container element where the camera view should be rendered.\n * If not provided, the camera view will be appended to the document body. Web only.\n * @example 'cameraContainer'\n */\n containerElementId?: string;\n}\n\n/**\n * Configuration options for capturing photos and samples.\n *\n * @since 1.1.0\n */\nexport interface CaptureOptions {\n /**\n * The JPEG quality of the captured photo/sample on a scale of 0-100\n * @since 1.1.0\n */\n quality: number;\n\n /**\n * If true, saves to a temporary file and returns the web path instead of base64.\n * The web path can be used to set the src attribute of an image for efficient loading and rendering.\n * This reduces the data that needs to be transferred over the bridge, which can improve performance\n * especially for high-resolution images.\n * @default false\n * @since 1.1.0\n */\n saveToFile?: boolean;\n}\n\n// ------------------------------------------------------------------------------\n// Response Interfaces\n// ------------------------------------------------------------------------------\n\n/**\n * Response for checking if the camera view is running.\n *\n * @since 1.0.0\n */\nexport interface IsRunningResponse {\n /** Indicates if the camera view is currently active and running */\n isRunning: boolean;\n}\n\n/**\n * Response for capturing a photo\n * This will contain either a base64 encoded string or a web path to the captured photo,\n * depending on the `saveToFile` option in the CaptureOptions.\n * @since 1.0.0\n */\nexport type CaptureResponse<T extends CaptureOptions = CaptureOptions> = T['saveToFile'] extends true\n ? {\n /** The web path to the captured photo that can be used to set the src attribute of an image for efficient loading and rendering (when saveToFile is true) */\n webPath: string;\n }\n : {\n /** The base64 encoded string of the captured photo (when saveToFile is false or undefined) */\n photo: string;\n };\n\n/**\n * Response for getting available camera devices.\n *\n * @since 1.0.0\n */\nexport interface GetAvailableDevicesResponse {\n /** An array of available camera devices */\n devices: CameraDevice[];\n}\n\n/**\n * Response for getting zoom level information.\n *\n * @since 1.0.0\n */\nexport interface GetZoomResponse {\n /** The minimum zoom level supported */\n min: number;\n\n /** The maximum zoom level supported */\n max: number;\n\n /** The current zoom level */\n current: number;\n}\n\n/**\n * Response for getting the current flash mode.\n *\n * @since 1.0.0\n */\nexport interface GetFlashModeResponse {\n /** The current flash mode setting */\n flashMode: FlashMode;\n}\n\n/**\n * Response for getting supported flash modes.\n *\n * @since 1.0.0\n */\nexport interface GetSupportedFlashModesResponse {\n /** An array of flash modes supported by the current camera */\n flashModes: FlashMode[];\n}\n\n/**\n * Response for checking torch availability.\n *\n * @since 1.2.0\n */\nexport interface IsTorchAvailableResponse {\n /** Indicates if the device supports torch (flashlight) functionality */\n available: boolean;\n}\n\n/**\n * Response for getting the current torch mode.\n *\n * @since 1.2.0\n */\nexport interface GetTorchModeResponse {\n /** Indicates if the torch is currently enabled */\n enabled: boolean;\n /** The current torch intensity level (0.0 to 1.0, iOS only). Always 1.0 on Android when enabled */\n level: number;\n}\n\n/**\n * Data for a detected barcode.\n *\n * @since 1.0.0\n */\nexport interface BarcodeDetectionData {\n /** The decoded string value of the barcode */\n value: string;\n\n /** The display value of the barcode (may differ from the raw value) */\n displayValue?: string;\n\n /** The type/format of the barcode (e.g., 'qr', 'code128', etc.) */\n type: string;\n\n /** The bounding rectangle of the barcode in the camera frame. */\n boundingRect: BoundingRect;\n}\n\n/**\n * Rectangle defining the boundary of the barcode in the camera frame.\n * Coordinates are normalized between 0 and 1 relative to the camera frame.\n *\n * @since 1.0.0\n */\nexport interface BoundingRect {\n /** X-coordinate of the top-left corner */\n x: number;\n /** Y-coordinate of the top-left corner */\n y: number;\n /** Width of the bounding rectangle (should match the actual width of the barcode) */\n width: number;\n /** Height of the bounding rectangle (should match the actual height of the barcode) */\n height: number;\n}\n\n/**\n * Response for the camera permission status.\n *\n * @since 1.0.0\n */\nexport interface PermissionStatus {\n /** The state of the camera permission */\n camera: PermissionState;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PermissionState, PluginListenerHandle } from '@capacitor/core';\n\n/**\n * Main plugin interface for Capacitor Camera View functionality.\n *\n * @since 1.0.0\n */\nexport interface CameraViewPlugin {\n /**\n * Start the camera view with optional configuration.\n *\n * @param options - Configuration options for the camera session\n * @returns A promise that resolves when the camera has started\n *\n * @since 1.0.0\n */\n start(options?: CameraSessionConfiguration): Promise<void>;\n\n /**\n * Stop the camera view and release resources.\n *\n * @returns A promise that resolves when the camera has stopped\n *\n * @since 1.0.0\n */\n stop(): Promise<void>;\n\n /**\n * Check if the camera view is currently running.\n *\n * @returns A promise that resolves with an object containing the running state of the camera\n *\n * @since 1.0.0\n */\n isRunning(): Promise<IsRunningResponse>;\n\n /**\n * Capture a photo using the current camera configuration.\n *\n * @param options - Capture configuration options\n * @returns A promise that resolves with an object containing either a base64 encoded string or file path of the captured photo\n *\n * @since 1.0.0\n */\n capture<T extends CaptureOptions>(options: T): Promise<CaptureResponse<T>>;\n\n /**\n * Captures a frame from the current camera preview without using the full camera capture pipeline.\n *\n * Unlike `capture()` which may trigger hardware-level photo capture on native platforms,\n * this method quickly samples the current video stream. This is suitable computer vision or\n * simple snapshots where high fidelity is not required.\n *\n * On web this method does exactly the same as `capture()` as it only captures a frame from the video stream\n * because unfortunately [ImageCapture API](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture) is\n * not yet well supported on the web.\n *\n * @param options - Capture configuration options\n * @returns A promise that resolves with an object containing either a base64 encoded string or file path of the captured sample\n *\n * @since 1.0.0\n */\n captureSample<T extends CaptureOptions>(options: T): Promise<CaptureResponse<T>>;\n\n /**\n * Switch between front and back camera.\n *\n * @returns A promise that resolves when the camera has been flipped\n *\n * @since 1.0.0\n */\n flipCamera(): Promise<void>;\n\n /**\n * Get available camera devices for capturing photos.\n *\n * @returns A promise that resolves with an object containing an array of available capture devices\n *\n * @since 1.0.0\n */\n getAvailableDevices(): Promise<GetAvailableDevicesResponse>;\n\n /**\n * Get current zoom level information and available range.\n *\n * @remarks\n * Make sure the camera is properly initialized before calling this method. Otherwise, this might\n * lead to returning default values on android.\n *\n * @returns A promise that resolves with an object containing min, max and current zoom levels\n *\n * @since 1.0.0\n */\n getZoom(): Promise<GetZoomResponse>;\n\n /**\n * Set the camera zoom level.\n *\n * @param options - Zoom configuration options\n * @param options.level - The zoom level to set\n * @param options.ramp - Whether to animate the zoom level change, defaults to false (iOS only)\n * @returns A promise that resolves when the zoom level has been set\n *\n * @remarks\n * On web platforms, zoom functionality may be limited by browser support.\n * When native zoom is not available, a CSS-based zoom simulation is applied.\n *\n * @since 1.0.0\n */\n setZoom(options: { level: number; ramp?: boolean }): Promise<void>;\n\n /**\n * Get current flash mode setting.\n *\n * @returns A promise that resolves with an object containing the current flash mode\n *\n * @since 1.0.0\n */\n getFlashMode(): Promise<GetFlashModeResponse>;\n\n /**\n * Get supported flash modes for the current camera.\n *\n * @returns A promise that resolves with an object containing an array of supported flash modes\n *\n * @since 1.0.0\n */\n getSupportedFlashModes(): Promise<GetSupportedFlashModesResponse>;\n\n /**\n * Set the camera flash mode.\n *\n * @param options - Flash mode configuration options\n * @param options.mode - The flash mode to set\n * @returns A promise that resolves when the flash mode has been set\n *\n * @since 1.0.0\n */\n setFlashMode(options: { mode: FlashMode }): Promise<void>;\n\n /**\n * Check if the device supports torch (flashlight) functionality.\n *\n * @remarks\n * **Important**: You must call this method and verify torch availability before using\n * `setTorchMode()` or `getTorchMode()`. Calling torch methods on devices without\n * torch support will throw an exception.\n *\n * @returns A promise that resolves with an object containing torch availability status\n *\n * @since 1.2.0\n */\n isTorchAvailable(): Promise<IsTorchAvailableResponse>;\n\n /**\n * Get the current torch (flashlight) state.\n *\n * @remarks\n * **Important**: Call `isTorchAvailable()` first to ensure the device supports torch\n * functionality. This method will throw an exception if torch is not supported.\n *\n * @returns A promise that resolves with an object containing the current torch state\n *\n * @since 1.2.0\n */\n getTorchMode(): Promise<GetTorchModeResponse>;\n\n /**\n * Set the torch (flashlight) mode and intensity.\n *\n * @remarks\n * **Important**: Call `isTorchAvailable()` first to ensure the device supports torch\n * functionality. This method will throw an exception if torch is not supported.\n *\n * The torch provides continuous illumination, unlike flash which only activates during photo capture.\n * On iOS, you can control the torch intensity level. On Android, the torch is either on or off.\n *\n * @param options - Torch configuration options\n * @param options.enabled - Whether to enable or disable the torch\n * @param options.level - The torch intensity level (0.0 to 1.0, iOS only). Defaults to 1.0 when enabled\n * @returns A promise that resolves when the torch mode has been set\n *\n * @since 1.2.0\n */\n setTorchMode(options: { enabled: boolean; level?: number }): Promise<void>;\n\n /**\n * Check camera permission status without requesting permissions.\n *\n * @returns A promise that resolves with an object containing the camera permission status\n *\n * @since 1.0.0\n */\n checkPermissions(): Promise<PermissionStatus>;\n\n /**\n * Request camera permission from the user.\n *\n * @returns A promise that resolves with an object containing the camera permission status\n *\n * @since 1.0.0\n */\n requestPermissions(): Promise<PermissionStatus>;\n\n /**\n * Listen for barcode detection events.\n * This event is emitted when a barcode is detected in the camera preview.\n *\n * @param eventName - The name of the event to listen for ('barcodeDetected')\n * @param listenerFunc - The callback function to execute when a barcode is detected\n * @returns A promise that resolves with an event subscription\n *\n * @since 1.0.0\n */\n addListener(\n eventName: 'barcodeDetected',\n listenerFunc: (data: BarcodeDetectionData) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Remove all listeners for this plugin.\n *\n * @param eventName - Optional event name to remove listeners for\n * @returns A promise that resolves when the listeners are removed\n *\n * @since 1.0.0\n */\n removeAllListeners(eventName?: string): Promise<void>;\n}\n\n// ------------------------------------------------------------------------------\n// Camera Configuration Types\n// ------------------------------------------------------------------------------\n\n/**\n * Position options for the camera.\n * - 'front': Front-facing camera\n * - 'back': Rear-facing camera\n *\n * @since 1.0.0\n */\nexport type CameraPosition = 'front' | 'back';\n\n/**\n * Flash mode options for the camera.\n * - 'off': Flash disabled\n * - 'on': Flash always on\n * - 'auto': Flash automatically enabled in low-light conditions\n *\n * @since 1.0.0\n */\nexport type FlashMode = 'off' | 'on' | 'auto';\n\n/**\n * Represents a physical camera device on the device.\n *\n * @since 1.0.0\n */\nexport interface CameraDevice {\n /** The unique identifier of the camera device */\n id: string;\n\n /** The human-readable name of the camera device */\n name: string;\n\n /** The position of the camera device (front or back) */\n position: CameraPosition;\n\n /** The type of the camera device (e.g., wide, ultra-wide, telephoto) - iOS only */\n deviceType?: CameraDeviceType;\n}\n\n/**\n * Available camera device types for iOS.\n * Maps to AVCaptureDevice DeviceTypes in iOS.\n *\n * @see https://developer.apple.com/documentation/avfoundation/avcapturedevice/devicetype-swift.struct\n *\n * @since 1.0.0\n */\nexport type CameraDeviceType =\n /** builtInWideAngleCamera - standard camera */\n | 'wideAngle'\n /** builtInUltraWideCamera - 0.5x zoom level */\n | 'ultraWide'\n /** builtInTelephotoCamera - 2x/3x zoom level */\n | 'telephoto'\n /** builtInDualCamera - wide + telephoto combination */\n | 'dual'\n /** builtInDualWideCamera - wide + ultraWide combination */\n | 'dualWide'\n /** builtInTripleCamera - wide + ultraWide + telephoto */\n | 'triple'\n /** builtInTrueDepthCamera - front-facing camera with depth sensing */\n | 'trueDepth';\n\n/**\n * Supported barcode types for detection.\n * Specifying only the barcode types you need can improve performance\n * and reduce battery consumption.\n *\n * @since 2.1.0\n */\nexport type BarcodeType =\n /** QR Code */\n | 'qr'\n /** Code 128 barcode */\n | 'code128'\n /** Code 39 barcode */\n | 'code39'\n /** Code 39 Mod 43 barcode */\n | 'code39Mod43'\n /** Code 93 barcode */\n | 'code93'\n /** EAN-8 barcode */\n | 'ean8'\n /** EAN-13 barcode */\n | 'ean13'\n /** Interleaved 2 of 5 barcode */\n | 'interleaved2of5'\n /** ITF-14 barcode */\n | 'itf14'\n /** PDF417 barcode */\n | 'pdf417'\n /** Aztec code */\n | 'aztec'\n /** Data Matrix code */\n | 'dataMatrix'\n /** UPC-E barcode */\n | 'upce';\n\n/**\n * Configuration options for starting a camera session.\n *\n * @since 1.0.0\n */\nexport interface CameraSessionConfiguration {\n /**\n * Enables the barcode detection functionality\n * @default false\n */\n enableBarcodeDetection?: boolean;\n\n /**\n * Specific barcode types to detect. If not provided, all supported types are detected.\n * Specifying only the types you need can significantly improve performance and reduce\n * battery consumption, especially on mobile devices.\n *\n * @example ['qr', 'code128'] // Only detect QR codes and Code 128 barcodes\n * @default undefined - all supported types are detected\n * @since 2.1.0\n */\n barcodeTypes?: BarcodeType[];\n\n /**\n * Position of the camera to use\n * @default 'back'\n */\n position?: CameraPosition;\n\n /**\n * Specific device ID of the camera to use\n * If provided, takes precedence over position\n */\n deviceId?: string;\n\n /**\n * Whether to use the triple camera if available (iPhone Pro models only)\n * @default false\n */\n useTripleCameraIfAvailable?: boolean;\n\n /**\n * Ordered list of preferred camera device types to use (iOS only).\n * The system will attempt to use the first available camera type in the list.\n * If position is also provided, the system will use the first available camera type\n * that matches the position and is in the list.\n *\n * This will fallback to the default camera type if none of the preferred types are available.\n *\n * @example [CameraDeviceType.WideAngle, CameraDeviceType.UltraWide, CameraDeviceType.Telephoto]\n * @default undefined - system will decide based on position/deviceId\n */\n preferredCameraDeviceTypes?: CameraDeviceType[];\n\n /**\n * The initial zoom factor to use\n * @default 1.0\n */\n zoomFactor?: number;\n\n /**\n * Optional HTML ID of the container element where the camera view should be rendered.\n * If not provided, the camera view will be appended to the document body. Web only.\n * @example 'cameraContainer'\n */\n containerElementId?: string;\n}\n\n/**\n * Configuration options for capturing photos and samples.\n *\n * @since 1.1.0\n */\nexport interface CaptureOptions {\n /**\n * The JPEG quality of the captured photo/sample on a scale of 0-100\n * @since 1.1.0\n */\n quality: number;\n\n /**\n * If true, saves to a temporary file and returns the web path instead of base64.\n * The web path can be used to set the src attribute of an image for efficient loading and rendering.\n * This reduces the data that needs to be transferred over the bridge, which can improve performance\n * especially for high-resolution images.\n * @default false\n * @since 1.1.0\n */\n saveToFile?: boolean;\n}\n\n// ------------------------------------------------------------------------------\n// Response Interfaces\n// ------------------------------------------------------------------------------\n\n/**\n * Response for checking if the camera view is running.\n *\n * @since 1.0.0\n */\nexport interface IsRunningResponse {\n /** Indicates if the camera view is currently active and running */\n isRunning: boolean;\n}\n\n/**\n * Response for capturing a photo\n * This will contain either a base64 encoded string or a web path to the captured photo,\n * depending on the `saveToFile` option in the CaptureOptions.\n * @since 1.0.0\n */\nexport type CaptureResponse<T extends CaptureOptions = CaptureOptions> = T['saveToFile'] extends true\n ? {\n /** The web path to the captured photo that can be used to set the src attribute of an image for efficient loading and rendering (when saveToFile is true) */\n webPath: string;\n }\n : {\n /** The base64 encoded string of the captured photo (when saveToFile is false or undefined) */\n photo: string;\n };\n\n/**\n * Response for getting available camera devices.\n *\n * @since 1.0.0\n */\nexport interface GetAvailableDevicesResponse {\n /** An array of available camera devices */\n devices: CameraDevice[];\n}\n\n/**\n * Response for getting zoom level information.\n *\n * @since 1.0.0\n */\nexport interface GetZoomResponse {\n /** The minimum zoom level supported */\n min: number;\n\n /** The maximum zoom level supported */\n max: number;\n\n /** The current zoom level */\n current: number;\n}\n\n/**\n * Response for getting the current flash mode.\n *\n * @since 1.0.0\n */\nexport interface GetFlashModeResponse {\n /** The current flash mode setting */\n flashMode: FlashMode;\n}\n\n/**\n * Response for getting supported flash modes.\n *\n * @since 1.0.0\n */\nexport interface GetSupportedFlashModesResponse {\n /** An array of flash modes supported by the current camera */\n flashModes: FlashMode[];\n}\n\n/**\n * Response for checking torch availability.\n *\n * @since 1.2.0\n */\nexport interface IsTorchAvailableResponse {\n /** Indicates if the device supports torch (flashlight) functionality */\n available: boolean;\n}\n\n/**\n * Response for getting the current torch mode.\n *\n * @since 1.2.0\n */\nexport interface GetTorchModeResponse {\n /** Indicates if the torch is currently enabled */\n enabled: boolean;\n /** The current torch intensity level (0.0 to 1.0, iOS only). Always 1.0 on Android when enabled */\n level: number;\n}\n\n/**\n * Data for a detected barcode.\n *\n * @since 1.0.0\n */\nexport interface BarcodeDetectionData {\n /** The decoded string value of the barcode */\n value: string;\n\n /**\n * Raw bytes as they were encoded in the barcode.\n *\n * On Android, this is forwarded from ML Kit.\n * On iOS, this is available for descriptor-backed formats such as QR, Aztec, PDF417, and Data Matrix.\n * On web, this is not available because the Barcode Detection API only exposes the decoded string value.\n *\n * @since 2.2.0\n */\n rawBytes?: number[];\n\n /**\n * The display value of the barcode on Android.\n *\n * This is forwarded from ML Kit and may contain a formatted, human-readable\n * representation that differs from the raw decoded value. iOS and web do not\n * expose a separate display value, so this property is only emitted on Android.\n */\n displayValue?: string;\n\n /** The type/format of the barcode (e.g., 'qr', 'code128', etc.) */\n type: string;\n\n /** The bounding rectangle of the barcode in the camera frame. */\n boundingRect: BoundingRect;\n}\n\n/**\n * Rectangle defining the boundary of the barcode in the camera frame.\n * Coordinates are normalized between 0 and 1 relative to the camera frame.\n *\n * @since 1.0.0\n */\nexport interface BoundingRect {\n /** X-coordinate of the top-left corner */\n x: number;\n /** Y-coordinate of the top-left corner */\n y: number;\n /** Width of the bounding rectangle (should match the actual width of the barcode) */\n width: number;\n /** Height of the bounding rectangle (should match the actual height of the barcode) */\n height: number;\n}\n\n/**\n * Response for the camera permission status.\n *\n * @since 1.0.0\n */\nexport interface PermissionStatus {\n /** The state of the camera permission */\n camera: PermissionState;\n}\n"]}
|
|
@@ -8,27 +8,33 @@ import Foundation
|
|
|
8
8
|
public struct BarcodeDetectedEvent: Sendable {
|
|
9
9
|
/// The decoded string value of the barcode.
|
|
10
10
|
public let value: String
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
/// The barcode value in a human readable format.
|
|
13
|
+
public let displayValue: String?
|
|
14
|
+
|
|
15
|
+
/// Raw bytes as they were encoded in the barcode when the platform exposes them.
|
|
16
|
+
public let rawBytes: [UInt8]?
|
|
17
|
+
|
|
12
18
|
/// The type of barcode detected (e.g., "org.iso.QRCode").
|
|
13
19
|
public let type: String
|
|
14
|
-
|
|
20
|
+
|
|
15
21
|
/// The bounding rectangle of the barcode in screen coordinates.
|
|
16
22
|
public let boundingRect: BoundingRect
|
|
17
|
-
|
|
23
|
+
|
|
18
24
|
/// Bounding rectangle coordinates.
|
|
19
25
|
public struct BoundingRect: Sendable {
|
|
20
26
|
public let x: Double
|
|
21
27
|
public let y: Double
|
|
22
28
|
public let width: Double
|
|
23
29
|
public let height: Double
|
|
24
|
-
|
|
30
|
+
|
|
25
31
|
public init(x: Double, y: Double, width: Double, height: Double) {
|
|
26
32
|
self.x = x
|
|
27
33
|
self.y = y
|
|
28
34
|
self.width = width
|
|
29
35
|
self.height = height
|
|
30
36
|
}
|
|
31
|
-
|
|
37
|
+
|
|
32
38
|
/// Converts to dictionary for Capacitor event emission.
|
|
33
39
|
public func toDictionary() -> [String: Double] {
|
|
34
40
|
return [
|
|
@@ -39,20 +45,38 @@ public struct BarcodeDetectedEvent: Sendable {
|
|
|
39
45
|
]
|
|
40
46
|
}
|
|
41
47
|
}
|
|
42
|
-
|
|
43
|
-
public init(
|
|
48
|
+
|
|
49
|
+
public init(
|
|
50
|
+
value: String,
|
|
51
|
+
displayValue: String? = nil,
|
|
52
|
+
rawBytes: [UInt8]? = nil,
|
|
53
|
+
type: String,
|
|
54
|
+
boundingRect: BoundingRect
|
|
55
|
+
) {
|
|
44
56
|
self.value = value
|
|
57
|
+
self.displayValue = displayValue
|
|
58
|
+
self.rawBytes = rawBytes
|
|
45
59
|
self.type = type
|
|
46
60
|
self.boundingRect = boundingRect
|
|
47
61
|
}
|
|
48
|
-
|
|
62
|
+
|
|
49
63
|
/// Converts to dictionary for Capacitor event emission.
|
|
50
64
|
public func toDictionary() -> [String: Any] {
|
|
51
|
-
|
|
65
|
+
var dictionary: [String: Any] = [
|
|
52
66
|
"value": value,
|
|
53
67
|
"type": type,
|
|
54
68
|
"boundingRect": boundingRect.toDictionary()
|
|
55
69
|
]
|
|
70
|
+
|
|
71
|
+
if let displayValue {
|
|
72
|
+
dictionary["displayValue"] = displayValue
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if let rawBytes {
|
|
76
|
+
dictionary["rawBytes"] = rawBytes.map(Int.init)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return dictionary
|
|
56
80
|
}
|
|
57
81
|
}
|
|
58
82
|
|
|
@@ -81,7 +105,7 @@ public protocol CameraEventDelegate: AnyObject {
|
|
|
81
105
|
/// These maintain backwards compatibility with the NotificationCenter-based event system.
|
|
82
106
|
public extension Notification.Name {
|
|
83
107
|
/// Posted when a barcode is detected.
|
|
84
|
-
/// UserInfo contains: "value", "type", "boundingRect"
|
|
108
|
+
/// UserInfo contains: "value", "displayValue", "rawBytes", "type", "boundingRect"
|
|
85
109
|
static let cameraViewBarcodeDetected = Notification.Name("barcodeDetected")
|
|
86
110
|
}
|
|
87
111
|
|
|
@@ -92,13 +116,13 @@ public extension Notification.Name {
|
|
|
92
116
|
internal final class CameraEventEmitter {
|
|
93
117
|
/// Weak reference to the delegate to avoid retain cycles.
|
|
94
118
|
weak var delegate: CameraEventDelegate?
|
|
95
|
-
|
|
119
|
+
|
|
96
120
|
/// Emits a barcode detected event through both channels.
|
|
97
121
|
/// - Parameter event: The barcode detection event to emit.
|
|
98
122
|
func emitBarcodeDetected(_ event: BarcodeDetectedEvent) {
|
|
99
123
|
// Call typed delegate first (preferred path)
|
|
100
124
|
delegate?.cameraDidDetectBarcode(event)
|
|
101
|
-
|
|
125
|
+
|
|
102
126
|
// Also post to NotificationCenter for backwards compatibility
|
|
103
127
|
NotificationCenter.default.post(
|
|
104
128
|
name: .cameraViewBarcodeDetected,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import AVFoundation
|
|
2
|
+
import CoreImage
|
|
2
3
|
import Foundation
|
|
3
4
|
|
|
4
5
|
extension CameraViewManager: AVCaptureMetadataOutputObjectsDelegate {
|
|
@@ -36,7 +37,7 @@ extension CameraViewManager: AVCaptureMetadataOutputObjectsDelegate {
|
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
/// Remove the metadata output if in case it is already configured, e.g. because
|
|
39
|
-
/// the camera is restarted with a
|
|
40
|
+
/// the camera is restarted with a different setting where barcode detection was disabled
|
|
40
41
|
/// again
|
|
41
42
|
internal func removeMetadataOutput() {
|
|
42
43
|
if let metadataOutput = captureSession.outputs.first(where: { $0 is AVCaptureMetadataOutput }) {
|
|
@@ -62,7 +63,13 @@ extension CameraViewManager: AVCaptureMetadataOutputObjectsDelegate {
|
|
|
62
63
|
else {
|
|
63
64
|
return
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
+
|
|
67
|
+
let barcodeValue = metadataObject.stringValue ?? ""
|
|
68
|
+
let rawBytes = getRawBytes(from: metadataObject)
|
|
69
|
+
|
|
70
|
+
if barcodeValue.isEmpty && rawBytes == nil {
|
|
71
|
+
return
|
|
72
|
+
}
|
|
66
73
|
|
|
67
74
|
let barcodeType = metadataObject.type.rawValue
|
|
68
75
|
|
|
@@ -83,7 +90,31 @@ extension CameraViewManager: AVCaptureMetadataOutputObjectsDelegate {
|
|
|
83
90
|
)
|
|
84
91
|
|
|
85
92
|
eventEmitter.emitBarcodeDetected(
|
|
86
|
-
BarcodeDetectedEvent(
|
|
93
|
+
BarcodeDetectedEvent(
|
|
94
|
+
value: barcodeValue,
|
|
95
|
+
rawBytes: rawBytes,
|
|
96
|
+
type: barcodeType,
|
|
97
|
+
boundingRect: boundingRect
|
|
98
|
+
)
|
|
87
99
|
)
|
|
88
100
|
}
|
|
101
|
+
|
|
102
|
+
private func getRawBytes(from metadataObject: AVMetadataMachineReadableCodeObject) -> [UInt8]? {
|
|
103
|
+
guard let descriptor = metadataObject.descriptor else {
|
|
104
|
+
return nil
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
switch descriptor {
|
|
108
|
+
case let descriptor as CIQRCodeDescriptor:
|
|
109
|
+
return [UInt8](descriptor.errorCorrectedPayload)
|
|
110
|
+
case let descriptor as CIAztecCodeDescriptor:
|
|
111
|
+
return [UInt8](descriptor.errorCorrectedPayload)
|
|
112
|
+
case let descriptor as CIPDF417CodeDescriptor:
|
|
113
|
+
return [UInt8](descriptor.errorCorrectedPayload)
|
|
114
|
+
case let descriptor as CIDataMatrixCodeDescriptor:
|
|
115
|
+
return [UInt8](descriptor.errorCorrectedPayload)
|
|
116
|
+
default:
|
|
117
|
+
return nil
|
|
118
|
+
}
|
|
119
|
+
}
|
|
89
120
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-camera-view",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "A Capacitor plugin for embedding a live camera feed directly into your app.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -48,32 +48,32 @@
|
|
|
48
48
|
"prepublishOnly": "npm run build"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@capacitor/android": "^8.1
|
|
52
|
-
"@capacitor/core": "^8.1
|
|
51
|
+
"@capacitor/android": "^8.3.1",
|
|
52
|
+
"@capacitor/core": "^8.3.1",
|
|
53
53
|
"@capacitor/docgen": "^0.3.1",
|
|
54
|
-
"@capacitor/ios": "^8.1
|
|
55
|
-
"@commitlint/config-conventional": "^20.
|
|
54
|
+
"@capacitor/ios": "^8.3.1",
|
|
55
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
56
56
|
"@ionic/prettier-config": "^4.0.0",
|
|
57
57
|
"@ionic/swiftlint-config": "^2.0.0",
|
|
58
58
|
"@semantic-release/changelog": "^6.0.3",
|
|
59
59
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
60
60
|
"@semantic-release/git": "^10.0.1",
|
|
61
61
|
"@semantic-release/github": "^12.0.6",
|
|
62
|
-
"@semantic-release/npm": "^13.1.
|
|
62
|
+
"@semantic-release/npm": "^13.1.5",
|
|
63
63
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
65
|
-
"@typescript-eslint/parser": "^8.
|
|
66
|
-
"commitlint": "^20.
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "^8.59.1",
|
|
65
|
+
"@typescript-eslint/parser": "^8.59.1",
|
|
66
|
+
"commitlint": "^20.5.2",
|
|
67
67
|
"eslint": "^9.39.2",
|
|
68
68
|
"eslint-config-prettier": "^10.1.8",
|
|
69
69
|
"eslint-plugin-prettier": "^5.5.5",
|
|
70
70
|
"husky": "^9.1.7",
|
|
71
|
-
"prettier": "^3.8.
|
|
71
|
+
"prettier": "^3.8.3",
|
|
72
72
|
"prettier-plugin-java": "^2.8.1",
|
|
73
73
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
74
|
-
"prettier-plugin-packagejson": "^3.0.
|
|
74
|
+
"prettier-plugin-packagejson": "^3.0.2",
|
|
75
75
|
"rimraf": "^6.1.3",
|
|
76
|
-
"rollup": "^4.
|
|
76
|
+
"rollup": "^4.60.2",
|
|
77
77
|
"semantic-release": "^25.0.3",
|
|
78
78
|
"swiftlint": "^2.0.0",
|
|
79
79
|
"typescript": "^5.9.3"
|