Commit Graph

247 Commits

Author SHA1 Message Date
Valentin
18ed8f7984 fix(android): Support writing custom Exif tags to modified image file (#2402) 2019-08-03 20:48:36 +02:00
Hanno Fellmann
cfa02695cf fix(exif): writing EXIF data with correct data type (#2396) 2019-08-03 20:46:54 +02:00
Laurin Quast
72a8d7f34c
fix: revert breaking change upgrading to sdk 28 and androidx
This reverts commit e2a895ad1c.
2019-06-06 21:00:59 +02:00
Antonio Grass
1897633966 fix setParameters error (#2288)
* add try catch runtime in setParameters

* fix add log

* fix log names
2019-06-02 16:21:59 -03:00
Greg Alexander
e2a895ad1c feat(androidX): upgrading to sdk 28 and androidx (#2068)
* upgrading to sdk 28 and androidx

* revert attempt to fix build

* fixing build

* build version fix

* updating example app

* manifest update

* using stable release, instead of beta

* androidx migration doc

* migration doc update

* follow on androidx upgrade after rebase
2019-06-02 16:20:57 -03:00
Valentin
8ad809ee88 feat(android): write Exif tags to modified image file (#2263) 2019-05-15 09:10:03 -03:00
psk200
481594c4c6 feat(android): added image details to payload (#2269) 2019-05-15 09:09:46 -03:00
Andre Seiji
60cc4ccf56 feat(android): Adding case 270 degrees to getFirebaseRotation method, according to FIrebase specs. (#2264) 2019-05-13 14:16:26 -03:00
Telmen
a6b619cb73 feat(android): front camera face detect (#2257) 2019-05-09 12:22:22 -03:00
Mathieu Acthernoene
2e529183c8 Ignore duplicate META files 2019-04-26 17:59:18 +02:00
Daniil Ovoshchnikov
1b9fb63e56 feat(mlkit): add mlkit barcode detection ios (#2209)
extend barcode type cases for android
2019-04-16 15:33:46 -03:00
hushicai
24df865ee2 fix(android): picture sizes not updated when ratio changed (#2204) 2019-04-11 09:11:25 -03:00
Daniil Ovoshchnikov
025e7d97a4 feat(ios): migrate face detection to mlkit (#2193)
add face detection using mlkit
add enable tracking prop
cleanup android set tracking methods
remove old face detection
fix basic example not building on ios
2019-04-11 09:10:19 -03:00
Daniil Ovoshchnikov
47469e7305 fix(android): replace assertion with a null check (#2194)
some android cleanup
2019-04-07 14:33:09 -03:00
Jose G
963c249399 fix(android): do not change camera rotation while video is being recorded (#2187) 2019-04-03 10:20:02 -03:00
Craig Tuttle
7bb9a1205c feat(android): autoFocusPointOfInterest, Camera & Camera2 (#1974)
* Android autoFocusPointOfInterest, Camera & Camera2

* updated example with touch to focus
2019-03-30 17:45:44 -03:00
Marius Reimer
d8922ac90e Upgrade to React Native 0.59.1 (#2162)
* Upgrade to React Native 0.59.1

* Fix CI

* Fix CI

* Fix CI

* Fix CI

* Fix CI

* Fix CI

* Fix CI

* Fix CI

* Fix CI
2019-03-28 18:08:43 -03:00
Yori Zhao
07f55ae102 fix(android): support inverted qrcode for RCTCamera (#2167) 2019-03-26 08:56:44 -03:00
Neha Gupta
ca35ac609d feat(exposure): adjustment support in Camera1(Camera API) (#2163) 2019-03-25 11:30:08 -03:00
Daniil Ovoshchnikov
d6485828fd fix(android): Android build error (#2152)
add link to version2 migration in main readme
2019-03-20 11:45:49 -03:00
NIkita Belobrov
e46b8573f8 fix(barcode): iniBarcodeReader (#2145) 2019-03-14 11:40:46 -03:00
Daniil Ovoshchnikov
0ab570a636 feat(mlkit): Migrate Face, Barcode and Text Recognition to Firebase MLKit (iOS - text, Android - all) (#2075)
* switch to firebase mlkit for text recognition

* migrate android to MLKit

migrate Text detection android to MLKit
update gradle of example app
Update build.gradle
separate gms vision facedetector to general flavor

migrate faceDetector to mlkit and fix incorrect bounds due to padding

migrate barCode detector to mlkit
update android instructions in readme
safe face implementation move gms to generalImplementation

* add mlkit example

setup android of mlkit example

setup ios of mlkit example
fix typo in readme
update example project readme

* amend mlkit migration to include raw data

add barcode detection in basic and mlkit examples

* fix duplicate bridgeDidBackground method

BREAKING CHANGE: We migrated to MLKit instead of Google Mobile Vision
2019-03-11 08:56:24 -03:00
Marius Reimer
1a89d7981a Feature: isRecordingInterrupted video promise property (#2007)
* feat(rn-camera): add isRecordingInterrupted return property

* docs(rn-camera): added isRecordingInterrupted description

* Merge branch 'master' into feat-isRecordingInterrupted
2019-03-10 14:51:51 -03:00
Shashank Kushwah
9d56a21ddc [Android] Expose barcode bounds and source dimension from google vision barcode scanner (#2095)
* added react-navigation

* added barcode scanner example

* exposed barcode bounds and source dimensions in google vision barcode

* updated typescript types for google vision barcode
2019-03-09 11:41:15 -03:00
Sergey
aded9a4c4e [Android] Expose rawValue from google vision barcode scanner (#2087)
* Expose rawValue from google vision barcode scanner

* Rename rawValue to rawData
2019-03-09 11:40:01 -03:00
Yori Zhao
e2cdad56a7 feat(android): support inverted qrcode (#2135) 2019-03-08 11:19:05 -03:00
Jose G
1009c4ed79 feat(android): allow specifying a different google vision version via gradle properties (#2112) 2019-02-20 14:27:04 +01:00
Darkmyr
4a89a1f18c feat: do not crash on devices without flash hardware (#2108)
* Support cameras without flash hardware

* lint
2019-02-15 09:02:45 +01:00
Frieder Bluemle
b9f7d772b2 fix: remove executable bit from regular files (#2103) [skip release] [skip ci] 2019-02-12 10:46:51 +01:00
Laurin Quast
22533ed8e8
feat: allow camera scene when audio permissions are denied (#2048), Fixes #2047, Fixes #2051 2019-01-18 15:58:48 +01:00
Andrew Schenk
d93a6c7e11 feat(android): add videoBitrate option for recordAsync (#2055) [skip release] 2019-01-18 15:48:42 +01:00
Matt Oakes
f7fb3e361d fix(android): use the correct camera orientation to fix image detection (#2050), Fixes #1714 2019-01-18 10:30:35 +01:00
Michał Pierzchała
5695f5d066 fix(android): prevent shutting down camera when re-mounting children (#1995)
* fix(android): prevent shutting down camera when re-mounting children

* fix: render children outside of native component
2019-01-08 08:48:54 -02:00
Laurin Quast
513bfe860b fix(android): use device orientation for images/videos instead of display orientation (#1992)
* fix(android): use device orientation for images/videos instead of display orientation

* fix(android): landscape rotation
2018-12-13 18:16:56 -02:00
Stanyslav Yadykin
cc8338565b Android rotated barcodes fix (#1994) 2018-12-13 18:16:46 -02:00
Laurin Quast
401c485db3
feat(rn-camera): deviceOrientation, videoOrientation, pictureOrientation
* feat(rn-camera): add deviceOrientation and videoOrientation to record response.

* feat(rn-camera): add deviceOrientation and pictureOrientation to take-picture-response

* fix(rn-camera): unify orientation handling for recording and takeing picture

* fix(types): adjust typescript types

* docs(rn-camra): document new properties

* fix(android): respect actual boolean value instead of only checking if it is present.

* feat(android): implement orientation prop for takePictureAsync

* feat(android): implement orientation prop for recordVideoAsync

* docs(rn-camera): adjust documentation

* fix(types): unmark properties as ios only

* fix(android): use constants
2018-12-12 15:04:08 +01:00
SimonErm
71b10c1ac8 fix(android): stop preview if pauseAfterCapture is set to true (#1933)
Fixes #1930
2018-11-20 13:29:45 +01:00
Simon Ermler
09018bbed2 use correct options key 2018-11-19 14:06:52 +01:00
Simon Ermler
6a1d8e3733 call start() at the end of setUsingCamera2Api() 2018-11-19 14:06:27 +01:00
Laurin Quast
1369aff3e7
fix(barcode): resolve crash when barcode does not include raw bytes (#1916) 2018-11-12 11:20:56 +01:00
Simon Ermler
a78ddc4870 add missing nullpointer check 2018-11-08 22:18:55 +01:00
Cosmo Wolfe
d69d28b400 feat(qr-code): return raw barcode data if available (#1904) 2018-11-07 08:53:56 +01:00
Ruben Maher
f6f9f2916d feat: add property pauseAfterCapture to takePictureAsync (#1641) 2018-11-06 13:18:48 +01:00
Robert van Kints
7ee140bbdc feat(android): add inverted google vision barcode scanning (#1896) 2018-11-01 22:27:23 +01:00
alastorohlin
2932f5addf Fix to critical issue "Could not find intellij-core.jar" (#1885)
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':react-native-camera'.
> Could not resolve all artifacts for configuration ':react-native-camera:classpath'.
   > Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.0.1).
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/tools/external/com-intellij/intellij-core/26.0.1/intellij-core-26.0.1.jar
2018-10-24 17:55:10 -03:00
Rubén Sospedra
9261524609 fix: Do not rely in to jcenter but google (#1874) 2018-10-23 07:12:33 -03:00
Raphael Hovsepyan
aea0db22f7 Added origin key for result points and added camera width and height (#1824) 2018-10-19 09:31:01 -03:00
Ivan Polomani
8de827e6c2 fix: Error retrieving camcorder profile params (#1835)
I got this error when I call `recordAsync(...)` with `quality: RNCamera.Constants.VideoQuality['480p']` on Samsung Galaxy Tab S 10.5.
```
Error: Error retrieving camcorder profile params
    at createErrorFromErrorData (NativeModules.js:123)
    at NativeModules.js:80
    at MessageQueue.__invokeCallback (MessageQueue.js:400)
    at MessageQueue.js:139
    at MessageQueue.__guardSafe (MessageQueue.js:316)
    at MessageQueue.invokeCallbackAndReturnFlushedQueue (MessageQueue.js:138)
```
It happens because there is no check if device actually supports given quality.
To make the `CamcorderProfile.get(quality)` call safe we need to check if there is appropriate CamcorderProfile by calling `CamcorderProfile.hasProfile(quality))`.

This PR fixes that issue.
2018-10-04 14:55:59 -03:00
Laurin Quast
0f697d0703
Merge pull request #1715 from PixilatedPhoto/master
Added onPictureTaken event emitter to RNCamera in Android
2018-09-24 22:58:41 +02:00
Tony Mack
0fea2e21cc Update build.gradle (#1802)
googlePlayServicesVersion update - this is making it hard to include other libraries that need an updated google-services version
2018-09-24 11:30:06 -03:00