Commit Graph

67 Commits

Author SHA1 Message Date
Marc Rousavy
f2a89570c5
Upgrade CameraX to 1.1.0-alpha04 (#128)
* Upgrade CameraX to 1.1.0-alpha4

* Upgrade Kotlin to 1.4.32

* Suppress `UnsafeOptInUsageError` CameraSelector override

* Suppress `UnsafeOptInUsageError` for takePhoto

* Suppress `MissingPermission` for recordVideo

* Remove unreported lint suppressions
2021-04-26 12:56:36 +02:00
Marc Rousavy
11d6388a06
Fix Permission grantResults out of bounds (#120)
(ArrayIndexOutOfBoundsException)
2021-04-20 10:21:59 +02:00
Marc Rousavy
9320e356e3
Get sizes per ImageFormat/PixelFormat (#119)
* Get sizes per ImageFormat/PixelFormat

* Fix `getOutputMinFrameDuration` crashing

* Fix `isHighestPhotoQualitySupported`

* Add TS type explanations

* Update CameraDevice.ts

* Update CameraViewModule.kt

* Add link to AVCaptureColorSpace apple docs
2021-04-13 13:01:24 +02:00
Marc Rousavy
25b10b7106 Remove scannable codes stuff 2021-03-31 14:39:17 +02:00
mrousavy
89a35812f7 Remove a few TODOs 2021-03-17 19:29:03 +01:00
Marc Rousavy
db8960580f
Feature/supports focus (#72)
* Add `supportsFocus` prop to CameraDevice

* Add true-depth camera again

* Revert "Add true-depth camera again"

This reverts commit 5814b8ca7a15b3273ff29498144bb352619a4c1d.
2021-03-17 18:07:05 +01:00
Marc Rousavy
d85126d883
Init ExtensionsManager and ProcessCameraProvider before checking Extension availability (#48)
* Init ExtensionsManager and ProcessCameraProvider before checking Extension availability

* Remove withSuspendablePromise

* Async init ProcessCameraProvider

* Remove that unnecessary Future caching again

* Post `update` on previewView

Fixes "previewView.display must not be null!" error
2021-03-12 10:45:23 +01:00
Marc Rousavy
6438b9a8bc
Bump CameraX versions to alpha2/alpha22 (#7)
* Bump CameraX versions to alpha2/alpha22
* Use `setDefaultResolution` to set format's photoSize
2021-02-26 17:34:28 +01:00
Marc Rousavy
03b9246afe
Devops: KTLint to lint Kotlin code (#6)
* Adds KTLint as a GitHub action
* Adds KTLint to the gradle project for IDE integration
* Adds .editorconfig to configure KTLint (android/)
2021-02-26 10:56:20 +01:00
Marc Rousavy
edbd850b4c Skip devices with harwarde level LEGACY 2021-02-25 10:20:23 +01:00
Marc Rousavy
56947b07e9 Remove CONTROL_SCENE_MODES for HDR and Night-Mode 2021-02-20 10:34:46 +01:00
Marc Rousavy
3089a99ae8 Update Size+easy.kt 2021-02-19 20:55:42 +01:00
Marc Rousavy
040722defa update android lib name 2021-02-19 20:48:35 +01:00
Marc Rousavy
d06b27782c fix package names to reflect actual folder path 2021-02-19 20:43:30 +01:00
Marc Rousavy
d6a0e509a7 update package name 2021-02-19 20:41:49 +01:00
Marc Rousavy
4d42be6436 Add Android 2021-02-19 16:28:14 +01:00
Marc Rousavy
c04a4b72be Bootstrap 2021-02-19 16:07:53 +01:00