fa5f5c0cab
* Implement `Frame.close()` * close frame in dtor * Update JImageProxyHostObject.cpp * fix close * Check if closed * remove a few logs * r * fix `isValid` and `isReady` * Add JImage * Release JNI frame ref on destroy * fix pod setup * Fix isValid call * Fix `close` not returning a function * throw error if closed twice * iOS: Schedule `console.error` call on JS thread * Android: Log Frame Processor Error to JS * fix syntax * Check if valid `toString()` * Update Frame.ts * Remove `isReady` * Fix JImage accessors * remove `JImage` C++ sources * Throw error if accessing props on closed Frame * Delete `JImage.h` |
||
---|---|---|
.. | ||
.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.