@capgo/camera-preview 3.2.8 → 3.4.4

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.
Files changed (38) hide show
  1. package/CapgoCameraPreview.podspec +1 -1
  2. package/README.md +263 -46
  3. package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
  4. package/android/.gradle/7.4.2/checksums/md5-checksums.bin +0 -0
  5. package/android/.gradle/7.4.2/checksums/sha1-checksums.bin +0 -0
  6. package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  7. package/android/.gradle/7.4.2/dependencies-accessors/gc.properties +0 -0
  8. package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
  9. package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
  10. package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
  11. package/android/.gradle/7.4.2/gc.properties +0 -0
  12. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  13. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  14. package/android/.gradle/vcs-1/gc.properties +0 -0
  15. package/android/build.gradle +8 -8
  16. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  17. package/android/gradle/wrapper/gradle-wrapper.properties +2 -3
  18. package/android/gradlew +182 -108
  19. package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraActivity.java +5 -7
  20. package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraPreview.java +17 -9
  21. package/dist/docs.json +407 -0
  22. package/dist/esm/definitions.d.ts +12 -6
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/web.d.ts +6 -4
  26. package/dist/esm/web.js +98 -82
  27. package/dist/esm/web.js.map +1 -1
  28. package/dist/plugin.cjs.js +165 -0
  29. package/dist/plugin.cjs.js.map +1 -0
  30. package/dist/plugin.js +168 -0
  31. package/dist/plugin.js.map +1 -0
  32. package/ios/Plugin/CameraController.swift +19 -1
  33. package/ios/Plugin/Plugin.m +1 -0
  34. package/ios/Plugin/Plugin.swift +42 -7
  35. package/ios/Plugin.xcodeproj/project.pbxproj +10 -4
  36. package/ios/Podfile +1 -1
  37. package/ios/Podfile.lock +4 -4
  38. package/package.json +40 -35
@@ -8,7 +8,7 @@
8
8
  s.author = 'Ariel Hernandez Musa'
9
9
  s.source = { :git => 'https://github.com/Cap-go/camera-preview.git', :tag => s.version.to_s }
10
10
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
11
- s.ios.deployment_target = '12.0'
11
+ s.ios.deployment_target = '13.0'
12
12
  s.dependency 'Capacitor'
13
13
  s.swift_version = '5.1'
14
14
  end
package/README.md CHANGED
@@ -39,25 +39,31 @@ or
39
39
 
40
40
  npm install @capgo/camera-preview
41
41
  ```
42
+
42
43
  Then run
44
+
43
45
  ```
44
46
  npx cap sync
45
47
  ```
46
48
 
47
49
  ## Extra Android installation steps
50
+
48
51
  **Important** `camera-preview` 3+ requires Gradle 7.
49
52
  Open `android/app/src/main/AndroidManifest.xml` and above the closing `</manifest>` tag add this line to request the CAMERA permission:
53
+
50
54
  ```xml
51
55
  <uses-permission android:name="android.permission.CAMERA" />
52
56
  ```
57
+
53
58
  For more help consult the [Capacitor docs](https://capacitorjs.com/docs/android/configuration#configuring-androidmanifestxml).
54
59
 
55
60
  ## Extra iOS installation steps
61
+
56
62
  You will need to add two permissions to `Info.plist`. Follow the [Capacitor docs](https://capacitorjs.com/docs/ios/configuration#configuring-infoplist) and add permissions with the raw keys `NSCameraUsageDescription` and `NSMicrophoneUsageDescription`. `NSMicrophoneUsageDescription` is only required, if audio will be used. Otherwise set the `disableAudio` option to `true`, which also disables the microphone permission request.
57
63
 
58
64
  ## Extra Web installation steps
59
- Add `import '@capgo/camera-preview'` to you entry script in ionic on `app.module.ts`, so capacitor can register the web platform from the plugin
60
65
 
66
+ Add `import '@capgo/camera-preview'` to you entry script in ionic on `app.module.ts`, so capacitor can register the web platform from the plugin
61
67
 
62
68
  # Methods
63
69
 
@@ -66,23 +72,23 @@ Add `import '@capgo/camera-preview'` to you entry script in ionic on `app.module
66
72
  Starts the camera preview instance.
67
73
  <br>
68
74
 
69
- | Option | values | descriptions |
70
- |----------|---------------|------------------------------------------------------------------------|
71
- | position | front \| rear | Show front or rear camera when start the preview. Defaults to front |
72
- | width | number | (optional) The preview width in pixels, default window.screen.width (applicable to the android and ios platforms only) |
73
- | height | number | (optional) The preview height in pixels, default window.screen.height (applicable to the android and ios platforms only) |
74
- | x | number | (optional) The x origin, default 0 (applicable to the android and ios platforms only) |
75
- | y | number | (optional) The y origin, default 0 (applicable to the android and ios platforms only) |
76
- | toBack | boolean | (optional) Brings your html in front of your preview, default false (applicable to the android and ios platforms only) |
77
- | paddingBottom | number | (optional) The preview bottom padding in pixes. Useful to keep the appropriate preview sizes when orientation changes (applicable to the android and ios platforms only) |
78
- | rotateWhenOrientationChanged | boolean | (optional) Rotate preview when orientation changes (applicable to the ios platforms only; default value is true) |
79
- | storeToFile | boolean | (optional) Capture images to a file and return back the file path instead of returning base64 encoded data, default false. |
80
- | disableExifHeaderStripping | boolean | (optional) Disable automatic rotation of the image, and let the browser deal with it, default true (applicable to the android and ios platforms only) |
81
- | enableHighResolution | boolean | (optional) Defaults to false - iOS only - Activate high resolution image capture so that output images are from the highest resolution possible on the device |
82
- | disableAudio | boolean | (optional) Disables audio stream to prevent permission requests, default false. (applicable to web and iOS only) |
83
- | lockAndroidOrientation | boolean | (optional) Locks device orientation when camera is showing, default false. (applicable to Android only) |
84
- | enableOpacity | boolean | (optional) Make the camera preview see-through. Ideal for augmented reality uses. Default false (applicable to Android and web only)
85
- | enableZoom | boolean | (optional) Set if you can pinch to zoom. Default false (applicable to the android and ios platforms only)
75
+ | Option | values | descriptions |
76
+ | ---------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
77
+ | position | front \| rear | Show front or rear camera when start the preview. Defaults to front |
78
+ | width | number | (optional) The preview width in pixels, default window.screen.width (applicable to the android and ios platforms only) |
79
+ | height | number | (optional) The preview height in pixels, default window.screen.height (applicable to the android and ios platforms only) |
80
+ | x | number | (optional) The x origin, default 0 (applicable to the android and ios platforms only) |
81
+ | y | number | (optional) The y origin, default 0 (applicable to the android and ios platforms only) |
82
+ | toBack | boolean | (optional) Brings your html in front of your preview, default false (applicable to the android and ios platforms only) |
83
+ | paddingBottom | number | (optional) The preview bottom padding in pixes. Useful to keep the appropriate preview sizes when orientation changes (applicable to the android and ios platforms only) |
84
+ | rotateWhenOrientationChanged | boolean | (optional) Rotate preview when orientation changes (applicable to the ios platforms only; default value is true) |
85
+ | storeToFile | boolean | (optional) Capture images to a file and return back the file path instead of returning base64 encoded data, default false. |
86
+ | disableExifHeaderStripping | boolean | (optional) Disable automatic rotation of the image, and let the browser deal with it, default true (applicable to the android and ios platforms only) |
87
+ | enableHighResolution | boolean | (optional) Defaults to false - iOS only - Activate high resolution image capture so that output images are from the highest resolution possible on the device |
88
+ | disableAudio | boolean | (optional) Disables audio stream to prevent permission requests, default false. (applicable to web and iOS only) |
89
+ | lockAndroidOrientation | boolean | (optional) Locks device orientation when camera is showing, default false. (applicable to Android only) |
90
+ | enableOpacity | boolean | (optional) Make the camera preview see-through. Ideal for augmented reality uses. Default false (applicable to Android and web only) |
91
+ | enableZoom | boolean | (optional) Set if you can pinch to zoom. Default false (applicable to the android and ios platforms only) |
86
92
 
87
93
  <!-- <strong>Options:</strong>
88
94
  All options stated are optional and will default to values here
@@ -105,7 +111,7 @@ import { CameraPreview, CameraPreviewOptions } from '@capgo/camera-preview';
105
111
  const cameraPreviewOptions: CameraPreviewOptions = {
106
112
  position: 'rear',
107
113
  height: 1920,
108
- width: 1080
114
+ width: 1080,
109
115
  };
110
116
  CameraPreview.start(cameraPreviewOptions);
111
117
  ```
@@ -127,7 +133,8 @@ Take into account that this will make transparent all ion-content on application
127
133
  ```
128
134
 
129
135
  If the camera preview is not displaying after applying the above styles, apply transparent background color to the root div element of the parent component
130
- Ex: VueJS >> App.vue component
136
+ Ex: VueJS >> App.vue component
137
+
131
138
  ```html
132
139
  <template>
133
140
  <ion-app id="app">
@@ -142,7 +149,6 @@ Ex: VueJS >> App.vue component
142
149
  <style>
143
150
  ```
144
151
 
145
-
146
152
  ### stop()
147
153
 
148
154
  <info>Stops the camera preview instance.</info><br/>
@@ -152,9 +158,11 @@ CameraPreview.stop();
152
158
  ```
153
159
 
154
160
  ### flip()
161
+
155
162
  <info>Switch between rear and front camera only for android and ios, web is not supported</info>
163
+
156
164
  ```javascript
157
- CameraPreview.flip()
165
+ CameraPreview.flip();
158
166
  ```
159
167
 
160
168
  <!-- ### switchCamera([successCallback, errorCallback])
@@ -183,11 +191,11 @@ CameraPreview.hide();
183
191
 
184
192
  ### capture(options)
185
193
 
186
- | Option | values | descriptions |
187
- |----------|---------------|----------------------------------------------------------------------|
188
- | quality | number | (optional) The picture quality, 0 - 100, default 85 |
189
- | width | number | (optional) The picture width, default 0 (Device default) |
190
- | height | number | (optional) The picture height, default 0 (Device default) |
194
+ | Option | values | descriptions |
195
+ | ------- | ------ | --------------------------------------------------------- |
196
+ | quality | number | (optional) The picture quality, 0 - 100, default 85 |
197
+ | width | number | (optional) The picture width, default 0 (Device default) |
198
+ | height | number | (optional) The picture height, default 0 (Device default) |
191
199
 
192
200
  <!-- <info>Take the picture. If width and height are not specified or are 0 it will use the defaults. If width and height are specified, it will choose a supported photo size that is closest to width and height specified and has closest aspect ratio to the preview. The argument `quality` defaults to `85` and specifies the quality/compression value: `0=max compression`, `100=max quality`.</info><br/> -->
193
201
 
@@ -195,21 +203,20 @@ CameraPreview.hide();
195
203
  import { CameraPreviewPictureOptions } from '@capgo/camera-preview';
196
204
 
197
205
  const cameraPreviewPictureOptions: CameraPreviewPictureOptions = {
198
- quality: 50
206
+ quality: 50,
199
207
  };
200
208
 
201
209
  const result = await CameraPreview.capture(cameraPreviewPictureOptions);
202
210
  const base64PictureData = result.value;
203
211
 
204
212
  // do sometime with base64PictureData
205
-
206
213
  ```
207
214
 
208
215
  ### captureSample(options)
209
216
 
210
- | Option | values | descriptions |
211
- |----------|---------------|----------------------------------------------------------------------|
212
- | quality | number | (optional) The picture quality, 0 - 100, default 85 |
217
+ | Option | values | descriptions |
218
+ | ------- | ------ | --------------------------------------------------- |
219
+ | quality | number | (optional) The picture quality, 0 - 100, default 85 |
213
220
 
214
221
  <info>Captures a sample image from the video stream. Only for Android and iOS, web implementation falls back to `capture` method. This can be used to perform real-time analysis on the current frame in the video. The argument `quality` defaults to `85` and specifies the quality/compression value: `0=max compression`, `100=max quality`.</info><br/>
215
222
 
@@ -217,14 +224,13 @@ const base64PictureData = result.value;
217
224
  import { CameraSampleOptions } from '@capgo/camera-preview';
218
225
 
219
226
  const cameraSampleOptions: CameraSampleOptions = {
220
- quality: 50
227
+ quality: 50,
221
228
  };
222
229
 
223
230
  const result = await CameraPreview.captureSample(cameraSampleOptions);
224
231
  const base64PictureData = result.value;
225
232
 
226
233
  // do something with base64PictureData
227
-
228
234
  ```
229
235
 
230
236
  ### getSupportedFlashModes()
@@ -237,6 +243,18 @@ import { CameraPreviewFlashMode } from '@capgo/camera-preview';
237
243
  const flashModes = await CameraPreview.getSupportedFlashModes();
238
244
  const supportedFlashModes: CameraPreviewFlashMode[] = flashModes.result;
239
245
  ```
246
+
247
+ ### getHorizontalFov()
248
+
249
+ <info>Get the horizontal FOV of camera the camera device currently started. Returns a float <br/>
250
+
251
+ Please note that camera should be already started to get this value.
252
+
253
+ ```javascript
254
+ const cameraFovRequest = await CameraPreview.getHorizontalFov();
255
+ const cameraFovRequest = cameraFovRequest.result;
256
+ ```
257
+
240
258
  ### setFlashMode(options)
241
259
 
242
260
  <info>Set the flash mode. See <code>[FLASH_MODE](#camera_Settings.FlashMode)</code> for details about the possible values for flashMode.</info><br/>
@@ -247,7 +265,7 @@ const CameraPreviewFlashMode: CameraPreviewFlashMode = 'torch';
247
265
  CameraPreview.setFlashMode(cameraPreviewFlashMode);
248
266
  ```
249
267
 
250
- ### startRecordVideo(options) ---- ANDROID only
268
+ ### startRecordVideo(options) ---- ANDROID only
251
269
 
252
270
  <info>Start capturing video</info><br/>
253
271
 
@@ -261,7 +279,7 @@ const cameraPreviewOptions: CameraPreviewOptions = {
261
279
  CameraPreview.startRecordVideo(cameraPreviewOptions);
262
280
  ```
263
281
 
264
- ### stopRecordVideo() ---- ANDROID only
282
+ ### stopRecordVideo() ---- ANDROID only
265
283
 
266
284
  <info>Finish capturing a video. The captured video will be returned as a file path and the video format is .mp4</info><br/>
267
285
 
@@ -270,13 +288,13 @@ const resultRecordVideo = await CameraPreview.stopRecordVideo();
270
288
  this.stopCamera();
271
289
  ```
272
290
 
273
- ### setOpacity(options: CameraOpacityOptions): Promise<{}>; ---- ANDROID only
291
+ ### setOpacity(options: CameraOpacityOptions): Promise<{}>; ---- ANDROID only
274
292
 
275
293
  <info>Set the opacity for the camera preview</info><br/>
276
294
 
277
295
  ```javascript
278
- const myCamera = CameraPreview.start({enableOpacity: true});
279
- myCamera.setOpacity({opacity: 0.4});
296
+ const myCamera = CameraPreview.start({ enableOpacity: true });
297
+ myCamera.setOpacity({ opacity: 0.4 });
280
298
  ```
281
299
 
282
300
  # Settings
@@ -287,13 +305,13 @@ myCamera.setOpacity({opacity: 0.4});
287
305
 
288
306
  <info>Flash mode settings:</info><br/>
289
307
 
290
- | Name | Type | Default | Note |
291
- | ------- | ------- | ------- | ------------- |
292
- | OFF | string | off | |
293
- | ON | string | on | |
294
- | AUTO | string | auto | |
295
- | RED_EYE | string | red-eye | Android Only |
296
- | TORCH | string | torch | |
308
+ | Name | Type | Default | Note |
309
+ | ------- | ------ | ------- | ------------ |
310
+ | OFF | string | off | |
311
+ | ON | string | on | |
312
+ | AUTO | string | auto | |
313
+ | RED_EYE | string | red-eye | Android Only |
314
+ | TORCH | string | torch | |
297
315
 
298
316
  <!--
299
317
 
@@ -428,3 +446,202 @@ Created by Marcel Barbosa Pinto [@mbppower](https://github.com/mbppower)
428
446
  A working example can be found at [Demo](https://github.com/capacitor-community/camera-preview/tree/master/demo)
429
447
 
430
448
  To run the demo on your local network and access media devices, a secure context is needed. Add an `.env` file at the root of the demo folder with `HTTPS=true` to start react with HTTPS.
449
+
450
+ ## API
451
+
452
+ <docgen-index>
453
+
454
+ * [`start(...)`](#start)
455
+ * [`stop()`](#stop)
456
+ * [`capture(...)`](#capture)
457
+ * [`captureSample(...)`](#capturesample)
458
+ * [`getSupportedFlashModes()`](#getsupportedflashmodes)
459
+ * [`getHorizontalFov()`](#gethorizontalfov)
460
+ * [`setFlashMode(...)`](#setflashmode)
461
+ * [`flip()`](#flip)
462
+ * [`setOpacity(...)`](#setopacity)
463
+ * [Interfaces](#interfaces)
464
+ * [Type Aliases](#type-aliases)
465
+
466
+ </docgen-index>
467
+
468
+ <docgen-api>
469
+ <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
470
+
471
+ ### start(...)
472
+
473
+ ```typescript
474
+ start(options: CameraPreviewOptions) => Promise<void>
475
+ ```
476
+
477
+ | Param | Type |
478
+ | ------------- | --------------------------------------------------------------------- |
479
+ | **`options`** | <code><a href="#camerapreviewoptions">CameraPreviewOptions</a></code> |
480
+
481
+ --------------------
482
+
483
+
484
+ ### stop()
485
+
486
+ ```typescript
487
+ stop() => Promise<void>
488
+ ```
489
+
490
+ --------------------
491
+
492
+
493
+ ### capture(...)
494
+
495
+ ```typescript
496
+ capture(options: CameraPreviewPictureOptions) => Promise<{ value: string; }>
497
+ ```
498
+
499
+ | Param | Type |
500
+ | ------------- | ----------------------------------------------------------------------------------- |
501
+ | **`options`** | <code><a href="#camerapreviewpictureoptions">CameraPreviewPictureOptions</a></code> |
502
+
503
+ **Returns:** <code>Promise&lt;{ value: string; }&gt;</code>
504
+
505
+ --------------------
506
+
507
+
508
+ ### captureSample(...)
509
+
510
+ ```typescript
511
+ captureSample(options: CameraSampleOptions) => Promise<{ value: string; }>
512
+ ```
513
+
514
+ | Param | Type |
515
+ | ------------- | ------------------------------------------------------------------- |
516
+ | **`options`** | <code><a href="#camerasampleoptions">CameraSampleOptions</a></code> |
517
+
518
+ **Returns:** <code>Promise&lt;{ value: string; }&gt;</code>
519
+
520
+ --------------------
521
+
522
+
523
+ ### getSupportedFlashModes()
524
+
525
+ ```typescript
526
+ getSupportedFlashModes() => Promise<{ result: CameraPreviewFlashMode[]; }>
527
+ ```
528
+
529
+ **Returns:** <code>Promise&lt;{ result: CameraPreviewFlashMode[]; }&gt;</code>
530
+
531
+ --------------------
532
+
533
+
534
+ ### getHorizontalFov()
535
+
536
+ ```typescript
537
+ getHorizontalFov() => Promise<{ result: any; }>
538
+ ```
539
+
540
+ **Returns:** <code>Promise&lt;{ result: any; }&gt;</code>
541
+
542
+ --------------------
543
+
544
+
545
+ ### setFlashMode(...)
546
+
547
+ ```typescript
548
+ setFlashMode(options: { flashMode: CameraPreviewFlashMode | string; }) => Promise<void>
549
+ ```
550
+
551
+ | Param | Type |
552
+ | ------------- | ----------------------------------- |
553
+ | **`options`** | <code>{ flashMode: string; }</code> |
554
+
555
+ --------------------
556
+
557
+
558
+ ### flip()
559
+
560
+ ```typescript
561
+ flip() => Promise<void>
562
+ ```
563
+
564
+ --------------------
565
+
566
+
567
+ ### setOpacity(...)
568
+
569
+ ```typescript
570
+ setOpacity(options: CameraOpacityOptions) => Promise<void>
571
+ ```
572
+
573
+ | Param | Type |
574
+ | ------------- | --------------------------------------------------------------------- |
575
+ | **`options`** | <code><a href="#cameraopacityoptions">CameraOpacityOptions</a></code> |
576
+
577
+ --------------------
578
+
579
+
580
+ ### Interfaces
581
+
582
+
583
+ #### CameraPreviewOptions
584
+
585
+ | Prop | Type | Description |
586
+ | ---------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
587
+ | **`parent`** | <code>string</code> | Parent element to attach the video preview element to (applicable to the web platform only) |
588
+ | **`className`** | <code>string</code> | Class name to add to the video preview element (applicable to the web platform only) |
589
+ | **`width`** | <code>number</code> | The preview width in pixels, default window.screen.width |
590
+ | **`height`** | <code>number</code> | The preview height in pixels, default window.screen.height |
591
+ | **`x`** | <code>number</code> | The x origin, default 0 (applicable to the android and ios platforms only) |
592
+ | **`y`** | <code>number</code> | The y origin, default 0 (applicable to the android and ios platforms only) |
593
+ | **`toBack`** | <code>boolean</code> | Brings your html in front of your preview, default false (applicable to the android only) |
594
+ | **`paddingBottom`** | <code>number</code> | The preview bottom padding in pixes. Useful to keep the appropriate preview sizes when orientation changes (applicable to the android and ios platforms only) |
595
+ | **`rotateWhenOrientationChanged`** | <code>boolean</code> | Rotate preview when orientation changes (applicable to the ios platforms only; default value is true) |
596
+ | **`position`** | <code>string</code> | Choose the camera to use 'front' or 'rear', default 'front' |
597
+ | **`storeToFile`** | <code>boolean</code> | Defaults to false - Capture images to a file and return the file path instead of returning base64 encoded data |
598
+ | **`disableExifHeaderStripping`** | <code>boolean</code> | Defaults to false - Android Only - Disable automatic rotation of the image, and let the browser deal with it (keep reading on how to achieve it) |
599
+ | **`enableHighResolution`** | <code>boolean</code> | Defaults to false - iOS only - Activate high resolution image capture so that output images are from the highest resolution possible on the device * |
600
+ | **`disableAudio`** | <code>boolean</code> | Defaults to false - Web only - Disables audio stream to prevent permission requests and output switching |
601
+ | **`lockAndroidOrientation`** | <code>boolean</code> | Android Only - Locks device orientation when camera is showing. |
602
+ | **`enableOpacity`** | <code>boolean</code> | Defaults to false - Android and Web only. Set if camera preview can change opacity. |
603
+ | **`enableZoom`** | <code>boolean</code> | Defaults to false - Android only. Set if camera preview will support pinch to zoom. |
604
+
605
+
606
+ #### CameraPreviewPictureOptions
607
+
608
+ | Prop | Type | Description |
609
+ | ------------- | ------------------------------------------------------- | ------------------------------------------------------------------------------------ |
610
+ | **`height`** | <code>number</code> | The picture height, optional, default 0 (Device default) |
611
+ | **`width`** | <code>number</code> | The picture width, optional, default 0 (Device default) |
612
+ | **`quality`** | <code>number</code> | The picture quality, 0 - 100, default 85 |
613
+ | **`format`** | <code><a href="#pictureformat">PictureFormat</a></code> | The picture format, jpeg or png, default jpeg on `Web`. quality has no effect on png |
614
+
615
+
616
+ #### CameraSampleOptions
617
+
618
+ | Prop | Type | Description |
619
+ | ------------- | ------------------- | ---------------------------------------- |
620
+ | **`quality`** | <code>number</code> | The picture quality, 0 - 100, default 85 |
621
+
622
+
623
+ #### CameraOpacityOptions
624
+
625
+ | Prop | Type | Description |
626
+ | ------------- | ------------------- | ----------------------------------------------------- |
627
+ | **`opacity`** | <code>number</code> | The percent opacity to set for camera view, default 1 |
628
+
629
+
630
+ ### Type Aliases
631
+
632
+
633
+ #### CameraPosition
634
+
635
+ <code>'rear' | 'front'</code>
636
+
637
+
638
+ #### PictureFormat
639
+
640
+ <code>'jpeg' | 'png'</code>
641
+
642
+
643
+ #### CameraPreviewFlashMode
644
+
645
+ <code>'off' | 'on' | 'auto' | 'red-eye' | 'torch'</code>
646
+
647
+ </docgen-api>
File without changes
@@ -0,0 +1,2 @@
1
+ #Wed Nov 16 10:54:08 UTC 2022
2
+ gradle.version=7.4.2
File without changes
@@ -1,8 +1,8 @@
1
1
  ext {
2
- junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.1'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.2.0'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.2'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.3.0'
2
+ junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.4.2'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.3'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.4.0'
6
6
  }
7
7
 
8
8
  buildscript {
@@ -11,17 +11,17 @@ buildscript {
11
11
  google()
12
12
  }
13
13
  dependencies {
14
- classpath 'com.android.tools.build:gradle:3.3.2'
14
+ classpath 'com.android.tools.build:gradle:7.2.1'
15
15
  }
16
16
  }
17
17
 
18
18
  apply plugin: 'com.android.library'
19
19
 
20
20
  android {
21
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 30
21
+ compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 32
22
22
  defaultConfig {
23
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21
24
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 30
23
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
24
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 32
25
25
  versionCode 1
26
26
  versionName "1.0"
27
27
  testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -1,6 +1,5 @@
1
- #Fri Dec 01 12:41:00 CST 2017
2
1
  distributionBase=GRADLE_USER_HOME
3
2
  distributionPath=wrapper/dists
3
+ distributionUrl=https://services.gradle.org/distributions/gradle-7.4.2-bin.zip
4
4
  zipStoreBase=GRADLE_USER_HOME
5
- zipStorePath=wrapper/dists
6
- distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
5
+ zipStorePath=wrapper/dists