Commit Graph

84 Commits

Author SHA1 Message Date
dependabot[bot]
c3ff25de41
Bump gradle from 4.1.3 to 4.2.0 in /android (#132)
* Bump gradle from 4.1.3 to 4.2.0 in /android

Bumps gradle from 4.1.3 to 4.2.0.

Signed-off-by: dependabot[bot] <support@github.com>

* update gradle wrapper

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marc Rousavy <marcrousavy@hotmail.com>
2021-05-05 10:41:42 +02:00
Marc Rousavy
f57714747a
fix: Mirror selfies on Android (#129)
* Flip Image (slow approach)

* Measure time

* REACT_CLASS -> TAG

* d -> i

* remove TODO
2021-05-03 19:14:19 +02:00
Marc Rousavy
ae1dde1993 Use isNotEmpty instead of size > 0 2021-04-26 15:39:20 +02:00
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
Marc Rousavy
a9ef57097a Bump CameraX version (alpha03) 2021-03-25 10:19:56 +01:00
Marc Rousavy
35806ff660
Upgrade Example to RN 0.64 (#83)
* ReactLogger: Also log function

* Run SwiftFormat & SwiftLint in example project

* Upgrade to RN 0.64 1/2

* Update lockfiles

* Upgrade a few packages

* index.tsx -> index.js

* Upgrade docusaurus

* Fix line length violation

* Update CameraView.swift

* Update gradle plugin

* Fix example to prefer higher res cameras

* Remove unused log line

* Update App.tsx
2021-03-19 15:53:19 +01: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
51d4ce51e0 Use JRE Kotlin instead of Kotlin/Native 2021-03-09 13:08:30 +01:00
Marc Rousavy
588f54ad4e Remove ktlint from build.gradle 2021-03-09 13:08:20 +01:00
Marc Rousavy
7d6f039263 Bump kotlin to 1.4.30 2021-03-09 13:08:14 +01:00
Marc Rousavy
4639a79139 Android: Use kotlinx-coroutines-android instead of core (fixes #9) 2021-03-09 12:21:27 +01:00
Marc Rousavy
3de4675592 Add "check-all" script 2021-03-09 12:19:18 +01:00
dependabot[bot]
5a41b81ce8
Bump kotlinx-coroutines-core from 1.4.2 to 1.4.3-native-mt in /android (#19)
Bumps [kotlinx-coroutines-core](https://github.com/Kotlin/kotlinx.coroutines) from 1.4.2 to 1.4.3-native-mt.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md)
- [Commits](https://github.com/Kotlin/kotlinx.coroutines/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-04 13:22:13 +01:00
dependabot[bot]
2e6986d838
Bump kotlinx-coroutines-guava from 1.4.2 to 1.4.3-native-mt in /android (#18)
Bumps [kotlinx-coroutines-guava](https://github.com/Kotlin/kotlinx.coroutines) from 1.4.2 to 1.4.3-native-mt.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md)
- [Commits](https://github.com/Kotlin/kotlinx.coroutines/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-04 13:20:43 +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
d70be880a4 Update gradle.properties 2021-02-19 21:10:39 +01:00
Marc Rousavy
3089a99ae8 Update Size+easy.kt 2021-02-19 20:55:42 +01:00
Marc Rousavy
695f98f551 Set minSdkVersion to 21 2021-02-19 20:54:55 +01:00
Marc Rousavy
040722defa update android lib name 2021-02-19 20:48:35 +01:00
Marc Rousavy
25a7e3f267 Bump gradle build tools to 4.1.2 (gradle 6.5) 2021-02-19 20:46:23 +01:00
Marc Rousavy
1ad68463f3 Use gradle 3.2.1 instead of 4.1.2 2021-02-19 20:43:37 +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
71dc48a8b4 Add gradle dependencies 2021-02-19 20:36: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