f3fd3f15e3
<!-- ❤️ Thank you for your contribution! ❤️ Make sure you have read the Contributing Guidelines: https://github.com/mrousavy/react-native-vision-camera/blob/main/CONTRIBUTING.md --> ## What <!-- Enter a short description on what this pull-request does. Examples: This PR adds support for the HEVC format. This PR fixes a "unsupported device" error on iPhone 8 and below. This PR fixes a typo in a CameraError. This PR adds support for Quadruple Cameras. --> ## Changes <!-- Create a short list of logic-changes. Examples: * This PR changes the default value of X to Y. * This PR changes the configure() function to cache results. --> ## Tested on <!-- Create a short list of devices and operating-systems you have tested this change on. (And verified that everything works as expected). Examples: * iPhone 11 Pro, iOS 14.3 * Huawai P20, Android 10 --> ## Related issues <!-- Link related issues here. Examples: * Fixes #29 * Closes #30 * Resolves #5 --> |
||
---|---|---|
.. | ||
.settings | ||
gradle/wrapper | ||
src/main | ||
.editorconfig | ||
.project | ||
build.gradle | ||
CMakeLists.txt | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
README.md | ||
settings.gradle |
android
This folder contains the Android-platform-specific code for react-native-vision-camera.
Prerequesites
- Install ktlint
brew install ktlint
Getting Started
It is recommended that you work on the code using the Example project (example/android/
), since that always includes the React Native header files, plus you can easily test changes that way.
You can however still edit the library project here by opening this folder with Android Studio.
Committing
Before committing, make sure that you're not violating the Kotlin codestyles. To do that, run the following command:
yarn check-android
This will also try to automatically fix any errors by re-formatting the Kotlin code.