chore(deps): upgrade camerax (#257)

* Upgrade CameraX to alpha6

* Upgrade CameraX extensions to alpha26

* `init` -> `getInstance`

* Use new Extensions API

* Update CameraView.kt

* use new ExtensionsManager API in `getAvailableCameraDevices()`

* fix cpplint errors
This commit is contained in:
Marc Rousavy
2021-07-07 12:57:28 +02:00
committed by GitHub
parent aa9132b527
commit 1e64215d37
5 changed files with 33 additions and 54 deletions

View File

@@ -19,7 +19,6 @@ struct JImageProxy : public facebook::jni::JavaClass<JImageProxy> {
int getPlaneCount();
int getBytesPerRow();
void close();
};
} // namespace vision

View File

@@ -8,6 +8,7 @@
#include <jni.h>
#include <fbjni/fbjni.h>
#include <vector>
#include <string>
#include "JImageProxy.h"
@@ -32,7 +33,7 @@ class JSI_EXPORT JImageProxyHostObject : public jsi::HostObject {
private:
static auto constexpr TAG = "VisionCamera";
void assertIsFrameStrong(jsi::Runtime& runtime, const std::string& accessedPropName);
void assertIsFrameStrong(jsi::Runtime& runtime, const std::string& accessedPropName); // NOLINT(runtime/references)
};
} // namespace vision