mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Update vision camera and plugin (#2949)
* Update package.json
* Update package-lock.json
* Update Podfile.lock
* Update vision camera patch (that removes branded metadate)
* Remove camera orientation prop and patch
* Remove frame processor orientation patch
No longer needed, and accepted by the vision-plugin
* Remove rotationLocalPhotoPatch as it is not used
* Do not rotate freshly taken photos anymore to save in a temporary folder
I have not yet removed the actual making of a copy of the photo into the temp folder. It is only no longer rotated.
* Remove unused deviceOrientation param
* Rename file
* Change function name as it no longer rotates
* Move image resize logic to the existing helper function
Instead of calling it a "patch"
* Move helper function to the only file it is imported into
* Latest camera library versions
* Revert "Latest camera library versions"
This reverts commit da6b2f7c28.
* Remove iPad camera orientation patch
* Update import
* Update Podfile.lock
This commit is contained in:
@@ -1,22 +1,3 @@
|
||||
diff --git a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessors/VisionCameraProxy.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessors/VisionCameraProxy.kt
|
||||
index d697bef..8de418b 100644
|
||||
--- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessors/VisionCameraProxy.kt
|
||||
+++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessors/VisionCameraProxy.kt
|
||||
@@ -7,12 +7,14 @@ import com.facebook.jni.HybridData
|
||||
import com.facebook.proguard.annotations.DoNotStrip
|
||||
import com.facebook.react.bridge.ReactApplicationContext
|
||||
import com.facebook.react.bridge.UiThreadUtil
|
||||
+import com.facebook.react.common.annotations.FrameworkAPI
|
||||
import com.facebook.react.turbomodule.core.CallInvokerHolderImpl
|
||||
import com.facebook.react.uimanager.UIManagerHelper
|
||||
import com.mrousavy.camera.core.ViewNotFoundError
|
||||
import com.mrousavy.camera.react.CameraView
|
||||
import java.lang.ref.WeakReference
|
||||
|
||||
+@OptIn(FrameworkAPI::class)
|
||||
@Suppress("KotlinJniMissingFunction") // we use fbjni.
|
||||
class VisionCameraProxy(private val reactContext: ReactApplicationContext) {
|
||||
companion object {
|
||||
diff --git a/node_modules/react-native-vision-camera/ios/Core/MetadataProvider.swift b/node_modules/react-native-vision-camera/ios/Core/MetadataProvider.swift
|
||||
index 4855d31..ece8024 100644
|
||||
--- a/node_modules/react-native-vision-camera/ios/Core/MetadataProvider.swift
|
||||
Reference in New Issue
Block a user