diff --git a/patches/react-native-vision-camera+4.0.0-beta.13+001+rn75-compatibility.patch b/patches/react-native-vision-camera+4.0.0-beta.13+001+rn75-compatibility.patch deleted file mode 100644 index 7c585ddf9f27..000000000000 --- a/patches/react-native-vision-camera+4.0.0-beta.13+001+rn75-compatibility.patch +++ /dev/null @@ -1,2274 +0,0 @@ -diff --git a/node_modules/react-native-vision-camera/VisionCamera.podspec b/node_modules/react-native-vision-camera/VisionCamera.podspec -index 3a0e313..83ab343 100644 ---- a/node_modules/react-native-vision-camera/VisionCamera.podspec -+++ b/node_modules/react-native-vision-camera/VisionCamera.podspec -@@ -2,7 +2,13 @@ require "json" - - package = JSON.parse(File.read(File.join(__dir__, "package.json"))) - --nodeModules = File.join(File.dirname(`cd "#{Pod::Config.instance.installation_root.to_s}" && node --print "require.resolve('react-native/package.json')"`), '..') -+pkgJsonPath = ENV['REACT_NATIVE_DIR'] ? '../react-native/package.json' : 'react-native/package.json' -+nodeModules = File.join(File.dirname(`cd "#{Pod::Config.instance.installation_root.to_s}" && node --print "require.resolve('#{pkgJsonPath}')"`), '..') -+ -+frameworks_flags = { -+ "OTHER_CFLAGS" => "$(inherited) -DUSE_FRAMEWORKS", -+ "OTHER_CPLUSPLUSFLAGS" => "$(inherited) -DUSE_FRAMEWORKS", -+} - - forceDisableFrameProcessors = false - if defined?($VCDisableFrameProcessors) -@@ -15,6 +21,13 @@ workletsPath = File.join(nodeModules, "react-native-worklets-core") - hasWorklets = File.exist?(workletsPath) && !forceDisableFrameProcessors - Pod::UI.puts("[VisionCamera] react-native-worklets-core #{hasWorklets ? "found" : "not found"}, Frame Processors #{hasWorklets ? "enabled" : "disabled"}!") - -+default_config = { -+ "GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) SK_METAL=1 SK_GANESH=1 VISION_CAMERA_ENABLE_FRAME_PROCESSORS=#{hasWorklets}", -+ "OTHER_SWIFT_FLAGS" => "$(inherited) -DRCT_NEW_ARCH_ENABLED #{hasWorklets ? "-D VISION_CAMERA_ENABLE_FRAME_PROCESSORS" : ""}", -+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17", -+ "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/cpp/\"/** " -+} -+ - Pod::Spec.new do |s| - s.name = "VisionCamera" - s.version = package["version"] -@@ -27,19 +40,13 @@ Pod::Spec.new do |s| - s.platforms = { :ios => "12.4" } - s.source = { :git => "https://github.com/mrousavy/react-native-vision-camera.git", :tag => "#{s.version}" } - -- s.pod_target_xcconfig = { -- "GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) SK_METAL=1 SK_GANESH=1 VISION_CAMERA_ENABLE_FRAME_PROCESSORS=#{hasWorklets}", -- "OTHER_SWIFT_FLAGS" => "$(inherited) #{hasWorklets ? "-D VISION_CAMERA_ENABLE_FRAME_PROCESSORS" : ""}", -- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17", -- "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/cpp/\"/** " -- } -- - s.requires_arc = true - - # All source files that should be publicly visible - # Note how this does not include headers, since those can nameclash. - s.source_files = [ - # Core -+ "ios/VisionCamera.h", - "ios/*.{m,mm,swift}", - "ios/Core/*.{m,mm,swift}", - "ios/Extensions/*.{m,mm,swift}", -@@ -47,6 +54,7 @@ Pod::Spec.new do |s| - "ios/React Utils/*.{m,mm,swift}", - "ios/Types/*.{m,mm,swift}", - "ios/CameraBridge.h", -+ "ios/RNCameraView.h", - - # Frame Processors - hasWorklets ? "ios/Frame Processor/*.{m,mm,swift}" : "", -@@ -66,9 +74,12 @@ Pod::Spec.new do |s| - "ios/**/*.h" - ] - -- s.dependency "React" -- s.dependency "React-Core" -- s.dependency "React-callinvoker" -+ if ENV['USE_FRAMEWORKS'] == '1' -+ s.pod_target_xcconfig = default_config.merge(frameworks_flags) -+ else -+ s.pod_target_xcconfig = default_config -+ end -+ install_modules_dependencies(s) - - if hasWorklets - s.dependency "react-native-worklets-core" -diff --git a/node_modules/react-native-vision-camera/android/.editorconfig b/node_modules/react-native-vision-camera/android/.editorconfig -new file mode 100644 -index 0000000..2f08d6d ---- /dev/null -+++ b/node_modules/react-native-vision-camera/android/.editorconfig -@@ -0,0 +1,15 @@ -+[*.{kt,kts}] -+indent_style=space -+indent_size=2 -+continuation_indent_size=4 -+insert_final_newline=true -+max_line_length=140 -+ktlint_code_style=android_studio -+ktlint_standard=enabled -+ktlint_experimental=enabled -+ktlint_standard_filename=disabled # dont require PascalCase filenames -+ktlint_standard_no-wildcard-imports=disabled # allow .* imports -+ktlint_function_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than=5 -+ktlint_function_signature_body_expression_wrapping=multiline -+ij_kotlin_allow_trailing_comma_on_call_site=false -+ij_kotlin_allow_trailing_comma=false -diff --git a/node_modules/react-native-vision-camera/android/.project b/node_modules/react-native-vision-camera/android/.project -new file mode 100644 -index 0000000..0e0a1ba ---- /dev/null -+++ b/node_modules/react-native-vision-camera/android/.project -@@ -0,0 +1,17 @@ -+ -+ -+ android_ -+ Project android_ created by Buildship. -+ -+ -+ -+ -+ org.eclipse.buildship.core.gradleprojectbuilder -+ -+ -+ -+ -+ -+ org.eclipse.buildship.core.gradleprojectnature -+ -+ -diff --git a/node_modules/react-native-vision-camera/android/build.gradle b/node_modules/react-native-vision-camera/android/build.gradle -index 86e6290..eb59c56 100644 ---- a/node_modules/react-native-vision-camera/android/build.gradle -+++ b/node_modules/react-native-vision-camera/android/build.gradle -@@ -129,6 +129,12 @@ android { - sourceSets { - main { - manifest.srcFile androidManifestPath -+ -+ java { -+ if (!isNewArchitectureEnabled()) { -+ srcDirs += 'oldarch/src/main/java' -+ } -+ } - } - } - -diff --git a/node_modules/react-native-vision-camera/android/gradlew b/node_modules/react-native-vision-camera/android/gradlew -new file mode 100755 -index 0000000..1b6c787 ---- /dev/null -+++ b/node_modules/react-native-vision-camera/android/gradlew -@@ -0,0 +1,234 @@ -+#!/bin/sh -+ -+# -+# Copyright © 2015-2021 the original authors. -+# -+# Licensed under the Apache License, Version 2.0 (the "License"); -+# you may not use this file except in compliance with the License. -+# You may obtain a copy of the License at -+# -+# https://www.apache.org/licenses/LICENSE-2.0 -+# -+# Unless required by applicable law or agreed to in writing, software -+# distributed under the License is distributed on an "AS IS" BASIS, -+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -+# See the License for the specific language governing permissions and -+# limitations under the License. -+# -+ -+############################################################################## -+# -+# Gradle start up script for POSIX generated by Gradle. -+# -+# Important for running: -+# -+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is -+# noncompliant, but you have some other compliant shell such as ksh or -+# bash, then to run this script, type that shell name before the whole -+# command line, like: -+# -+# ksh Gradle -+# -+# Busybox and similar reduced shells will NOT work, because this script -+# requires all of these POSIX shell features: -+# * functions; -+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», -+# «${var#prefix}», «${var%suffix}», and «$( cmd )»; -+# * compound commands having a testable exit status, especially «case»; -+# * various built-in commands including «command», «set», and «ulimit». -+# -+# Important for patching: -+# -+# (2) This script targets any POSIX shell, so it avoids extensions provided -+# by Bash, Ksh, etc; in particular arrays are avoided. -+# -+# The "traditional" practice of packing multiple parameters into a -+# space-separated string is a well documented source of bugs and security -+# problems, so this is (mostly) avoided, by progressively accumulating -+# options in "$@", and eventually passing that to Java. -+# -+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, -+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; -+# see the in-line comments for details. -+# -+# There are tweaks for specific operating systems such as AIX, CygWin, -+# Darwin, MinGW, and NonStop. -+# -+# (3) This script is generated from the Groovy template -+# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt -+# within the Gradle project. -+# -+# You can find Gradle at https://github.com/gradle/gradle/. -+# -+############################################################################## -+ -+# Attempt to set APP_HOME -+ -+# Resolve links: $0 may be a link -+app_path=$0 -+ -+# Need this for daisy-chained symlinks. -+while -+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path -+ [ -h "$app_path" ] -+do -+ ls=$( ls -ld "$app_path" ) -+ link=${ls#*' -> '} -+ case $link in #( -+ /*) app_path=$link ;; #( -+ *) app_path=$APP_HOME$link ;; -+ esac -+done -+ -+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit -+ -+APP_NAME="Gradle" -+APP_BASE_NAME=${0##*/} -+ -+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' -+ -+# Use the maximum available, or set MAX_FD != -1 to use that value. -+MAX_FD=maximum -+ -+warn () { -+ echo "$*" -+} >&2 -+ -+die () { -+ echo -+ echo "$*" -+ echo -+ exit 1 -+} >&2 -+ -+# OS specific support (must be 'true' or 'false'). -+cygwin=false -+msys=false -+darwin=false -+nonstop=false -+case "$( uname )" in #( -+ CYGWIN* ) cygwin=true ;; #( -+ Darwin* ) darwin=true ;; #( -+ MSYS* | MINGW* ) msys=true ;; #( -+ NONSTOP* ) nonstop=true ;; -+esac -+ -+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar -+ -+ -+# Determine the Java command to use to start the JVM. -+if [ -n "$JAVA_HOME" ] ; then -+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then -+ # IBM's JDK on AIX uses strange locations for the executables -+ JAVACMD=$JAVA_HOME/jre/sh/java -+ else -+ JAVACMD=$JAVA_HOME/bin/java -+ fi -+ if [ ! -x "$JAVACMD" ] ; then -+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME -+ -+Please set the JAVA_HOME variable in your environment to match the -+location of your Java installation." -+ fi -+else -+ JAVACMD=java -+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -+ -+Please set the JAVA_HOME variable in your environment to match the -+location of your Java installation." -+fi -+ -+# Increase the maximum file descriptors if we can. -+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then -+ case $MAX_FD in #( -+ max*) -+ MAX_FD=$( ulimit -H -n ) || -+ warn "Could not query maximum file descriptor limit" -+ esac -+ case $MAX_FD in #( -+ '' | soft) :;; #( -+ *) -+ ulimit -n "$MAX_FD" || -+ warn "Could not set maximum file descriptor limit to $MAX_FD" -+ esac -+fi -+ -+# Collect all arguments for the java command, stacking in reverse order: -+# * args from the command line -+# * the main class name -+# * -classpath -+# * -D...appname settings -+# * --module-path (only if needed) -+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. -+ -+# For Cygwin or MSYS, switch paths to Windows format before running java -+if "$cygwin" || "$msys" ; then -+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) -+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) -+ -+ JAVACMD=$( cygpath --unix "$JAVACMD" ) -+ -+ # Now convert the arguments - kludge to limit ourselves to /bin/sh -+ for arg do -+ if -+ case $arg in #( -+ -*) false ;; # don't mess with options #( -+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath -+ [ -e "$t" ] ;; #( -+ *) false ;; -+ esac -+ then -+ arg=$( cygpath --path --ignore --mixed "$arg" ) -+ fi -+ # Roll the args list around exactly as many times as the number of -+ # args, so each arg winds up back in the position where it started, but -+ # possibly modified. -+ # -+ # NB: a `for` loop captures its iteration list before it begins, so -+ # changing the positional parameters here affects neither the number of -+ # iterations, nor the values presented in `arg`. -+ shift # remove old arg -+ set -- "$@" "$arg" # push replacement arg -+ done -+fi -+ -+# Collect all arguments for the java command; -+# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of -+# shell script including quotes and variable substitutions, so put them in -+# double quotes to make sure that they get re-expanded; and -+# * put everything else in single quotes, so that it's not re-expanded. -+ -+set -- \ -+ "-Dorg.gradle.appname=$APP_BASE_NAME" \ -+ -classpath "$CLASSPATH" \ -+ org.gradle.wrapper.GradleWrapperMain \ -+ "$@" -+ -+# Use "xargs" to parse quoted args. -+# -+# With -n1 it outputs one arg per line, with the quotes and backslashes removed. -+# -+# In Bash we could simply go: -+# -+# readarray ARGS < <( xargs -n1 <<<"$var" ) && -+# set -- "${ARGS[@]}" "$@" -+# -+# but POSIX shell has neither arrays nor command substitution, so instead we -+# post-process each arg (as a line of input to sed) to backslash-escape any -+# character that might be a shell metacharacter, then use eval to reverse -+# that process (while maintaining the separation between arguments), and wrap -+# the whole thing up as a single "set" statement. -+# -+# This will of course break if any of these variables contains a newline or -+# an unmatched quote. -+# -+ -+eval "set -- $( -+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | -+ xargs -n1 | -+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | -+ tr '\n' ' ' -+ )" '"$@"' -+ -+exec "$JAVACMD" "$@" -diff --git a/node_modules/react-native-vision-camera/android/gradlew.bat b/node_modules/react-native-vision-camera/android/gradlew.bat -new file mode 100644 -index 0000000..107acd3 ---- /dev/null -+++ b/node_modules/react-native-vision-camera/android/gradlew.bat -@@ -0,0 +1,89 @@ -+@rem -+@rem Copyright 2015 the original author or authors. -+@rem -+@rem Licensed under the Apache License, Version 2.0 (the "License"); -+@rem you may not use this file except in compliance with the License. -+@rem You may obtain a copy of the License at -+@rem -+@rem https://www.apache.org/licenses/LICENSE-2.0 -+@rem -+@rem Unless required by applicable law or agreed to in writing, software -+@rem distributed under the License is distributed on an "AS IS" BASIS, -+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -+@rem See the License for the specific language governing permissions and -+@rem limitations under the License. -+@rem -+ -+@if "%DEBUG%" == "" @echo off -+@rem ########################################################################## -+@rem -+@rem Gradle startup script for Windows -+@rem -+@rem ########################################################################## -+ -+@rem Set local scope for the variables with windows NT shell -+if "%OS%"=="Windows_NT" setlocal -+ -+set DIRNAME=%~dp0 -+if "%DIRNAME%" == "" set DIRNAME=. -+set APP_BASE_NAME=%~n0 -+set APP_HOME=%DIRNAME% -+ -+@rem Resolve any "." and ".." in APP_HOME to make it shorter. -+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi -+ -+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" -+ -+@rem Find java.exe -+if defined JAVA_HOME goto findJavaFromJavaHome -+ -+set JAVA_EXE=java.exe -+%JAVA_EXE% -version >NUL 2>&1 -+if "%ERRORLEVEL%" == "0" goto execute -+ -+echo. -+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -+echo. -+echo Please set the JAVA_HOME variable in your environment to match the -+echo location of your Java installation. -+ -+goto fail -+ -+:findJavaFromJavaHome -+set JAVA_HOME=%JAVA_HOME:"=% -+set JAVA_EXE=%JAVA_HOME%/bin/java.exe -+ -+if exist "%JAVA_EXE%" goto execute -+ -+echo. -+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -+echo. -+echo Please set the JAVA_HOME variable in your environment to match the -+echo location of your Java installation. -+ -+goto fail -+ -+:execute -+@rem Setup the command line -+ -+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar -+ -+ -+@rem Execute Gradle -+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* -+ -+:end -+@rem End local scope for the variables with windows NT shell -+if "%ERRORLEVEL%"=="0" goto mainEnd -+ -+:fail -+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -+rem the _cmd.exe /c_ return code! -+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -+exit /b 1 -+ -+:mainEnd -+if "%OS%"=="Windows_NT" endlocal -+ -+:omega -diff --git a/node_modules/react-native-vision-camera/android/oldarch/src/main/java/com/facebook/react/viewmanagers/CameraViewManagerDelegate.java b/node_modules/react-native-vision-camera/android/oldarch/src/main/java/com/facebook/react/viewmanagers/CameraViewManagerDelegate.java -new file mode 100644 -index 0000000..afafa8a ---- /dev/null -+++ b/node_modules/react-native-vision-camera/android/oldarch/src/main/java/com/facebook/react/viewmanagers/CameraViewManagerDelegate.java -@@ -0,0 +1,113 @@ -+/** -+* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). -+* -+* Do not edit this file as changes may cause incorrect behavior and will be lost -+* once the code is regenerated. -+* -+* @generated by codegen project: GeneratePropsJavaDelegate.js -+*/ -+ -+package com.facebook.react.viewmanagers; -+ -+import android.view.View; -+import androidx.annotation.Nullable; -+import com.facebook.react.bridge.ReadableMap; -+import com.facebook.react.uimanager.BaseViewManagerDelegate; -+import com.facebook.react.uimanager.BaseViewManagerInterface; -+ -+public class CameraViewManagerDelegate & CameraViewManagerInterface> extends BaseViewManagerDelegate { -+ public CameraViewManagerDelegate(U viewManager) { -+ super(viewManager); -+ } -+ @Override -+ public void setProperty(T view, String propName, @Nullable Object value) { -+ switch (propName) { -+ case "enableGpuBuffers": -+ mViewManager.setEnableGpuBuffers(view, value == null ? false : (boolean) value); -+ break; -+ case "androidPreviewViewType": -+ mViewManager.setAndroidPreviewViewType(view, value == null ? null : (String) value); -+ break; -+ case "codeScannerOptions": -+ mViewManager.setCodeScannerOptions(view, (ReadableMap) value); -+ break; -+ case "cameraId": -+ mViewManager.setCameraId(view, value == null ? null : (String) value); -+ break; -+ case "enableFrameProcessor": -+ mViewManager.setEnableFrameProcessor(view, value == null ? false : (boolean) value); -+ break; -+ case "enableLocation": -+ mViewManager.setEnableLocation(view, value == null ? false : (boolean) value); -+ break; -+ case "enableBufferCompression": -+ mViewManager.setEnableBufferCompression(view, value == null ? false : (boolean) value); -+ break; -+ case "photoQualityBalance": -+ mViewManager.setPhotoQualityBalance(view, value == null ? null : (String) value); -+ break; -+ case "isActive": -+ mViewManager.setIsActive(view, value == null ? false : (boolean) value); -+ break; -+ case "photo": -+ mViewManager.setPhoto(view, value == null ? false : (boolean) value); -+ break; -+ case "video": -+ mViewManager.setVideo(view, value == null ? false : (boolean) value); -+ break; -+ case "audio": -+ mViewManager.setAudio(view, value == null ? false : (boolean) value); -+ break; -+ case "torch": -+ mViewManager.setTorch(view, value == null ? null : (String) value); -+ break; -+ case "zoom": -+ mViewManager.setZoom(view, value == null ? 0f : ((Double) value).doubleValue()); -+ break; -+ case "exposure": -+ mViewManager.setExposure(view, value == null ? 0f : ((Double) value).doubleValue()); -+ break; -+ case "enableZoomGesture": -+ mViewManager.setEnableZoomGesture(view, value == null ? false : (boolean) value); -+ break; -+ case "enableFpsGraph": -+ mViewManager.setEnableFpsGraph(view, value == null ? false : (boolean) value); -+ break; -+ case "resizeMode": -+ mViewManager.setResizeMode(view, value == null ? null : (String) value); -+ break; -+ case "format": -+ mViewManager.setFormat(view, (ReadableMap) value); -+ break; -+ case "pixelFormat": -+ mViewManager.setPixelFormat(view, value == null ? null : (String) value); -+ break; -+ case "fps": -+ mViewManager.setFps(view, value == null ? 0 : ((Double) value).intValue()); -+ break; -+ case "videoHdr": -+ mViewManager.setVideoHdr(view, value == null ? false : (boolean) value); -+ break; -+ case "photoHdr": -+ mViewManager.setPhotoHdr(view, value == null ? false : (boolean) value); -+ break; -+ case "lowLightBoost": -+ mViewManager.setLowLightBoost(view, value == null ? false : (boolean) value); -+ break; -+ case "videoStabilizationMode": -+ mViewManager.setVideoStabilizationMode(view, value == null ? null : (String) value); -+ break; -+ case "enableDepthData": -+ mViewManager.setEnableDepthData(view, value == null ? false : (boolean) value); -+ break; -+ case "enablePortraitEffectsMatteDelivery": -+ mViewManager.setEnablePortraitEffectsMatteDelivery(view, value == null ? false : (boolean) value); -+ break; -+ case "orientation": -+ mViewManager.setOrientation(view, value == null ? null : (String) value); -+ break; -+ default: -+ super.setProperty(view, propName, value); -+ } -+ } -+} -diff --git a/node_modules/react-native-vision-camera/android/oldarch/src/main/java/com/facebook/react/viewmanagers/CameraViewManagerInterface.java b/node_modules/react-native-vision-camera/android/oldarch/src/main/java/com/facebook/react/viewmanagers/CameraViewManagerInterface.java -new file mode 100644 -index 0000000..94079b2 ---- /dev/null -+++ b/node_modules/react-native-vision-camera/android/oldarch/src/main/java/com/facebook/react/viewmanagers/CameraViewManagerInterface.java -@@ -0,0 +1,45 @@ -+/** -+* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). -+* -+* Do not edit this file as changes may cause incorrect behavior and will be lost -+* once the code is regenerated. -+* -+* @generated by codegen project: GeneratePropsJavaInterface.js -+*/ -+ -+package com.facebook.react.viewmanagers; -+ -+import android.view.View; -+import androidx.annotation.Nullable; -+import com.facebook.react.bridge.ReadableMap; -+ -+public interface CameraViewManagerInterface { -+ void setEnableGpuBuffers(T view, boolean value); -+ void setAndroidPreviewViewType(T view, @Nullable String value); -+ void setCodeScannerOptions(T view, @Nullable ReadableMap value); -+ void setCameraId(T view, @Nullable String value); -+ void setEnableFrameProcessor(T view, boolean value); -+ void setEnableLocation(T view, boolean value); -+ void setEnableBufferCompression(T view, boolean value); -+ void setPhotoQualityBalance(T view, @Nullable String value); -+ void setIsActive(T view, boolean value); -+ void setPhoto(T view, boolean value); -+ void setVideo(T view, boolean value); -+ void setAudio(T view, boolean value); -+ void setTorch(T view, @Nullable String value); -+ void setZoom(T view, double value); -+ void setExposure(T view, double value); -+ void setEnableZoomGesture(T view, boolean value); -+ void setEnableFpsGraph(T view, boolean value); -+ void setResizeMode(T view, @Nullable String value); -+ void setFormat(T view, @Nullable ReadableMap value); -+ void setPixelFormat(T view, @Nullable String value); -+ void setFps(T view, int value); -+ void setVideoHdr(T view, boolean value); -+ void setPhotoHdr(T view, boolean value); -+ void setLowLightBoost(T view, boolean value); -+ void setVideoStabilizationMode(T view, @Nullable String value); -+ void setEnableDepthData(T view, boolean value); -+ void setEnablePortraitEffectsMatteDelivery(T view, boolean value); -+ void setOrientation(T view, @Nullable String value); -+} -diff --git a/node_modules/react-native-vision-camera/android/settings.gradle b/node_modules/react-native-vision-camera/android/settings.gradle -new file mode 100644 -index 0000000..56a6c3d ---- /dev/null -+++ b/node_modules/react-native-vision-camera/android/settings.gradle -@@ -0,0 +1,3 @@ -+rootProject.name = 'VisionCamera' -+ -+include ':VisionCamera' -diff --git a/node_modules/react-native-vision-camera/android/src/main/.DS_Store b/node_modules/react-native-vision-camera/android/src/main/.DS_Store -new file mode 100644 -index 0000000..e69de29 -diff --git a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt -index a7c8358..a935ef6 100644 ---- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt -+++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt -@@ -20,7 +20,7 @@ import kotlinx.coroutines.launch - - class CameraDevicesManager(private val reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) { - companion object { -- private const val TAG = "CameraDevices" -+ public const val TAG = "CameraDevices" - } - private val executor = CameraQueues.cameraExecutor - private val coroutineScope = CoroutineScope(executor.asCoroutineDispatcher()) -diff --git a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraPackage.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraPackage.kt -index 25e1f55..33b9dd3 100644 ---- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraPackage.kt -+++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraPackage.kt -@@ -1,11 +1,14 @@ - package com.mrousavy.camera - --import com.facebook.react.ReactPackage -+import com.facebook.react.TurboReactPackage - import com.facebook.react.bridge.NativeModule - import com.facebook.react.bridge.ReactApplicationContext -+import com.facebook.react.module.model.ReactModuleInfo -+import com.facebook.react.module.model.ReactModuleInfoProvider - import com.facebook.react.uimanager.ViewManager - --class CameraPackage : ReactPackage { -+ -+class CameraPackage : TurboReactPackage() { - override fun createNativeModules(reactContext: ReactApplicationContext): List = - listOf( - CameraViewModule(reactContext), -@@ -13,4 +16,39 @@ class CameraPackage : ReactPackage { - ) - - override fun createViewManagers(reactContext: ReactApplicationContext): List> = listOf(CameraViewManager()) -+ -+ override fun getModule(name: String, context: ReactApplicationContext): NativeModule? { -+ return when (name) { -+ CameraViewModule.TAG -> CameraViewModule(context) -+ CameraDevicesManager.TAG -> CameraDevicesManager(context) -+ else -> null -+ } -+ } -+ -+ override fun getReactModuleInfoProvider(): ReactModuleInfoProvider { -+ return ReactModuleInfoProvider { -+ val moduleInfos: MutableMap = HashMap() -+ -+ moduleInfos[CameraViewModule.TAG] = ReactModuleInfo( -+ CameraViewModule.TAG, -+ CameraViewModule.TAG, -+ false, // canOverrideExistingModule -+ true, // needsEagerInit -+ true, // hasConstants -+ false, // isCxxModule -+ false // isTurboModule -+ ) -+ -+ moduleInfos[CameraDevicesManager.TAG] = ReactModuleInfo( -+ CameraDevicesManager.TAG, -+ CameraDevicesManager.TAG, -+ false, // canOverrideExistingModule -+ true, // needsEagerInit -+ true, // hasConstants -+ false, // isCxxModule -+ false // isTurboModule -+ ) -+ moduleInfos -+ } -+ } - } -diff --git a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraViewManager.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraViewManager.kt -index f2b284c..4bb2ebc 100644 ---- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraViewManager.kt -+++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraViewManager.kt -@@ -4,8 +4,18 @@ import com.facebook.react.bridge.ReadableMap - import com.facebook.react.common.MapBuilder - import com.facebook.react.uimanager.ThemedReactContext - import com.facebook.react.uimanager.ViewGroupManager -+import com.facebook.react.uimanager.ViewManagerDelegate - import com.facebook.react.uimanager.annotations.ReactProp -+import com.facebook.react.viewmanagers.CameraViewManagerDelegate -+import com.facebook.react.viewmanagers.CameraViewManagerInterface -+import com.mrousavy.camera.types.CameraCodeScannedEvent - import com.mrousavy.camera.types.CameraDeviceFormat -+import com.mrousavy.camera.types.CameraErrorEvent -+import com.mrousavy.camera.types.CameraInitializedEvent -+import com.mrousavy.camera.types.CameraShutterEvent -+import com.mrousavy.camera.types.CameraStartedEvent -+import com.mrousavy.camera.types.CameraStoppedEvent -+import com.mrousavy.camera.types.CameraViewReadyEvent - import com.mrousavy.camera.types.CodeScannerOptions - import com.mrousavy.camera.types.Orientation - import com.mrousavy.camera.types.PixelFormat -@@ -16,10 +26,19 @@ import com.mrousavy.camera.types.Torch - import com.mrousavy.camera.types.VideoStabilizationMode - - @Suppress("unused") --class CameraViewManager : ViewGroupManager() { -+class CameraViewManager : ViewGroupManager(), CameraViewManagerInterface { - companion object { - const val TAG = "CameraView" - } -+ -+ private val mDelegate: ViewManagerDelegate -+ -+ init { -+ mDelegate = CameraViewManagerDelegate(this) -+ } -+ -+ override fun getDelegate() = mDelegate -+ - public override fun createViewInstance(context: ThemedReactContext): CameraView = CameraView(context) - - override fun onAfterUpdateTransaction(view: CameraView) { -@@ -29,13 +48,13 @@ class CameraViewManager : ViewGroupManager() { - - override fun getExportedCustomDirectEventTypeConstants(): MutableMap? = - MapBuilder.builder() -- .put("cameraViewReady", MapBuilder.of("registrationName", "onViewReady")) -- .put("cameraInitialized", MapBuilder.of("registrationName", "onInitialized")) -- .put("cameraStarted", MapBuilder.of("registrationName", "onStarted")) -- .put("cameraStopped", MapBuilder.of("registrationName", "onStopped")) -- .put("cameraShutter", MapBuilder.of("registrationName", "onShutter")) -- .put("cameraError", MapBuilder.of("registrationName", "onError")) -- .put("cameraCodeScanned", MapBuilder.of("registrationName", "onCodeScanned")) -+ .put(CameraViewReadyEvent.EVENT_NAME, MapBuilder.of("registrationName", "onViewReady")) -+ .put(CameraInitializedEvent.EVENT_NAME, MapBuilder.of("registrationName", "onInitialized")) -+ .put(CameraStartedEvent.EVENT_NAME, MapBuilder.of("registrationName", "onStarted")) -+ .put(CameraStoppedEvent.EVENT_NAME, MapBuilder.of("registrationName", "onStopped")) -+ .put(CameraShutterEvent.EVENT_NAME, MapBuilder.of("registrationName", "onShutter")) -+ .put(CameraErrorEvent.EVENT_NAME, MapBuilder.of("registrationName", "onError")) -+ .put(CameraCodeScannedEvent.EVENT_NAME, MapBuilder.of("registrationName", "onCodeScanned")) - .build() - - override fun getName(): String = TAG -@@ -46,37 +65,37 @@ class CameraViewManager : ViewGroupManager() { - } - - @ReactProp(name = "cameraId") -- fun setCameraId(view: CameraView, cameraId: String) { -+ override fun setCameraId(view: CameraView, cameraId: String?) { - view.cameraId = cameraId - } - - @ReactProp(name = "photo") -- fun setPhoto(view: CameraView, photo: Boolean) { -+ override fun setPhoto(view: CameraView, photo: Boolean) { - view.photo = photo - } - - @ReactProp(name = "video") -- fun setVideo(view: CameraView, video: Boolean) { -+ override fun setVideo(view: CameraView, video: Boolean) { - view.video = video - } - - @ReactProp(name = "audio") -- fun setAudio(view: CameraView, audio: Boolean) { -+ override fun setAudio(view: CameraView, audio: Boolean) { - view.audio = audio - } - - @ReactProp(name = "enableLocation") -- fun setEnableLocation(view: CameraView, enableLocation: Boolean) { -+ override fun setEnableLocation(view: CameraView, enableLocation: Boolean) { - view.enableLocation = enableLocation - } - - @ReactProp(name = "enableFrameProcessor") -- fun setEnableFrameProcessor(view: CameraView, enableFrameProcessor: Boolean) { -+ override fun setEnableFrameProcessor(view: CameraView, enableFrameProcessor: Boolean) { - view.enableFrameProcessor = enableFrameProcessor - } - - @ReactProp(name = "pixelFormat") -- fun setPixelFormat(view: CameraView, pixelFormat: String?) { -+ override fun setPixelFormat(view: CameraView, pixelFormat: String?) { - if (pixelFormat != null) { - val newPixelFormat = PixelFormat.fromUnionValue(pixelFormat) - view.pixelFormat = newPixelFormat -@@ -86,27 +105,27 @@ class CameraViewManager : ViewGroupManager() { - } - - @ReactProp(name = "enableDepthData") -- fun setEnableDepthData(view: CameraView, enableDepthData: Boolean) { -+ override fun setEnableDepthData(view: CameraView, enableDepthData: Boolean) { - view.enableDepthData = enableDepthData - } - - @ReactProp(name = "enableZoomGesture") -- fun setEnableZoomGesture(view: CameraView, enableZoomGesture: Boolean) { -+ override fun setEnableZoomGesture(view: CameraView, enableZoomGesture: Boolean) { - view.enableZoomGesture = enableZoomGesture - } - - @ReactProp(name = "enableFpsGraph") -- fun setEnableFpsGraph(view: CameraView, enableFpsGraph: Boolean) { -+ override fun setEnableFpsGraph(view: CameraView, enableFpsGraph: Boolean) { - view.enableFpsGraph = enableFpsGraph - } - - @ReactProp(name = "enableGpuBuffers") -- fun setEnableGpuBuffers(view: CameraView, enableGpuBuffers: Boolean) { -+ override fun setEnableGpuBuffers(view: CameraView, enableGpuBuffers: Boolean) { - view.enableGpuBuffers = enableGpuBuffers - } - - @ReactProp(name = "videoStabilizationMode") -- fun setVideoStabilizationMode(view: CameraView, videoStabilizationMode: String?) { -+ override fun setVideoStabilizationMode(view: CameraView, videoStabilizationMode: String?) { - if (videoStabilizationMode != null) { - val newMode = VideoStabilizationMode.fromUnionValue(videoStabilizationMode) - view.videoStabilizationMode = newMode -@@ -116,12 +135,12 @@ class CameraViewManager : ViewGroupManager() { - } - - @ReactProp(name = "enablePortraitEffectsMatteDelivery") -- fun setEnablePortraitEffectsMatteDelivery(view: CameraView, enablePortraitEffectsMatteDelivery: Boolean) { -+ override fun setEnablePortraitEffectsMatteDelivery(view: CameraView, enablePortraitEffectsMatteDelivery: Boolean) { - view.enablePortraitEffectsMatteDelivery = enablePortraitEffectsMatteDelivery - } - - @ReactProp(name = "format") -- fun setFormat(view: CameraView, format: ReadableMap?) { -+ override fun setFormat(view: CameraView, format: ReadableMap?) { - if (format != null) { - val newFormat = CameraDeviceFormat.fromJSValue(format) - view.format = newFormat -@@ -131,7 +150,7 @@ class CameraViewManager : ViewGroupManager() { - } - - @ReactProp(name = "resizeMode") -- fun setResizeMode(view: CameraView, resizeMode: String?) { -+ override fun setResizeMode(view: CameraView, resizeMode: String?) { - if (resizeMode != null) { - val newMode = ResizeMode.fromUnionValue(resizeMode) - view.resizeMode = newMode -@@ -141,7 +160,7 @@ class CameraViewManager : ViewGroupManager() { - } - - @ReactProp(name = "androidPreviewViewType") -- fun setAndroidPreviewViewType(view: CameraView, androidPreviewViewType: String?) { -+ override fun setAndroidPreviewViewType(view: CameraView, androidPreviewViewType: String?) { - if (androidPreviewViewType != null) { - val newMode = PreviewViewType.fromUnionValue(androidPreviewViewType) - view.androidPreviewViewType = newMode -@@ -154,17 +173,17 @@ class CameraViewManager : ViewGroupManager() { - // We're treating -1 as "null" here, because when I make the fps parameter - // of type "Int?" the react bridge throws an error. - @ReactProp(name = "fps", defaultInt = -1) -- fun setFps(view: CameraView, fps: Int) { -+ override fun setFps(view: CameraView, fps: Int) { - view.fps = if (fps > 0) fps else null - } - - @ReactProp(name = "photoHdr") -- fun setPhotoHdr(view: CameraView, photoHdr: Boolean) { -+ override fun setPhotoHdr(view: CameraView, photoHdr: Boolean) { - view.photoHdr = photoHdr - } - - @ReactProp(name = "photoQualityBalance") -- fun setPhotoQualityBalance(view: CameraView, photoQualityBalance: String?) { -+ override fun setPhotoQualityBalance(view: CameraView, photoQualityBalance: String?) { - if (photoQualityBalance != null) { - val newMode = QualityBalance.fromUnionValue(photoQualityBalance) - view.photoQualityBalance = newMode -@@ -174,22 +193,22 @@ class CameraViewManager : ViewGroupManager() { - } - - @ReactProp(name = "videoHdr") -- fun setVideoHdr(view: CameraView, videoHdr: Boolean) { -+ override fun setVideoHdr(view: CameraView, videoHdr: Boolean) { - view.videoHdr = videoHdr - } - - @ReactProp(name = "lowLightBoost") -- fun setLowLightBoost(view: CameraView, lowLightBoost: Boolean) { -+ override fun setLowLightBoost(view: CameraView, lowLightBoost: Boolean) { - view.lowLightBoost = lowLightBoost - } - - @ReactProp(name = "isActive") -- fun setIsActive(view: CameraView, isActive: Boolean) { -+ override fun setIsActive(view: CameraView, isActive: Boolean) { - view.isActive = isActive - } - - @ReactProp(name = "torch") -- fun setTorch(view: CameraView, torch: String?) { -+ override fun setTorch(view: CameraView, torch: String?) { - if (torch != null) { - val newMode = Torch.fromUnionValue(torch) - view.torch = newMode -@@ -199,17 +218,17 @@ class CameraViewManager : ViewGroupManager() { - } - - @ReactProp(name = "zoom") -- fun setZoom(view: CameraView, zoom: Double) { -+ override fun setZoom(view: CameraView, zoom: Double) { - view.zoom = zoom.toFloat() - } - - @ReactProp(name = "exposure") -- fun setExposure(view: CameraView, exposure: Double) { -+ override fun setExposure(view: CameraView, exposure: Double) { - view.exposure = exposure - } - - @ReactProp(name = "orientation") -- fun setOrientation(view: CameraView, orientation: String?) { -+ override fun setOrientation(view: CameraView, orientation: String?) { - if (orientation != null) { - val newMode = Orientation.fromUnionValue(orientation) - view.orientation = newMode -@@ -219,7 +238,7 @@ class CameraViewManager : ViewGroupManager() { - } - - @ReactProp(name = "codeScannerOptions") -- fun setCodeScanner(view: CameraView, codeScannerOptions: ReadableMap?) { -+ override fun setCodeScannerOptions(view: CameraView, codeScannerOptions: ReadableMap?) { - if (codeScannerOptions != null) { - val newCodeScannerOptions = CodeScannerOptions.fromJSValue(codeScannerOptions) - view.codeScannerOptions = newCodeScannerOptions -@@ -227,4 +246,8 @@ class CameraViewManager : ViewGroupManager() { - view.codeScannerOptions = null - } - } -+ -+ override fun setEnableBufferCompression(view: CameraView?, value: Boolean) { -+ // ios only -+ } - } -diff --git a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/VisionCameraProxy.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/VisionCameraProxy.kt -index b9d3f67..cb70963 100644 ---- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/VisionCameraProxy.kt -+++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/frameprocessor/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.CameraView - import com.mrousavy.camera.core.ViewNotFoundError - 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/android/src/main/java/com/mrousavy/camera/types/Events.kt b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/types/Events.kt -index 1ed0355..b8ff7cf 100644 ---- a/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/types/Events.kt -+++ b/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/types/Events.kt -@@ -3,39 +3,61 @@ package com.mrousavy.camera.types - import com.facebook.react.bridge.Arguments - import com.facebook.react.bridge.WritableMap - import com.facebook.react.uimanager.events.Event -+import com.mrousavy.camera.types.CameraInitializedEvent.Companion.EVENT_NAME - - class CameraInitializedEvent(surfaceId: Int, viewId: Int) : Event(surfaceId, viewId) { -- override fun getEventName() = "cameraInitialized" -+ override fun getEventName() = EVENT_NAME - override fun getEventData(): WritableMap = Arguments.createMap() -+ companion object { -+ const val EVENT_NAME = "topInitialized" -+ } - } - - class CameraStartedEvent(surfaceId: Int, viewId: Int) : Event(surfaceId, viewId) { -- override fun getEventName() = "cameraStarted" -+ override fun getEventName() = EVENT_NAME - override fun getEventData(): WritableMap = Arguments.createMap() -+ companion object { -+ const val EVENT_NAME = "topStarted" -+ } - } - - class CameraStoppedEvent(surfaceId: Int, viewId: Int) : Event(surfaceId, viewId) { -- override fun getEventName() = "cameraStopped" -+ override fun getEventName() = EVENT_NAME - override fun getEventData(): WritableMap = Arguments.createMap() -+ companion object { -+ const val EVENT_NAME = "topStopped" -+ } - } - - class CameraShutterEvent(surfaceId: Int, viewId: Int, private val data: WritableMap) : Event(surfaceId, viewId) { -- override fun getEventName() = "cameraShutter" -+ override fun getEventName() = EVENT_NAME - override fun getEventData() = data -+ companion object { -+ const val EVENT_NAME = "topShutter" -+ } - } - - class CameraErrorEvent(surfaceId: Int, viewId: Int, private val data: WritableMap) : Event(surfaceId, viewId) { -- override fun getEventName() = "cameraError" -+ override fun getEventName() = EVENT_NAME - override fun getEventData() = data -+ companion object { -+ const val EVENT_NAME = "topError" -+ } - } - - class CameraViewReadyEvent(surfaceId: Int, viewId: Int) : Event(surfaceId, viewId) { -- override fun getEventName() = "cameraViewReady" -+ override fun getEventName() = EVENT_NAME - override fun getEventData(): WritableMap = Arguments.createMap() -+ companion object { -+ const val EVENT_NAME = "topViewReady" -+ } - } - - class CameraCodeScannedEvent(surfaceId: Int, viewId: Int, private val data: WritableMap) : - Event(surfaceId, viewId) { -- override fun getEventName() = "cameraCodeScanned" -+ override fun getEventName() = EVENT_NAME - override fun getEventData() = data -+ companion object { -+ const val EVENT_NAME = "topCodeScanned" -+ } - } -diff --git a/node_modules/react-native-vision-camera/ios/.swift-version b/node_modules/react-native-vision-camera/ios/.swift-version -new file mode 100644 -index 0000000..ef425ca ---- /dev/null -+++ b/node_modules/react-native-vision-camera/ios/.swift-version -@@ -0,0 +1 @@ -+5.2 -diff --git a/node_modules/react-native-vision-camera/ios/.swiftformat b/node_modules/react-native-vision-camera/ios/.swiftformat -new file mode 100644 -index 0000000..95e71c1 ---- /dev/null -+++ b/node_modules/react-native-vision-camera/ios/.swiftformat -@@ -0,0 +1,12 @@ -+--allman false -+--indent 2 -+--exclude Pods,Generated -+ -+--disable andOperator -+--disable redundantReturn -+--disable wrapMultilineStatementBraces -+--disable organizeDeclarations -+ -+--enable markTypes -+ -+--enable isEmpty -diff --git a/node_modules/react-native-vision-camera/ios/.swiftlint.yml b/node_modules/react-native-vision-camera/ios/.swiftlint.yml -new file mode 100644 -index 0000000..6999c33 ---- /dev/null -+++ b/node_modules/react-native-vision-camera/ios/.swiftlint.yml -@@ -0,0 +1,52 @@ -+disabled_rules: -+ - identifier_name -+ - trailing_comma -+ - todo -+ - type_body_length -+ - cyclomatic_complexity -+ - function_body_length -+ - for_where -+opt_in_rules: -+ - contains_over_filter_count -+ - contains_over_filter_is_empty -+ - contains_over_first_not_nil -+ - contains_over_range_nil_comparison -+ - empty_collection_literal -+ - empty_count -+ - empty_string -+ - first_where -+ - flatmap_over_map_reduce -+ - last_where -+ - reduce_boolean -+ - reduce_into -+ - yoda_condition -+ - vertical_whitespace_opening_braces -+ - vertical_whitespace_closing_braces -+ - vertical_parameter_alignment_on_call -+ - untyped_error_in_catch -+ - unowned_variable_capture -+ - unavailable_function -+ - switch_case_on_newline -+ - static_operator -+ - strict_fileprivate -+ - sorted_imports -+ - sorted_first_last -+ - required_enum_case -+ - redundant_type_annotation -+ - redundant_nil_coalescing -+ - attributes -+ - convenience_type -+analyzer_rules: -+ - explicit_self -+ - unused_declaration -+ - unused_import -+ -+excluded: # paths to ignore during linting. Takes precedence over `included`. -+ - Pods -+ -+# Adjust rule numbers -+line_length: 160 -+file_length: 500 -+ -+# reporter type (xcode, json, csv, checkstyle, codeclimate, junit, html, emoji, sonarqube, markdown, github-actions-logging) -+reporter: "xcode" -diff --git a/node_modules/react-native-vision-camera/ios/CameraView.swift b/node_modules/react-native-vision-camera/ios/CameraView.swift -index 1aca0c6..cbb4849 100644 ---- a/node_modules/react-native-vision-camera/ios/CameraView.swift -+++ b/node_modules/react-native-vision-camera/ios/CameraView.swift -@@ -23,39 +23,42 @@ import UIKit - public final class CameraView: UIView, CameraSessionDelegate { - // pragma MARK: React Properties - // props that require reconfiguring -- @objc var cameraId: NSString? -- @objc var enableDepthData = false -- @objc var enablePortraitEffectsMatteDelivery = false -- @objc var enableBufferCompression = false -+ @objc public var cameraId: NSString? -+ @objc public var enableDepthData = false -+ @objc public var enablePortraitEffectsMatteDelivery = false -+ @objc public var enableBufferCompression = false - // use cases -- @objc var photo = false -- @objc var video = false -- @objc var audio = false -- @objc var enableFrameProcessor = false -- @objc var codeScannerOptions: NSDictionary? -- @objc var pixelFormat: NSString? -- @objc var enableLocation = false -+ @objc public var photo = false -+ @objc public var video = false -+ @objc public var audio = false -+ @objc public var enableFrameProcessor = false -+ @objc public var codeScannerOptions: NSDictionary? -+ @objc public var pixelFormat: NSString? -+ @objc public var enableLocation = false - // props that require format reconfiguring -- @objc var format: NSDictionary? -- @objc var fps: NSNumber? -- @objc var videoHdr = false -- @objc var photoHdr = false -- @objc var photoQualityBalance: NSString? -- @objc var lowLightBoost = false -- @objc var orientation: NSString? -+ @objc public var format: NSDictionary? -+ @objc public var fps: NSNumber? -+ @objc public var videoHdr = false -+ @objc public var photoHdr = false -+ @objc public var photoQualityBalance: NSString? -+ @objc public var lowLightBoost = false -+ @objc public var orientation: NSString? - // other props -- @objc var isActive = false -- @objc var torch = "off" -- @objc var zoom: NSNumber = 1.0 // in "factor" -- @objc var exposure: NSNumber = 1.0 -- @objc var enableFpsGraph = false -- @objc var videoStabilizationMode: NSString? -- @objc var resizeMode: NSString = "cover" { -+ @objc public var isActive = false -+ @objc public var torch = "off" -+ @objc public var zoom: NSNumber = 1.0 // in "factor" -+ @objc public var exposure: NSNumber = 1.0 -+ @objc public var enableFpsGraph = false -+ @objc public var videoStabilizationMode: NSString? -+ @objc public var resizeMode: NSString = "cover" { - didSet { - let parsed = try? ResizeMode(jsValue: resizeMode as String) - previewView.resizeMode = parsed ?? .cover - } - } -+#if RCT_NEW_ARCH_ENABLED -+ @objc public var delegate: RNCameraViewDirectEventDelegate? -+#else - - // events - @objc var onInitialized: RCTDirectEventBlock? -@@ -65,8 +68,9 @@ public final class CameraView: UIView, CameraSessionDelegate { - @objc var onShutter: RCTDirectEventBlock? - @objc var onViewReady: RCTDirectEventBlock? - @objc var onCodeScanned: RCTDirectEventBlock? -+#endif - // zoom -- @objc var enableZoomGesture = false { -+ @objc public var enableZoomGesture = false { - didSet { - if enableZoomGesture { - addPinchGestureRecognizer() -@@ -117,7 +121,14 @@ public final class CameraView: UIView, CameraSessionDelegate { - if newSuperview != nil { - if !isMounted { - isMounted = true -- onViewReady?(nil) -+#if RCT_NEW_ARCH_ENABLED -+ guard let delegate = delegate else { -+ return -+ } -+ delegate.onViewReady() -+#else -+ onViewReady?(nil) -+#endif - } - } - } -@@ -287,10 +298,6 @@ public final class CameraView: UIView, CameraSessionDelegate { - - func onError(_ error: CameraError) { - ReactLogger.log(level: .error, message: "Invoking onError(): \(error.message)") -- guard let onError = onError else { -- return -- } -- - var causeDictionary: [String: Any]? - if case let .unknown(_, cause) = error, - let cause = cause { -@@ -301,44 +308,86 @@ public final class CameraView: UIView, CameraSessionDelegate { - "details": cause.userInfo, - ] - } -+#if RCT_NEW_ARCH_ENABLED -+ guard let delegate = delegate else { -+ return -+ } -+ delegate.onError(error:[ -+ "code": error.code, -+ "message": error.message, -+ "cause": causeDictionary ?? NSNull(), -+ ]) -+#else -+guard let onError = onError else { return } - onError([ - "code": error.code, - "message": error.message, - "cause": causeDictionary ?? NSNull(), - ]) -+#endif - } - - func onSessionInitialized() { - ReactLogger.log(level: .info, message: "Camera initialized!") -+#if RCT_NEW_ARCH_ENABLED -+ guard let delegate = delegate else { -+ return -+ } -+ delegate.onInitialized() -+#else - guard let onInitialized = onInitialized else { - return - } - onInitialized([:]) -+#endif - } - - func onCameraStarted() { - ReactLogger.log(level: .info, message: "Camera started!") -+#if RCT_NEW_ARCH_ENABLED -+ guard let delegate = delegate else { -+ return -+ } -+ delegate.onStarted() -+#else - guard let onStarted = onStarted else { - return - } - onStarted([:]) -+#endif - } - - func onCameraStopped() { - ReactLogger.log(level: .info, message: "Camera stopped!") -+#if RCT_NEW_ARCH_ENABLED -+ guard let delegate = delegate else { -+ return -+ } -+ delegate.onStopped() -+#else - guard let onStopped = onStopped else { - return - } - onStopped([:]) -+#endif - } - - func onCaptureShutter(shutterType: ShutterType) { -+#if RCT_NEW_ARCH_ENABLED -+ guard let delegate = delegate else { -+ return -+ } -+ delegate.onShutter(message:[ -+ "type": shutterType.jsValue, -+ ]) -+#else - guard let onShutter = onShutter else { - return - } - onShutter([ - "type": shutterType.jsValue, - ]) -+#endif - } - - func onFrame(sampleBuffer: CMSampleBuffer) { -@@ -365,6 +414,15 @@ public final class CameraView: UIView, CameraSessionDelegate { - } - - func onCodeScanned(codes: [CameraSession.Code], scannerFrame: CameraSession.CodeScannerFrame) { -+#if RCT_NEW_ARCH_ENABLED -+ guard let delegate = delegate else { -+ return -+ } -+ delegate.onCodeScanned(message:[ -+ "codes": codes.map { $0.toJSValue() }, -+ "frame": scannerFrame.toJSValue(), -+ ]) -+#else - guard let onCodeScanned = onCodeScanned else { - return - } -@@ -372,6 +430,7 @@ public final class CameraView: UIView, CameraSessionDelegate { - "codes": codes.map { $0.toJSValue() }, - "frame": scannerFrame.toJSValue(), - ]) -+#endif - } - - /** -@@ -396,3 +455,13 @@ public final class CameraView: UIView, CameraSessionDelegate { - } - } - } -+ -+@objc public protocol RNCameraViewDirectEventDelegate: AnyObject { //TODO: Move to a separate file -+ func onInitialized() -+ func onError(error: NSDictionary) -+ func onViewReady() -+ func onStarted() -+ func onStopped() -+ func onShutter(message: NSDictionary) -+ func onCodeScanned(message: NSDictionary) -+} -diff --git a/node_modules/react-native-vision-camera/ios/CameraViewManager.swift b/node_modules/react-native-vision-camera/ios/CameraViewManager.swift -index ecfcf3d..4b2c201 100644 ---- a/node_modules/react-native-vision-camera/ios/CameraViewManager.swift -+++ b/node_modules/react-native-vision-camera/ios/CameraViewManager.swift -@@ -141,7 +141,8 @@ final class CameraViewManager: RCTViewManager { - - private func getCameraView(withTag tag: NSNumber) -> CameraView { - // swiftlint:disable force_cast -- return bridge.uiManager.view(forReactTag: tag) as! CameraView -+ let cameraView = bridge.uiManager.view(forReactTag: tag) -+ return ((cameraView?.isKind(of: CameraView.self))! ? cameraView : cameraView?.value(forKey: "contentView") as? UIView) as! CameraView - // swiftlint:enable force_cast - } - } -diff --git a/node_modules/react-native-vision-camera/ios/RNCameraView.h b/node_modules/react-native-vision-camera/ios/RNCameraView.h -new file mode 100644 -index 0000000..46c2c2c ---- /dev/null -+++ b/node_modules/react-native-vision-camera/ios/RNCameraView.h -@@ -0,0 +1,14 @@ -+// This guard prevent this file to be compiled in the old architecture. -+#ifdef RCT_NEW_ARCH_ENABLED -+#import -+#import -+ -+ -+NS_ASSUME_NONNULL_BEGIN -+ -+@interface RNCameraView : RCTViewComponentView -+@end -+ -+NS_ASSUME_NONNULL_END -+ -+#endif /* RCT_NEW_ARCH_ENABLED */ -diff --git a/node_modules/react-native-vision-camera/ios/RNCameraView.mm b/node_modules/react-native-vision-camera/ios/RNCameraView.mm -new file mode 100644 -index 0000000..019be20 ---- /dev/null -+++ b/node_modules/react-native-vision-camera/ios/RNCameraView.mm -@@ -0,0 +1,377 @@ -+// This guard prevent the code from being compiled in the old architecture -+#ifdef RCT_NEW_ARCH_ENABLED -+#import -+ -+#import -+#import -+#import -+#import -+ -+#import "RCTFabricComponentsPlugins.h" -+#import -+#import -+#import -+#import -+ -+#ifdef USE_FRAMEWORKS -+#import -+#else -+#import "VisionCamera-Swift.h" -+#endif -+ -+@interface RNCameraView : RCTViewComponentView -+@end -+ -+ -+using namespace facebook::react; -+ -+@implementation RNCameraView { -+ CameraView * _view; -+} -+ -++ (ComponentDescriptorProvider)componentDescriptorProvider -+{ -+ return concreteComponentDescriptorProvider(); -+} -+ -+- (instancetype)initWithFrame:(CGRect)frame -+{ -+ self = [super initWithFrame:frame]; -+if (self) { -+ static const auto defaultProps = std::make_shared(); -+ _props = defaultProps; -+ -+ //The remaining part of the initializer is standard Objective-C code to create views and layout them with AutoLayout. Here we can change whatever we want to. -+ _view = [[CameraView alloc] init]; -+ _view.delegate = self; -+ -+ self.contentView = _view; -+} -+ -+return self; -+} -+ -+// why we need this func -> https://reactnative.dev/docs/next/the-new-architecture/pillars-fabric-components#write-the-native-ios-code -+- (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &)oldProps -+{ -+ const auto &newViewProps = *std::static_pointer_cast(props); -+ const auto &oldViewProps = *std::static_pointer_cast(_props); -+ -+ NSMutableArray* changedProps = [[NSMutableArray alloc] init]; -+ -+ if(oldViewProps.isActive != newViewProps.isActive){ -+ _view.isActive = newViewProps.isActive; -+ [changedProps addObject:@"isActive"]; -+ } -+ if(oldViewProps.cameraId != newViewProps.cameraId){ -+ _view.cameraId = RCTNSStringFromString(newViewProps.cameraId); -+ [changedProps addObject:@"cameraId"]; -+ } -+ if(oldViewProps.photoQualityBalance != newViewProps.photoQualityBalance){ -+ _view.photoQualityBalance = RCTNSStringFromString(newViewProps.photoQualityBalance); -+ [changedProps addObject:@"photoQualityBalance"]; -+ } -+ if(oldViewProps.enableDepthData != newViewProps.enableDepthData){ -+ _view.enableDepthData = newViewProps.enableDepthData; -+ [changedProps addObject:@"enableDepthData"]; -+ } -+ if(oldViewProps.enablePortraitEffectsMatteDelivery != newViewProps.enablePortraitEffectsMatteDelivery){ -+ _view.enablePortraitEffectsMatteDelivery = newViewProps.enablePortraitEffectsMatteDelivery; -+ [changedProps addObject:@"enablePortraitEffectsMatteDelivery"]; -+ } -+ if(oldViewProps.photo != newViewProps.photo){ -+ _view.photo = [NSNumber numberWithBool:newViewProps.photo]; -+ [changedProps addObject:@"photo"]; -+ } -+ if(oldViewProps.video != newViewProps.video){ -+ _view.video = [NSNumber numberWithBool:newViewProps.video]; -+ [changedProps addObject:@"video"]; -+ } -+ if(oldViewProps.audio != newViewProps.audio){ -+ _view.audio = [NSNumber numberWithBool:newViewProps.audio]; -+ [changedProps addObject:@"audio"]; -+ } -+ if(oldViewProps.enableFrameProcessor != newViewProps.enableFrameProcessor){ -+ _view.enableFrameProcessor = newViewProps.enableFrameProcessor; -+ [changedProps addObject:@"enableFrameProcessor"]; -+ } -+ if(oldViewProps.enableLocation != newViewProps.enableLocation){ -+ _view.enableLocation = newViewProps.enableLocation; -+ [changedProps addObject:@"enableLocation"]; -+ } -+ if(oldViewProps.enableBufferCompression != newViewProps.enableBufferCompression){ -+ _view.enableBufferCompression = newViewProps.enableBufferCompression; -+ [changedProps addObject:@"enableBufferCompression"]; -+ } -+ if(oldViewProps.fps != newViewProps.fps){ -+ _view.fps = [NSNumber numberWithInt:newViewProps.fps]; -+ [changedProps addObject:@"fps"]; -+ } -+ if(oldViewProps.videoHdr != newViewProps.videoHdr){ -+ _view.videoHdr = newViewProps.videoHdr; -+ [changedProps addObject:@"videoHdr"]; -+ } -+ if(oldViewProps.photoHdr != newViewProps.photoHdr){ -+ _view.photoHdr = newViewProps.photoHdr; -+ [changedProps addObject:@"photoHdr"]; -+ } -+ if(oldViewProps.lowLightBoost != newViewProps.lowLightBoost){ -+ _view.lowLightBoost = newViewProps.lowLightBoost; -+ [changedProps addObject:@"lowLightBoost"]; -+ } -+ if(oldViewProps.videoStabilizationMode != newViewProps.videoStabilizationMode){ -+ _view.videoStabilizationMode = RCTNSStringFromString(newViewProps.videoStabilizationMode); -+ [changedProps addObject:@"videoStabilizationMode"]; -+ } -+ if(oldViewProps.torch != newViewProps.torch){ -+ _view.torch = RCTNSStringFromString(newViewProps.torch); -+ [changedProps addObject:@"torch"]; -+ } -+ if(oldViewProps.orientation != newViewProps.orientation){ -+ _view.orientation = RCTNSStringFromString(newViewProps.orientation); -+ [changedProps addObject:@"orientation"]; -+ } -+ if(oldViewProps.resizeMode != newViewProps.resizeMode){ -+ _view.resizeMode = RCTNSStringFromString(newViewProps.resizeMode); -+ [changedProps addObject:@"resizeMode"]; -+ } -+ if(oldViewProps.pixelFormat != newViewProps.pixelFormat){ -+ _view.pixelFormat = RCTNSStringFromString(newViewProps.pixelFormat); -+ [changedProps addObject:@"pixelFormat"]; -+ } -+ if(oldViewProps.zoom != newViewProps.zoom){ -+ _view.zoom = [NSNumber numberWithDouble:newViewProps.zoom]; -+ [changedProps addObject:@"zoom"]; -+ } -+ if(oldViewProps.exposure != newViewProps.exposure){ -+ _view.exposure = [NSNumber numberWithDouble:newViewProps.exposure]; -+ [changedProps addObject:@"exposure"]; -+ } -+ if(oldViewProps.enableZoomGesture != newViewProps.enableZoomGesture){ -+ _view.enableZoomGesture = newViewProps.enableZoomGesture; -+ [changedProps addObject:@"enableZoomGesture"]; -+ } -+ if(oldViewProps.enableFpsGraph != newViewProps.enableFpsGraph){ -+ _view.enableFpsGraph = newViewProps.enableFpsGraph; -+ [changedProps addObject:@"enableFpsGraph"]; -+ } -+ -+ -+ if(_view.format == nil){ -+ _view.format =[ [NSMutableDictionary alloc] init]; -+ } -+ -+ -+ //Checking format props, TODO: find cleaner way to do it -+ if(oldViewProps.format.supportsDepthCapture != newViewProps.format.supportsDepthCapture){ -+ NSNumber* supportsDepthCapture = newViewProps.format.supportsDepthCapture ? @1 : @0; -+ [_view.format setValue:supportsDepthCapture forKey:@"supportsDepthCapture"]; -+ [changedProps addObject:@"format"]; -+ } -+ if(oldViewProps.format.autoFocusSystem != newViewProps.format.autoFocusSystem){ -+ [_view.format setValue:RCTNSStringFromString(newViewProps.format.autoFocusSystem) forKey:@"autoFocusSystem"]; -+ [changedProps addObject:@"format"]; -+ } -+ if(oldViewProps.format.pixelFormats.size() != newViewProps.format.pixelFormats.size()){ -+ NSMutableArray* newPixelFormats = [[NSMutableArray alloc] init]; -+ for(int i = 0; i < newViewProps.format.pixelFormats.size(); i++){ -+ [newPixelFormats addObject:RCTNSStringFromString(newViewProps.format.pixelFormats.at(i))]; -+ } -+ [_view.format setValue:newPixelFormats forKey:@"pixelFormats"]; -+ [changedProps addObject:@"format"]; -+ } -+ -+ if(oldViewProps.format.videoStabilizationModes.size() != newViewProps.format.videoStabilizationModes.size()){ -+ NSMutableArray* newVideoStabilizationModes = [[NSMutableArray alloc] init]; -+ for(int i = 0; i < newViewProps.format.videoStabilizationModes.size(); i++){ -+ [newVideoStabilizationModes addObject:RCTNSStringFromString(newViewProps.format.videoStabilizationModes.at(i))]; -+ } -+ [_view.format setValue:newVideoStabilizationModes forKey:@"videoStabilizationModes"]; -+ [changedProps addObject:@"format"]; -+ } -+ -+ if(oldViewProps.format.photoHeight != newViewProps.format.photoHeight){ -+ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.photoHeight] forKey:@"photoHeight"]; -+ [changedProps addObject:@"format"]; -+ } -+ if(oldViewProps.format.photoWidth != newViewProps.format.photoWidth){ -+ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.photoWidth] forKey:@"photoWidth"]; -+ [changedProps addObject:@"format"]; -+ } -+ if(oldViewProps.format.videoHeight != newViewProps.format.videoHeight){ -+ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.videoHeight] forKey:@"videoHeight"]; -+ [changedProps addObject:@"format"]; -+ } -+ if(oldViewProps.format.videoWidth != newViewProps.format.videoWidth){ -+ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.videoWidth] forKey:@"videoWidth"]; -+ [changedProps addObject:@"format"]; -+ } -+ if(oldViewProps.format.maxISO != newViewProps.format.maxISO){ -+ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.maxISO] forKey:@"maxISO"]; -+ [changedProps addObject:@"format"]; -+ } -+ if(oldViewProps.format.minISO != newViewProps.format.minISO){ -+ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.minISO] forKey:@"minISO"]; -+ [changedProps addObject:@"format"]; -+ } -+ if(oldViewProps.format.maxFps != newViewProps.format.maxFps){ -+ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.maxFps] forKey:@"maxFps"]; -+ [changedProps addObject:@"format"]; -+ } -+ if(oldViewProps.format.minFps != newViewProps.format.minFps){ -+ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.minFps] forKey:@"minFps"]; -+ [changedProps addObject:@"format"]; -+ } -+ if(oldViewProps.format.fieldOfView != newViewProps.format.fieldOfView){ -+ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.fieldOfView] forKey:@"fieldOfView"]; -+ [changedProps addObject:@"format"]; -+ } -+ -+ if(oldViewProps.format.supportsVideoHDR != newViewProps.format.supportsVideoHDR){ -+ NSNumber* supportsVideoHDR = newViewProps.format.supportsVideoHDR ? @1 : @0; -+ [_view.format setValue:supportsVideoHDR forKey:@"supportsVideoHDR"]; -+ [changedProps addObject:@"format"]; -+ } -+ if(oldViewProps.format.supportsPhotoHDR != newViewProps.format.supportsPhotoHDR){ -+ NSNumber* supportsPhotoHDR = newViewProps.format.supportsPhotoHDR ? @1 : @0; -+ [_view.format setValue:supportsPhotoHDR forKey:@"supportsPhotoHDR"]; -+ [changedProps addObject:@"format"]; -+ } -+ -+ if (_view.format.count == 0) { -+ _view.format = nil; -+ } -+ -+ if(_view.codeScannerOptions == nil){ -+ _view.codeScannerOptions =[[NSMutableDictionary alloc] init]; -+ } -+ -+ if(oldViewProps.codeScannerOptions.codeTypes.size() != newViewProps.codeScannerOptions.codeTypes.size()){ -+ NSMutableArray* newCodeTypes = [[NSMutableArray alloc] init]; -+ for(int i = 0; i < newViewProps.codeScannerOptions.codeTypes.size(); i++){ -+ [newCodeTypes addObject:RCTNSStringFromString(newViewProps.codeScannerOptions.codeTypes.at(i))]; -+ } -+ [_view.codeScannerOptions setValue:newCodeTypes forKey:@"codeTypes"]; -+ [changedProps addObject:@"codeScannerOptions"]; -+ } -+ -+ if(oldViewProps.codeScannerOptions.interval != newViewProps.codeScannerOptions.interval){ -+ [_view.codeScannerOptions setValue:[NSNumber numberWithDouble:newViewProps.codeScannerOptions.interval] forKey:@"interval"]; -+ [changedProps addObject:@"codeScannerOptions"]; -+ } -+ -+ if( -+ oldViewProps.codeScannerOptions.regionOfInterest.x != newViewProps.codeScannerOptions.regionOfInterest.x || -+ oldViewProps.codeScannerOptions.regionOfInterest.y != newViewProps.codeScannerOptions.regionOfInterest.y || -+ oldViewProps.codeScannerOptions.regionOfInterest.width != newViewProps.codeScannerOptions.regionOfInterest.width || -+ oldViewProps.codeScannerOptions.regionOfInterest.height != newViewProps.codeScannerOptions.regionOfInterest.height -+ ){ -+ NSDictionary *newRegionOfInterest = @{ -+ @"x": @(newViewProps.codeScannerOptions.regionOfInterest.x), -+ @"y": @(newViewProps.codeScannerOptions.regionOfInterest.y), -+ @"width": @(newViewProps.codeScannerOptions.regionOfInterest.width), -+ @"height": @(newViewProps.codeScannerOptions.regionOfInterest.height), -+ }; -+ [_view.codeScannerOptions setValue:newRegionOfInterest forKey:@"regionOfInterest"]; -+ [changedProps addObject:@"codeScannerOptions"]; -+ } -+ -+ if (_view.codeScannerOptions.count == 0) { -+ _view.codeScannerOptions = nil; -+ } -+ -+ [_view didSetProps:changedProps]; -+ -+ [super updateProps:props oldProps:oldProps]; -+} -+ -+- (void)onViewReady{ -+ if(_eventEmitter){ -+ std::dynamic_pointer_cast(_eventEmitter) -+ ->onViewReady( CameraViewEventEmitter::OnViewReady{}); -+ } -+} -+ -+- (void)onErrorWithError:(NSDictionary *)error{ -+ if(_eventEmitter){ -+ std::dynamic_pointer_cast(_eventEmitter) -+ ->onError( CameraViewEventEmitter::OnError{ -+ .code = std::string([(error != nil ? [error objectForKey:@"code"] : @"") UTF8String]), -+ .message = std::string([(error != nil ? [error objectForKey:@"message"] : @"") UTF8String]), -+ .cause = { -+ .code = std::string([(error != nil ? [[error objectForKey:@"cause"] objectForKey:@"code"] : @"") UTF8String]), // TODO: Further secure type safety to prevent crashes -+ .domain = std::string([(error != nil ? [[error objectForKey:@"cause"] objectForKey:@"domain"] : @"") UTF8String]), -+ .message = std::string([(error != nil ? [[error objectForKey:@"cause"] objectForKey:@"message"] : @"") UTF8String]), -+ .details = std::string([(error != nil ? [[error objectForKey:@"cause"] objectForKey:@"details"] : @"") UTF8String]) -+ } -+ }); -+ } -+} -+ -+- (void)onInitialized{ -+ if(_eventEmitter){ -+ std::dynamic_pointer_cast(_eventEmitter) -+ ->onInitialized( CameraViewEventEmitter::OnInitialized{}); -+ } -+} -+ -+- (void)onCodeScannedWithMessage:(NSDictionary *)message { -+ if(_eventEmitter){ -+ std::dynamic_pointer_cast(_eventEmitter) -+ ->onCodeScanned( CameraViewEventEmitter::OnCodeScanned{ -+ .codes = { -+ .type = std::string([(message != nil ? [[message objectForKey:@"codes"] objectForKey:@"type"] : @"") UTF8String]), -+ .value = std::string([(message != nil ? [[message objectForKey:@"codes"] objectForKey:@"value"] : @"") UTF8String]), -+ .frame = { -+ .x = [(message != nil ? [[[message objectForKey:@"codes"] objectForKey:@"frame"] objectForKey:@"x"] : @0) doubleValue], -+ .y = [(message != nil ? [[[message objectForKey:@"codes"] objectForKey:@"frame"] objectForKey:@"y"] : @0) doubleValue], -+ .width = [(message != nil ? [[[message objectForKey:@"codes"] objectForKey:@"frame"] objectForKey:@"width"] : @0) doubleValue], -+ .height = [(message != nil ? [[[message objectForKey:@"codes"] objectForKey:@"frame"] objectForKey:@"height"] : @0) doubleValue], -+ }, -+ }, -+ .frame = { -+ .width = [(message != nil ? [[message objectForKey:@"frame"] objectForKey:@"width"] : @0) intValue], -+ .height = [(message != nil ? [[message objectForKey:@"frame"] objectForKey:@"height"] : @0) intValue], -+ }, -+ // nothing is sent here from CameraView -+ .corners = { -+ .x = [(message != nil ? [[message objectForKey:@"corners"] objectForKey:@"x"] : @0) doubleValue], -+ .y = [(message != nil ? [[message objectForKey:@"corners"] objectForKey:@"y"] : @0) doubleValue], -+ } -+ }); -+ } -+} -+ -+ -+- (void)onShutterWithMessage:(NSDictionary *)message { -+ if(_eventEmitter){ -+ std::dynamic_pointer_cast(_eventEmitter) -+ ->onShutter( CameraViewEventEmitter::OnShutter{ -+ .type = std::string([(message != nil ? [message objectForKey:@"type"] : @"") UTF8String]), -+ }); -+ } -+} -+ -+ -+- (void)onStarted { -+ if(_eventEmitter){ -+ std::dynamic_pointer_cast(_eventEmitter) -+ ->onStarted( CameraViewEventEmitter::OnStarted{}); -+ } -+} -+ -+ -+- (void)onStopped { -+ if(_eventEmitter){ -+ std::dynamic_pointer_cast(_eventEmitter) -+ ->onViewReady( CameraViewEventEmitter::OnViewReady{}); -+ } -+} -+ -+Class CameraViewCls(void) -+{ -+ return RNCameraView.class; -+} -+ -+@end -+#endif -diff --git a/node_modules/react-native-vision-camera/lib/commonjs/Camera.js b/node_modules/react-native-vision-camera/lib/commonjs/Camera.js -index ac08791..6e691b9 100644 ---- a/node_modules/react-native-vision-camera/lib/commonjs/Camera.js -+++ b/node_modules/react-native-vision-camera/lib/commonjs/Camera.js -@@ -10,8 +10,11 @@ var _CameraError = require("./CameraError"); - var _NativeCameraModule = require("./NativeCameraModule"); - var _FrameProcessorPlugins = require("./FrameProcessorPlugins"); - var _CameraDevices = require("./CameraDevices"); -+var _CameraViewNativeComponent = _interopRequireDefault(require("./specs/CameraViewNativeComponent")); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } -+const NativeCameraView = _CameraViewNativeComponent.default; -+ - //#region Types - - //#endregion -@@ -552,10 +555,5 @@ class Camera extends _react.default.PureComponent { - } - } - //#endregion -- --// requireNativeComponent automatically resolves 'CameraView' to 'CameraViewManager' - exports.Camera = Camera; --const NativeCameraView = (0, _reactNative.requireNativeComponent)('CameraView', --// @ts-expect-error because the type declarations are kinda wrong, no? --Camera); - //# sourceMappingURL=Camera.js.map -\ No newline at end of file -diff --git a/node_modules/react-native-vision-camera/lib/commonjs/Camera.js.map b/node_modules/react-native-vision-camera/lib/commonjs/Camera.js.map -index 808f69a..02a8590 100644 ---- a/node_modules/react-native-vision-camera/lib/commonjs/Camera.js.map -+++ b/node_modules/react-native-vision-camera/lib/commonjs/Camera.js.map -@@ -1 +1 @@ --{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_CameraError","_NativeCameraModule","_FrameProcessorPlugins","_CameraDevices","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","Camera","React","PureComponent","displayName","isNativeViewMounted","constructor","props","onViewReady","onInitialized","onStarted","onStopped","onShutter","onError","onCodeScanned","ref","createRef","lastFrameProcessor","undefined","state","isRecordingWithFlash","handle","nodeHandle","findNodeHandle","current","CameraRuntimeError","takePhoto","options","CameraModule","e","tryParseNativeCameraError","takeSnapshot","getBitRateMultiplier","bitRate","startRecording","onRecordingError","onRecordingFinished","videoBitRate","passThruOptions","flash","setState","nativeOptions","videoBitRateOverride","videoBitRateMultiplier","onRecordCallback","video","error","pauseRecording","resumeRecording","stopRecording","cancelRecording","focus","point","getAvailableCameraDevices","CameraDevices","addCameraDevicesChangedListener","listener","getCameraPermissionStatus","getMicrophonePermissionStatus","getLocationPermissionStatus","requestCameraPermission","requestMicrophonePermission","requestLocationPermission","event","nativeEvent","cause","isErrorWithCause","cameraError","code","message","console","_this$props$onInitial","_this$props","_this$props$onStarted","_this$props2","_this$props$onStopped","_this$props3","_this$props$onShutter","_this$props4","codeScanner","codes","frame","setFrameProcessor","frameProcessor","VisionCameraProxy","unsetFrameProcessor","removeFrameProcessor","componentDidUpdate","render","device","shouldEnableBufferCompression","pixelFormat","torch","createElement","NativeCameraView","cameraId","id","codeScannerOptions","enableFrameProcessor","enableBufferCompression","enableFpsGraph","exports","requireNativeComponent"],"sourceRoot":"../../src","sources":["Camera.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,mBAAA,GAAAH,OAAA;AAIA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AAA+C,SAAAD,uBAAAO,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,G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AC,CAAC,OAAOQ,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaqB,eAAeA,CAAA,EAAkB;IAC5C,IAAI;MACF,OAAO,MAAMtB,gCAAY,CAACsB,eAAe,CAAC,IAAI,CAAC7B,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOQ,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAasB,KAAKA,CAACC,KAAY,EAAiB;IAC9C,IAAI;MACF,OAAO,MAAMxB,gCAAY,CAACuB,KAAK,CAAC,IAAI,CAAC9B,MAAM,EAAE+B,KAAK,CAAC;IACrD,CAAC,CAAC,OAAOvB,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;EACA;;EAEA;EACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAcwB,yBAAyBA,CAAA,EAAmB;IACxD,OAAOC,4BAAa,CAACD,yBAAyB,CAAC,CAAC;EAClD;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAcE,+BAA+BA,CAACC,QAA8C,EAAuB;IACjH,OAAOF,4BAAa,CAACC,+BAA+B,CAACC,QAAQ,CAAC;EAChE;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAcC,yBAAyBA,CAAA,EAA2B;IAChE,OAAO7B,gCAAY,CAAC6B,yBAAyB,CAAC,CAAC;EACjD;EACA;AACF;AACA;AACA;AACA;AACA;AACA;EACE,OAAcC,6BAA6BA,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"names":["_react","_interopRequireDefault","require","_reactNative","_CameraError","_NativeCameraModule","_FrameProcessorPlugins","_CameraDevices","_CameraViewNativeComponent","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","NativeCameraView","NativeCameraViewCodegen","Camera","React","PureComponent","displayName","isNativeViewMounted","constructor","props","onViewReady","onInitialized","onStarted","onStopped","onShutter","onError","onCodeScanned","ref","createRef","lastFrameProcessor","undefined","state","isRecordingWithFlash","handle","nodeHandle","findNodeHandle","current","CameraRuntimeError","takePhoto","options","CameraModule","e","tryParseNativeCameraError","takeSnapshot","getBitRateMultiplier","bitRate","startRecording","onRecordingError","onRecordingFinished","videoBitRate","passThruOptions","flash","setState","nativeOptions","videoBitRateOverride","videoBitRateMultiplier","onRecordCallback","video","error","pauseRecording","resumeRecording","stopRecording","cancelRecording","focus","point","getAvailableCameraDevices","CameraDevices","addCameraDevicesChangedListener","listener","getCameraPermissionStatus","getMicrophonePermissionStatus","getLocationPermissionStatus","requestCameraPermission","requestMicrophonePermission","requestLocationPermission","event","nativeEvent","cause","isErrorWithCause","cameraError","code","message","console","_this$props$onInitial","_this$props","_this$props$onStarted","_this$props2","_this$props$onStopped","_this$props3","_this$props$onShutter","_this$props4","codeScanner","codes","frame","setFrameProcessor","frameProcessor","VisionCameraProxy","unsetFrameProcessor","removeFrameProcessor","componentDidUpdate","render","device","shouldEnableBufferCompression","pixelFormat","torch","createElement","cameraId","id","codeScannerOptions","enableFrameProcessor","enableBufferCompression","enableFpsGraph","exports"],"sourceRoot":"../../src","sources":["Camera.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,mBAAA,GAAAH,OAAA;AAIA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AAIA,IAAAM,0BAAA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,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaoB,aAAaA,CAAA,EAAkB;IAC1C,IAAI;MACF,OAAO,MAAMrB,gCAAY,CAACqB,aAAa,CAAC,IAAI,CAAC5B,MAAM,CAAC;IACtD,CAAC,CAAC,OAAOQ,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaqB,eAAeA,CAAA,EAAkB;IAC5C,IAAI;MACF,OAAO,MAAMtB,gCAAY,CAACsB,eAAe,CAAC,IAAI,CAAC7B,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOQ,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAasB,KAAKA,CAACC,KAAY,EAAiB;IAC9C,IAAI;MACF,OAAO,MAAMxB,gCAAY,CAACuB,KAAK,CAAC,IAAI,CAAC9B,MAAM,EAAE+B,KAAK,CAAC;IACrD,CAAC,CAAC,OAAOvB,CAAC,EAAE;MACV,MAAM,IAAAC,sCAAyB,EAACD,CAAC,CAAC;IACpC;EACF;EACA;;EAEA;EACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAcwB,yBAAyBA,CAAA,EAAmB;IACxD,OAAOC,4BAAa,CAACD,yBAAyB,CAAC,CAAC;EAClD;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAcE,+BAA+BA,CAACC,QAA8C,E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zBQ,cAAc,EAAEhB,cAAc,IAAI,IAAI,IAAI5E,KAAK,CAAC4F;IAAe,EAChE,CAAC;EAEN;AACF;AACA;AAAAC,OAAA,CAAAnG,MAAA,GAAAA,MAAA"} -\ No newline at end of file -diff --git a/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js b/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js -index cc2179c..3581e20 100644 ---- a/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js -+++ b/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js -@@ -70,7 +70,7 @@ try { - isAsyncContextBusy.value = false; - } - }, asyncContext); -- hasWorklets = true; -+ // hasWorklets = true - } catch (e) { - // Worklets are not installed, so Frame Processors are disabled. - } -diff --git a/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js.map b/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js.map -index cab0ad6..4e34f24 100644 ---- a/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js.map -+++ b/node_modules/react-native-vision-camera/lib/commonjs/FrameProcessorPlugins.js.map -@@ -1 +1 @@ --{"version":3,"names":["_CameraError","require","_NativeCameraModule","_JSIHelper","errorMessage","hasWorklets","isAsyncContextBusy","value","runOnAsyncContext","_frame","_func","CameraRuntimeError","throwJSError","error","assertJSIAvailable","Worklets","throwErrorOnJS","createRunInJsFn","message","stack","Error","name","jsEngine","global","ErrorUtils","reportFatalError","safeError","createSharedValue","asyncContext","createContext","createRunInContextFn","frame","func","e","internal","decrementRefCount","proxy","initFrameProcessorPlugin","removeFrameProcessor","setFrameProcessor","result","CameraModule","installFrameProcessorBindings","VisionCameraProxy","exports","getFrameProcessorPlugin","options","console","warn","getLastFrameProcessorCall","frameProcessorFuncId","_global$__frameProces","__frameProcessorRunAtTargetFpsMap","setLastFrameProcessorCall","runAtTargetFps","fps","funcId","__workletHash","targetIntervalMs","now","performance","diffToLastCall","undefined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;EACA;EACA,MAAMwB,MAAM,GAAGxB,IAAI,CAACyB,aAAa,IAAI,GAAG;EAExC,MAAMC,gBAAgB,GAAG,IAAI,GAAGH,GAAG,EAAC;EACpC,MAAMI,GAAG,GAAGC,WAAW,CAACD,GAAG,CAAC,CAAC;EAC7B,MAAME,cAAc,GAAGF,GAAG,GAAGV,yBAAyB,CAACO,MAAM,CAAC;EAC9D,IAAIK,cAAc,IAAIH,gBAAgB,EAAE;IACtCL,yBAAyB,CAACG,MAAM,EAAEG,GAAG,CAAC;IACtC;IACA,OAAO3B,IAAI,CAAC,CAAC;EACf;EACA,OAAO8B,SAAS;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,QAAQA,CAAChC,KAAY,EAAEC,IAAgB,EAAQ;EAC7D,SAAS;;EAET,IAAI1B,kBAAkB,CAACC,KAAK,EAAE;IAC5B;IACA;IACA;EACF;;EAEA;EACA,MAAM2B,QAAQ,GAAGH,KAAsB;EACvCG,QAAQ,CAAC8B,iBAAiB,CAAC,CAAC;EAE5B1D,kBAAkB,CAACC,KAAK,GAAG,IAAI;;EAE/B;EACAC,iBAAiB,CAACuB,KAAK,EAAEC,IAAI,CAAC;AAChC"} -\ No newline at end of file -+{"version":3,"names":["_CameraError","require","_NativeCameraModule","_JSIHelper","errorMessage","hasWorklets","isAsyncContextBusy","value","runOnAsyncContext","_frame","_func","CameraRuntimeError","throwJSError","error","assertJSIAvailable","Worklets","throwErrorOnJS","createRunInJsFn","message","stack","Error","name","jsEngine","global","ErrorUtils","reportFatalError","safeError","createSharedValue","asyncContext","createContext","createRunInContextFn","frame","func","e","internal","decrementRefCount","proxy","initFrameProcessorPlugin","removeFrameProcessor","setFrameProcessor","result","CameraModule","installFrameProcessorBindings","VisionCameraProxy","exports","getFrameProcessorPlugin","options","console","warn","getLastFrameProcessorCall","frameProcessorFuncId","_global$__frameProces","__frameProcessorRunAtTargetFpsMap","setLastFrameProcessorCall","runAtTargetFps","fps","funcId","__workletHash","targetIntervalMs","now","performance","diffToLastCall","undefined","runAsync","incrementRefCount"],"sourceRoot":"../../src","sources":["FrameProcessorPlugins.ts"],"mappings":";;;;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AAIA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAHA;;AAQA;AACA;AACA;AACA;;AAgCA,MAAMG,YAAY,GAAG,kFAAkF;AAEvG,IAAIC,WAAW,GAAG,KAAK;AACvB,IAAIC,kBAAkB,GAAG;EAAEC,KAAK,EAAE;AAAM,CAAC;AACzC,IAAIC,iBAAiB,GAAGA,CAACC,MAAa,EAAEC,KAAiB,KAAW;EAClE,MAAM,IAAIC,+BAAkB,CAAC,qCAAqC,EAAEP,YAAY,CAAC;AACnF,CAAC;AACD,IAAIQ,YAAY,GAAIC,KAAc,IAAW;EAC3C,MAAMA,KAAK;AACb,CAAC;AAED,IAAI;EACF,IAAAC,6BAAkB,EAAC,CAAC;;EAEpB;EACA,MAAM;IAAEC;EAAS,CAAC,GAAGd,OAAO,CAAC,4BAA4B,CAAqB;EAE9E,MAAMe,cAAc,GAAGD,QAAQ,CAACE,eAAe,CAAC,CAACC,OAAe,EAAEC,KAAyB,KAAK;IAC9F,MAAMN,KAAK,GAAG,IAAIO,KAAK,CAAC,CAAC;IACzBP,KAAK,CAACK,OAAO,GAAGA,OAAO;IACvBL,KAAK,CAACM,KAAK,GAAGA,KAAK;IACnBN,KAAK,CAACQ,IAAI,GAAG,uBAAuB;IACpC;IACAR,KAAK,CAACS,QAAQ,GAAG,cAAc;IAC/B;IACA;IACAC,MAAM,CAACC,UAAU,CAACC,gBAAgB,CAACZ,KAAK,CAAC;EAC3C,CAAC,CAAC;EACFD,YAAY,GAAIC,KAAK,IAAK;IACxB,SAAS;;IACT,MAAMa,SAAS,GAAGb,KAA0B;IAC5C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ACA;AACA;AACA;AACA;AACO,SAAS+C,cAAcA,CAAIC,GAAW,EAAEvB,IAAa,EAAiB;EAC3E,SAAS;;EACT;EACA;EACA,MAAMwB,MAAM,GAAGxB,IAAI,CAACyB,aAAa,IAAI,GAAG;EAExC,MAAMC,gBAAgB,GAAG,IAAI,GAAGH,GAAG,EAAC;EACpC,MAAMI,GAAG,GAAGC,WAAW,CAACD,GAAG,CAAC,CAAC;EAC7B,MAAME,cAAc,GAAGF,GAAG,GAAGV,yBAAyB,CAACO,MAAM,CAAC;EAC9D,IAAIK,cAAc,IAAIH,gBAAgB,EAAE;IACtCL,yBAAyB,CAACG,MAAM,EAAEG,GAAG,CAAC;IACtC;IACA,OAAO3B,IAAI,CAAC,CAAC;EACf;EACA,OAAO8B,SAAS;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,QAAQA,CAAChC,KAAY,EAAEC,IAAgB,EAAQ;EAC7D,SAAS;;EAET,IAAI1B,kBAAkB,CAACC,KAAK,EAAE;IAC5B;IACA;IACA;EACF;;EAEA;EACA,MAAM2B,QAAQ,GAAGH,KAAsB;EACvCG,QAAQ,CAAC8B,iBAAiB,CAAC,CAAC;EAE5B1D,kBAAkB,CAACC,KAAK,GAAG,IAAI;;EAE/B;EACAC,iBAAiB,CAACuB,KAAK,EAAEC,IAAI,CAAC;AAChC"} -\ No newline at end of file -diff --git a/node_modules/react-native-vision-camera/lib/commonjs/specs/CameraViewNativeComponent.js b/node_modules/react-native-vision-camera/lib/commonjs/specs/CameraViewNativeComponent.js -new file mode 100644 -index 0000000..7008471 ---- /dev/null -+++ b/node_modules/react-native-vision-camera/lib/commonjs/specs/CameraViewNativeComponent.js -@@ -0,0 +1,11 @@ -+"use strict"; -+ -+Object.defineProperty(exports, "__esModule", { -+ value: true -+}); -+exports.default = void 0; -+var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent")); -+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -+/* eslint-disable @typescript-eslint/ban-types */ -+var _default = exports.default = (0, _codegenNativeComponent.default)('CameraView'); -+//# sourceMappingURL=CameraViewNativeComponent.js.map -\ No newline at end of file -diff --git a/node_modules/react-native-vision-camera/lib/commonjs/specs/CameraViewNativeComponent.js.map b/node_modules/react-native-vision-camera/lib/commonjs/specs/CameraViewNativeComponent.js.map -new file mode 100644 -index 0000000..d1b3d81 ---- /dev/null -+++ b/node_modules/react-native-vision-camera/lib/commonjs/specs/CameraViewNativeComponent.js.map -@@ -0,0 +1 @@ -+{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","obj","__esModule","default","_default","exports","codegenNativeComponent"],"sourceRoot":"../../../src","sources":["specs/CameraViewNativeComponent.ts"],"mappings":";;;;;;AAGA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAH7F;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GA0Fe,IAAAG,+BAAsB,EAAc,YAAY,CAAC"} -\ No newline at end of file -diff --git a/node_modules/react-native-vision-camera/lib/module/Camera.js b/node_modules/react-native-vision-camera/lib/module/Camera.js -index b5bbf8b..3f44fdd 100644 ---- a/node_modules/react-native-vision-camera/lib/module/Camera.js -+++ b/node_modules/react-native-vision-camera/lib/module/Camera.js -@@ -1,10 +1,12 @@ - function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - import React from 'react'; --import { requireNativeComponent, findNodeHandle } from 'react-native'; -+import { findNodeHandle } from 'react-native'; - import { CameraRuntimeError, tryParseNativeCameraError, isErrorWithCause } from './CameraError'; - import { CameraModule } from './NativeCameraModule'; - import { VisionCameraProxy } from './FrameProcessorPlugins'; - import { CameraDevices } from './CameraDevices'; -+import NativeCameraViewCodegen from './specs/CameraViewNativeComponent'; -+const NativeCameraView = NativeCameraViewCodegen; - - //#region Types - -@@ -546,9 +548,4 @@ export class Camera extends React.PureComponent { - } - } - //#endregion -- --// requireNativeComponent automatically resolves 'CameraView' to 'CameraViewManager' --const NativeCameraView = requireNativeComponent('CameraView', --// @ts-expect-error because the type declarations are kinda wrong, no? --Camera); - //# sourceMappingURL=Camera.js.map -\ No newline at end of file -diff --git a/node_modules/react-native-vision-camera/lib/module/Camera.js.map b/node_modules/react-native-vision-camera/lib/module/Camera.js.map -index 42aa7ea..0205781 100644 ---- a/node_modules/react-native-vision-camera/lib/module/Camera.js.map -+++ b/node_modules/react-native-vision-camera/lib/module/Camera.js.map -@@ -1 +1 @@ --{"version":3,"names":["React","requireNativeComponent","findNodeHandle","CameraRuntimeError","tryParseNativeCameraError","isErrorWithCause","CameraModule","VisionCameraProxy","CameraDevices","Camera","PureComponent","displayName","isNativeViewMounted","constructor","props","onViewReady","bind","onInitialized","onStarted","onStopped","onShutter","onError","onCodeScanned","ref","createRef","lastFrameProcessor","undefined","state","isRecordingWithFlash","handle","nodeHandle","current","takePhoto","options","e","takeSnapshot","getBitRateMultiplier","bitRate","startRecording","onRecordingError","onRecordingFinished","videoBitRate","passThruOptions","flash","setState","nativeOptions","videoBitRateOverride","videoBitRateMultiplier","onRecordCallback","video","error","pauseRecording","resumeRecording","stopRecording","cancelRecording","focus","point","getAvailableCameraDevices","addCameraDevicesChangedListener","listener","getCameraPermissionStatus","getMicrophonePermissionStatus","getLocationPermissionStatus","requestCameraPermission","requestMicrophonePermission","requestLocationPermission","event","nativeEvent","cause","cameraError","code","message","console","_this$props$onInitial","_this$props","call","_this$props$onStarted","_this$props2","_this$props$onStopped","_this$props3","_this$props$onShutter","_this$props4","codeScanner","codes","frame","setFrameProcessor","frameProcessor","unsetFrameProcessor","removeFrameProcessor","componentDidUpdate","render","device","shouldEnableBufferCompression","pixelFormat","torch","createElement","NativeCameraView","_extends","cameraId","id","codeScannerOptions","enableFrameProcessor","enableBufferCompression","enableFpsGraph"],"sourceRoot":"../../src","sources":["Camera.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,sBAAsB,EAAwBC,cAAc,QAAuB,cAAc;AAG1G,SAA6BC,kBAAkB,EAAEC,yBAAyB,EAAEC,gBAAgB,QAAQ,eAAe;AAEnH,SAASC,YAAY,QAAQ,sBAAsB;AAInD,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,aAAa,QAAQ,iBAAiB;;AAK/C;;AAiCA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,SAAST,KAAK,CAACU,aAAa,CAA2B;EACxE;EACA,OAAOC,WAAW,GAAG,QAAQ;EAC7B;EACAA,WAAW,GAAGF,MAAM,CAACE,WAAW;EAExBC,mBAAmB,GAAG,KAAK;EAInC;EACAC,WAAWA,CAACC,KAAkB,EAAE;IAC9B,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI,CAACC,WAAW,GAAG,IAAI,CAACA,WAAW,CAACC,IAAI,CAAC,IAAI,CAAC;IAC9C,IAAI,CAACC,aAAa,GAAG,IAAI,CAACA,aAAa,CAACD,IAAI,CAAC,IAAI,CAAC;IAClD,IAAI,CAACE,SAAS,GAAG,IAAI,CAACA,SAAS,CAACF,IAAI,CAAC,IAAI,CAAC;IAC1C,IAAI,CAACG,SAAS,GAAG,IAAI,CAACA,SAAS,CAACH,IAAI,CAAC,IAAI,CAAC;IAC1C,IAAI,CAACI,SAAS,GAAG,IAAI,CA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IAAI;MACF,OAAO,MAAM/C,YAAY,CAAC+C,aAAa,CAAC,IAAI,CAACxB,MAAM,CAAC;IACtD,CAAC,CAAC,OAAOK,CAAC,EAAE;MACV,MAAM9B,yBAAyB,CAAC8B,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaoB,eAAeA,CAAA,EAAkB;IAC5C,IAAI;MACF,OAAO,MAAMhD,YAAY,CAACgD,eAAe,CAAC,IAAI,CAACzB,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOK,CAAC,EAAE;MACV,MAAM9B,yBAAyB,CAAC8B,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaqB,KAAKA,CAACC,KAAY,EAAiB;IAC9C,IAAI;MACF,OAAO,MAAMlD,YAAY,CAACiD,KAAK,CAAC,IAAI,CAAC1B,MAAM,EAAE2B,KAAK,CAAC;IACrD,CAAC,CAAC,OAAOtB,CAAC,EAAE;MACV,MAAM9B,yBAAyB,CAAC8B,CAAC,CAAC;IACpC;EACF;EACA;;EAEA;EACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAcuB,yBAAyBA,CAAA,EAAmB;IACxD,OAAOjD,aAAa,CAACiD,yBAAyB,CAAC,CAAC;EAClD;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAcC,+BAA+BA,CAACC,QAA8C,EAAuB;IACjH,OAAOnD,aAAa,CAACkD,+BAA+B,CAACC,QAAQ,CAAC;EAChE;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAcC,yBAAyBA,CAAA,EAA2B;IAChE,OAAOtD,YAAY,CAACsD,yBAAyB,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NodeHandle","CameraRuntimeError","tryParseNativeCameraError","isErrorWithCause","CameraModule","VisionCameraProxy","CameraDevices","NativeCameraViewCodegen","NativeCameraView","Camera","PureComponent","displayName","isNativeViewMounted","constructor","props","onViewReady","bind","onInitialized","onStarted","onStopped","onShutter","onError","onCodeScanned","ref","createRef","lastFrameProcessor","undefined","state","isRecordingWithFlash","handle","nodeHandle","current","takePhoto","options","e","takeSnapshot","getBitRateMultiplier","bitRate","startRecording","onRecordingError","onRecordingFinished","videoBitRate","passThruOptions","flash","setState","nativeOptions","videoBitRateOverride","videoBitRateMultiplier","onRecordCallback","video","error","pauseRecording","resumeRecording","stopRecording","cancelRecording","focus","point","getAvailableCameraDevices","addCameraDevicesChangedListener","listener","getCameraPermissionStatus","getMicrophonePermissionStatus","getLocationPermissionStatus","requestCameraPermission","requestMicrophonePermission","requestLocationPermission","event","nativeEvent","cause","cameraError","code","message","console","_this$props$onInitial","_this$props","call","_this$props$onStarted","_this$props2","_this$props$onStopped","_this$props3","_this$props$onShutter","_this$props4","codeScanner","codes","frame","setFrameProcessor","frameProcessor","unsetFrameProcessor","removeFrameProcessor","componentDidUpdate","render","device","shouldEnableBufferCompression","pixelFormat","torch","createElement","_extends","cameraId","id","codeScannerOptions","enableFrameProcessor","enableBufferCompression","enableFpsGraph"],"sourceRoot":"../../src","sources":["Camera.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAA+BC,cAAc,QAAuB,cAAc;AAGlF,SAA6BC,kBAAkB,EAAEC,yBAAyB,EAAEC,gBAAgB,QAAQ,eAAe;AAEnH,SAASC,YAAY,QAAQ,sBAAsB;AAInD,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,aAAa,QAAQ,iBAAiB;AAI/C,OAAOC,uBAAuB,MAAM,mCAAmC;AAEvE,MAAMC,gBAAgB,GAAGD,uBAAsG;;AAE/H;;AAiCA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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ACA;AACA;AACA;EACE,MAAaiB,cAAcA,CAAA,EAAkB;IAC3C,IAAI;MACF,OAAO,MAAM/C,YAAY,CAAC+C,cAAc,CAAC,IAAI,CAACtB,MAAM,CAAC;IACvD,CAAC,CAAC,OAAOK,CAAC,EAAE;MACV,MAAMhC,yBAAyB,CAACgC,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAakB,eAAeA,CAAA,EAAkB;IAC5C,IAAI;MACF,OAAO,MAAMhD,YAAY,CAACgD,eAAe,CAAC,IAAI,CAACvB,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOK,CAAC,EAAE;MACV,MAAMhC,yBAAyB,CAACgC,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAamB,aAAaA,CAAA,EAAkB;IAC1C,IAAI;MACF,OAAO,MAAMjD,YAAY,CAACiD,aAAa,CAAC,IAAI,CAACxB,MAAM,CAAC;IACtD,CAAC,CAAC,OAAOK,CAAC,EAAE;MACV,MAAMhC,yBAAyB,CAACgC,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaoB,eAAeA,CAAA,EAAkB;IAC5C,IAAI;MACF,OAAO,MAAMlD,YAAY,CAACkD,eAAe,CAAC,IAAI,CAACzB,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOK,CAAC,EAAE;MACV,MAAMhC,yBAAyB,CAACgC,CAAC,CAAC;IACpC;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaqB,KAAKA,CAACC,KAAY,EAAiB;IAC9C,IAAI;MACF,OAAO,MAAMpD,YAAY,CAACmD,KAAK,CAAC,IAAI,CAAC1B,MAAM,EAAE2B,KAAK,CAAC;IACrD,CAAC,CAAC,OAAOtB,CAAC,EAAE;MACV,MAAMhC,yBAAyB,CAACgC,CAAC,CAAC;IACpC;EACF;EACA;;EAEA;EACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAcuB,yBAAyBA,CAAA,EAAmB;IACxD,OAAOnD,aAAa,CAACmD,yBAAyB,CAAC,CAAC;EAClD;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAcC,+BAA+BA,CAACC,QAA8C,EAAuB;IACjH,OAAOrD,aAAa,CAACoD,+BAA+B,CAACC,QAAQ,CAAC;EAChE;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAcC,yBAAyBA,CAAA,EAA2B;IAChE,OAAOxD,YAAY,CAACwD,yBAAyB,CAAC,CAAC;EACjD;EACA;AACF;AACA;AACA;AACA;AACA;AACA;EACE,OAAcC,6BAA6BA,CAAA,EAA2B;IACpE,OAAOzD,YAAY,CAACyD,6BAA6B,CAAC,CAAC;EACrD;EACA;AACF;AACA;AACA;AACA;AACA;AACA;EACE,OAAcC,2BAA2BA,CAAA,EAA2B;IAClE,OAAO1D,YAAY,CAAC0D,2BAA2B,CAAC,CAAC;EACnD;EACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,aAAoBC,uBAAuBA,CAAA,EAA2C;IACpF,IAAI;MACF,OAAO,MAAM3D,YAAY,CAAC2D,uBAAuB,CAAC,CAAC;IACrD,CAAC,CAAC,OAAO7B,CAAC,EAAE;MACV,MAAMhC,yBAAyB,CAACgC,CAAC,CAAC;IACpC;EACF;EACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,aAAoB8B,2BAA2BA,CA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duE,KAAK,EAAEA,KAAM;MACb/E,WAAW,EAAE,IAAI,CAACA,WAAY;MAC9BE,aAAa,EAAE,IAAI,CAACA,aAAc;MAClCK,aAAa,EAAE,IAAI,CAACA,aAAc;MAClCJ,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,SAAS,EAAE,IAAI,CAACA,SAAU;MAC1BC,OAAO,EAAE,IAAI,CAACA,OAAQ;MACtB8E,kBAAkB,EAAEjB,WAAY;MAChCkB,oBAAoB,EAAEd,cAAc,IAAI,IAAK;MAC7Ce,uBAAuB,EAAEvF,KAAK,CAACuF,uBAAuB,IAAIT,6BAA8B;MACxFC,WAAW,EAAEA,WAAY;MACzBS,cAAc,EAAEhB,cAAc,IAAI,IAAI,IAAIxE,KAAK,CAACwF;IAAe,EAChE,CAAC;EAEN;AACF;AACA"} -\ No newline at end of file -diff --git a/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js b/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js -index a0ee374..f1f08c1 100644 ---- a/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js -+++ b/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js -@@ -64,7 +64,7 @@ try { - isAsyncContextBusy.value = false; - } - }, asyncContext); -- hasWorklets = true; -+ // hasWorklets = true - } catch (e) { - // Worklets are not installed, so Frame Processors are disabled. - } -diff --git a/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js.map b/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js.map -index baf8705..1b73944 100644 ---- a/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js.map -+++ b/node_modules/react-native-vision-camera/lib/module/FrameProcessorPlugins.js.map -@@ -1 +1 @@ --{"version":3,"names":["CameraRuntimeError","CameraModule","assertJSIAvailable","errorMessage","hasWorklets","isAsyncContextBusy","value","runOnAsyncContext","_frame","_func","throwJSError","error","Worklets","require","throwErrorOnJS","createRunInJsFn","message","stack","Error","name","jsEngine","global","ErrorUtils","reportFatalError","safeError","createSharedValue","asyncContext","createContext","createRunInContextFn","frame","func","e","internal","decrementRefCount","proxy","initFrameProcessorPlugin","removeFrameProcessor","setFrameProcessor","result","installFrameProcessorBindings","VisionCameraProxy","getFrameProcessorPlugin","options","console","warn","getLastFrameProcessorCall","frameProcessorFuncId","_global$__frameProces","__frameProcessorRunAtTargetFpsMap","setLastFrameProcessorCall","runAtTargetFps","fps","funcId","__workletHash","targetIntervalMs","now","performance","diffToLastCall","undefined","runAsync","incrementRefCount"],"sourceRoot":"../../src","sources":["FrameProcessorPlugins.ts"],"mappings":"AAEA,SAASA,kBAAkB,QAAQ,eAAe;;AAElD;;AAEA,SAASC,YAAY,QAAQ,sBAAsB;AACnD,SAASC,kBAAkB,QAAQ,aAAa;;AAKhD;AACA;AACA;AACA;;AAgCA,MAAMC,YAAY,GAAG,kFAAkF;AAEvG,IAAIC,WAAW,GAAG,KAAK;AACvB,IAAIC,kBAAkB,GAAG;EAAEC,KAAK,EAAE;AAAM,CAAC;AACzC,IAAIC,iBAAiB,GAAGA,CAACC,MAAa,EAAEC,KAAiB,KAAW;EAClE,MAAM,IAAIT,kBAAkB,CAAC,qCAAqC,EAAEG,YAAY,CAAC;AACnF,CAAC;AACD,IAAIO,YAAY,GAAIC,KAAc,IAAW;EAC3C,MAAMA,KAAK;AACb,CAAC;AAED,IAAI;EACFT,kBAAkB,CAAC,CAAC;;EAEpB;EACA,MAAM;IAAEU;EAAS,CAAC,GAAGC,OAAO,CAAC,4BAA4B,CAAqB;EAE9E,MAAMC,cAAc,GAAGF,QAAQ,CAACG,eAAe,CAAC,CAACC,OAAe,EAAEC,KAAyB,KAAK;IAC9F,MAAMN,KAAK,GAAG,IAAIO,KAAK,CAAC,CAAC;IACzBP,KAAK,CAACK,OAAO,GAAGA,OAAO;IACvBL,KAAK,CAACM,KAAK,GAAGA,KAAK;IACnBN,KAAK,CAACQ,IAAI,G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AAI,EAAE3B,MAAM,CAAC2B,iCAAiC,GAAG,CAAC,CAAC;EACnG3B,MAAM,CAAC2B,iCAAiC,CAACF,oBAAoB,CAAC,GAAGxC,KAAK;AACxE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS4C,cAAcA,CAAIC,GAAW,EAAErB,IAAa,EAAiB;EAC3E,SAAS;;EACT;EACA;EACA,MAAMsB,MAAM,GAAGtB,IAAI,CAACuB,aAAa,IAAI,GAAG;EAExC,MAAMC,gBAAgB,GAAG,IAAI,GAAGH,GAAG,EAAC;EACpC,MAAMI,GAAG,GAAGC,WAAW,CAACD,GAAG,CAAC,CAAC;EAC7B,MAAME,cAAc,GAAGF,GAAG,GAAGV,yBAAyB,CAACO,MAAM,CAAC;EAC9D,IAAIK,cAAc,IAAIH,gBAAgB,EAAE;IACtCL,yBAAyB,CAACG,MAAM,EAAEG,GAAG,CAAC;IACtC;IACA,OAAOzB,IAAI,CAAC,CAAC;EACf;EACA,OAAO4B,SAAS;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAAC9B,KAAY,EAAEC,IAAgB,EAAQ;EAC7D,SAAS;;EAET,IAAIzB,kBAAkB,CAACC,KAAK,EAAE;IAC5B;IACA;IACA;EACF;;EAEA;EACA,MAAM0B,QAAQ,GAAGH,KAAsB;EACvCG,QAAQ,CAAC4B,iBAAiB,CAAC,CAAC;EAE5BvD,kBAAkB,CAACC,KAAK,GAAG,IAAI;;EAE/B;EACAC,iBAAiB,CAACsB,KAAK,EAAEC,IAAI,CAAC;AAChC"} -\ No newline at end of file -+{"version":3,"names":["CameraRuntimeError","CameraModule","assertJSIAvailable","errorMessage","hasWorklets","isAsyncContextBusy","value","runOnAsyncContext","_frame","_func","throwJSError","error","Worklets","require","throwErrorOnJS","createRunInJsFn","message","stack","Error","name","jsEngine","global","ErrorUtils","reportFatalError","safeError","createSharedValue","asyncContext","createContext","createRunInContextFn","frame","func","e","internal","decrementRefCount","proxy","initFrameProcessorPlugin","removeFrameProcessor","setFrameProcessor","result","installFrameProcessorBindings","VisionCameraProxy","getFrameProcessorPlugin","options","console","warn","getLastFrameProcessorCall","frameProcessorFuncId","_global$__frameProces","__frameProcessorRunAtTargetFpsMap","setLastFrameProcessorCall","runAtTargetFps","fps","funcId","__workletHash","targetIntervalMs","now","performance","diffToLastCall","undefined","runAsync","incrementRefCount"],"sourceRoot":"../../src","sources":["FrameProcessorPlugins.ts"],"mappings":"AAEA,SAASA,kBAAkB,QAAQ,eAAe;;AAElD;;AAEA,SAASC,YAAY,QAAQ,sBAAsB;AACnD,SAASC,kBAAkB,QAAQ,aAAa;;AAKhD;AACA;AACA;AACA;;AAgCA,MAAMC,YAAY,GAAG,kFAAkF;AAEvG,IAAIC,WAAW,GAAG,KAAK;AACvB,IAAIC,kBAAkB,GAAG;EAAEC,KAAK,EAAE;AAAM,CAAC;AACzC,IAAIC,iBAAiB,GAAGA,CAACC,MAAa,EAAEC,KAAiB,KAAW;EAClE,MAAM,IAAIT,kBAAkB,CAAC,qCAAqC,EAAEG,YAAY,CAAC;AACnF,CAAC;AACD,IAAIO,YAAY,GAAIC,KAAc,IAAW;EAC3C,MAAMA,KAAK;AACb,CAAC;AAED,IAAI;EACFT,kBAAkB,CAAC,CAAC;;EAEpB;EACA,MAAM;IAAEU;EAAS,CAAC,GAAGC,OAAO,CAAC,4BAA4B,CAAqB;EAE9E,MAAMC,cAAc,GAAGF,QAAQ,CAACG,eAAe,CAAC,CAACC,OAAe,EAAEC,KAAyB,KAAK;IAC9F,MAAMN,KAAK,GAAG,IAAIO,KAAK,CAAC,CAAC;IACzBP,KAAK,CAACK,OAAO,GAAGA,OAAO;IACvBL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IAAIe,MAAM,CAAC2B,iCAAiC,IAAI,IAAI,EAAE3B,MAAM,CAAC2B,iCAAiC,GAAG,CAAC,CAAC;EACnG3B,MAAM,CAAC2B,iCAAiC,CAACF,oBAAoB,CAAC,GAAGxC,KAAK;AACxE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS4C,cAAcA,CAAIC,GAAW,EAAErB,IAAa,EAAiB;EAC3E,SAAS;;EACT;EACA;EACA,MAAMsB,MAAM,GAAGtB,IAAI,CAACuB,aAAa,IAAI,GAAG;EAExC,MAAMC,gBAAgB,GAAG,IAAI,GAAGH,GAAG,EAAC;EACpC,MAAMI,GAAG,GAAGC,WAAW,CAACD,GAAG,CAAC,CAAC;EAC7B,MAAME,cAAc,GAAGF,GAAG,GAAGV,yBAAyB,CAACO,MAAM,CAAC;EAC9D,IAAIK,cAAc,IAAIH,gBAAgB,EAAE;IACtCL,yBAAyB,CAACG,MAAM,EAAEG,GAAG,CAAC;IACtC;IACA,OAAOzB,IAAI,CAAC,CAAC;EACf;EACA,OAAO4B,SAAS;AAClB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAAC9B,KAAY,EAAEC,IAAgB,EAAQ;EAC7D,SAAS;;EAET,IAAIzB,kBAAkB,CAACC,KAAK,EAAE;IAC5B;IACA;IACA;EACF;;EAEA;EACA,MAAM0B,QAAQ,GAAGH,KAAsB;EACvCG,QAAQ,CAAC4B,iBAAiB,CAAC,CAAC;EAE5BvD,kBAAkB,CAACC,KAAK,GAAG,IAAI;;EAE/B;EACAC,iBAAiB,CAACsB,KAAK,EAAEC,IAAI,CAAC;AAChC"} -\ No newline at end of file -diff --git a/node_modules/react-native-vision-camera/lib/module/specs/CameraViewNativeComponent.js b/node_modules/react-native-vision-camera/lib/module/specs/CameraViewNativeComponent.js -new file mode 100644 -index 0000000..9a7c100 ---- /dev/null -+++ b/node_modules/react-native-vision-camera/lib/module/specs/CameraViewNativeComponent.js -@@ -0,0 +1,5 @@ -+/* eslint-disable @typescript-eslint/ban-types */ -+ -+import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; -+export default codegenNativeComponent('CameraView'); -+//# sourceMappingURL=CameraViewNativeComponent.js.map -\ No newline at end of file -diff --git a/node_modules/react-native-vision-camera/lib/module/specs/CameraViewNativeComponent.js.map b/node_modules/react-native-vision-camera/lib/module/specs/CameraViewNativeComponent.js.map -new file mode 100644 -index 0000000..4052494 ---- /dev/null -+++ b/node_modules/react-native-vision-camera/lib/module/specs/CameraViewNativeComponent.js.map -@@ -0,0 +1 @@ -+{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["specs/CameraViewNativeComponent.ts"],"mappings":"AAAA;;AAGA,OAAOA,sBAAsB,MAAM,yDAAyD;AAuF5F,eAAeA,sBAAsB,CAAc,YAAY,CAAC"} -\ No newline at end of file -diff --git a/node_modules/react-native-vision-camera/lib/typescript/Camera.d.ts.map b/node_modules/react-native-vision-camera/lib/typescript/Camera.d.ts.map -index 71cc59b..d6ebc1c 100644 ---- a/node_modules/react-native-vision-camera/lib/typescript/Camera.d.ts.map -+++ b/node_modules/react-native-vision-camera/lib/typescript/Camera.d.ts.map -@@ -1 +1 @@ --{"version":3,"file":"Camera.d.ts","sourceRoot":"","sources":["../../src/Camera.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,OAAO,KAAK,EAAE,WAAW,EAAkC,MAAM,eAAe,CAAA;AAEhF,OAAO,KAAK,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I,CAAC;IAU/C;;;;;;;;;;;;;;;;OAgBG;WACW,yBAAyB,IAAI,YAAY,EAAE;IAGzD;;;;;OAKG;WACW,+BAA+B,CAAC,QAAQ,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,KAAK,IAAI,GAAG,mBAAmB;IAGlH;;;;;OAKG;WACW,yBAAyB,IAAI,sBAAsB;IAGjE;;;;;;OAMG;WACW,6BAA6B,IAAI,sBAAsB;IAGrE;;;;;;OAMG;WACW,2BAA2B,IAAI,sBAAsB;IAGnE;;;;;;;;OAQG;WACiB,uBAAuB,IAAI,OAAO,CAAC,6BAA6B,CAAC;IAOrF;;;;;;;;OAQG;WACiB,2BAA2B,IAAI,OAAO,CAAC,6BAA6B,CAAC;IAOzF;;;;;;;;OAQG;WACiB,yBAAyB,IAAI,OAAO,CAAC,6BAA6B,CAAC;IAUvF,OAAO,CAAC,OAAO;IAcf,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,WAAW;IASnB,gBAAgB;IAChB,kBAAkB,IAAI,IAAI;IAa1B,gBAAgB;IACT,MAAM,IAAI,KAAK,CAAC,SAAS;CAqCjC"} -\ No newline at end of file -diff --git a/node_modules/react-native-vision-camera/lib/typescript/specs/CameraViewNativeComponent.d.ts b/node_modules/react-native-vision-camera/lib/typescript/specs/CameraViewNativeComponent.d.ts -new file mode 100644 -index 0000000..e7717c6 ---- /dev/null -+++ b/node_modules/react-native-vision-camera/lib/typescript/specs/CameraViewNativeComponent.d.ts -@@ -0,0 +1,100 @@ -+/// -+/// -+import type { HostComponent, ViewProps } from 'react-native'; -+import type { DirectEventHandler, Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes'; -+export type VisionCameraComponentType = HostComponent; -+export interface NativeProps extends ViewProps { -+ enableGpuBuffers: boolean; -+ androidPreviewViewType?: string; -+ cameraId: string; -+ enableFrameProcessor: boolean; -+ enableLocation: boolean; -+ enableBufferCompression: boolean; -+ photoQualityBalance: string; -+ isActive: boolean; -+ photo?: boolean; -+ video?: boolean; -+ audio?: boolean; -+ torch?: string; -+ zoom?: Double; -+ exposure?: Double; -+ enableZoomGesture?: boolean; -+ enableFpsGraph?: boolean; -+ resizeMode?: string; -+ format?: Readonly<{ -+ supportsDepthCapture?: boolean; -+ photoHeight: Double; -+ photoWidth: Double; -+ videoHeight: Double; -+ videoWidth: Double; -+ maxISO: Double; -+ minISO: Double; -+ maxFps: Double; -+ minFps: Double; -+ fieldOfView: Double; -+ supportsVideoHDR: boolean; -+ supportsPhotoHDR: boolean; -+ autoFocusSystem: string; -+ videoStabilizationModes: string[]; -+ pixelFormats: string[]; -+ }>; -+ pixelFormat: string; -+ fps?: Int32; -+ videoHdr?: boolean; -+ photoHdr?: boolean; -+ lowLightBoost?: boolean; -+ videoStabilizationMode?: string; -+ enableDepthData?: boolean; -+ enablePortraitEffectsMatteDelivery?: boolean; -+ orientation?: string; -+ codeScannerOptions?: Readonly<{ -+ codeTypes?: string[]; -+ interval?: Double; -+ regionOfInterest?: Readonly<{ -+ x?: Double; -+ y?: Double; -+ width?: Double; -+ height?: Double; -+ }>; -+ }>; -+ onCodeScanned?: DirectEventHandler; -+ }>; -+ frame?: Readonly<{ -+ width: Int32; -+ height: Int32; -+ }>; -+ corners?: Readonly<{ -+ x: Double; -+ y: Double; -+ }>; -+ }>>; -+ onShutter?: DirectEventHandler>; -+ onStarted?: DirectEventHandler>; -+ onStopped?: DirectEventHandler>; -+ onInitialized?: DirectEventHandler>; -+ onError?: DirectEventHandler; -+ }>>; -+ onViewReady: DirectEventHandler>; -+} -+declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType; -+export default _default; -+//# sourceMappingURL=CameraViewNativeComponent.d.ts.map -\ No newline at end of file -diff --git a/node_modules/react-native-vision-camera/lib/typescript/specs/CameraViewNativeComponent.d.ts.map b/node_modules/react-native-vision-camera/lib/typescript/specs/CameraViewNativeComponent.d.ts.map -new file mode 100644 -index 0000000..e47e42f ---- /dev/null -+++ b/node_modules/react-native-vision-camera/lib/typescript/specs/CameraViewNativeComponent.d.ts.map -@@ -0,0 +1 @@ -+{"version":3,"file":"CameraViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/specs/CameraViewNativeComponent.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAGnG,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAEnE,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,cAAc,EAAE,OAAO,CAAC;IACxB,uBAAuB,EAAE,OAAO,CAAC;IACjC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,QAAQ,CAAC;QAChB,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,WA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git a/node_modules/react-native-vision-camera/package.json b/node_modules/react-native-vision-camera/package.json -index 86352fa..7af9577 100644 ---- a/node_modules/react-native-vision-camera/package.json -+++ b/node_modules/react-native-vision-camera/package.json -@@ -166,5 +166,13 @@ - ] - ] - }, -- "packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447" -+ "codegenConfig": { -+ "name": "RNVisioncameraSpec", -+ "type": "all", -+ "jsSrcsDir": "./src/specs", -+ "android": { -+ "javaPackageName": "com.mrousavy.camera" -+ } -+ }, -+ "packageManager": "yarn@1.22.19" - } -diff --git a/node_modules/react-native-vision-camera/src/Camera.tsx b/node_modules/react-native-vision-camera/src/Camera.tsx -index 18733ba..1668322 100644 ---- a/node_modules/react-native-vision-camera/src/Camera.tsx -+++ b/node_modules/react-native-vision-camera/src/Camera.tsx -@@ -1,5 +1,5 @@ - import React from 'react' --import { requireNativeComponent, NativeSyntheticEvent, findNodeHandle, NativeMethods } from 'react-native' -+import { NativeSyntheticEvent, findNodeHandle, NativeMethods } from 'react-native' - import type { CameraDevice } from './CameraDevice' - import type { ErrorWithCause } from './CameraError' - import { CameraCaptureError, CameraRuntimeError, tryParseNativeCameraError, isErrorWithCause } from './CameraError' -@@ -10,9 +10,12 @@ import type { Point } from './Point' - import type { RecordVideoOptions, VideoFile } from './VideoFile' - import { VisionCameraProxy } from './FrameProcessorPlugins' - import { CameraDevices } from './CameraDevices' --import type { EmitterSubscription } from 'react-native' -+import type { EmitterSubscription, requireNativeComponent } from 'react-native' - import type { Code, CodeScanner, CodeScannerFrame } from './CodeScanner' - import { TakeSnapshotOptions } from './Snapshot' -+import NativeCameraViewCodegen from './specs/CameraViewNativeComponent' -+ -+const NativeCameraView = NativeCameraViewCodegen as unknown as ReturnType> - - //#region Types - export type CameraPermissionStatus = 'granted' | 'not-determined' | 'denied' | 'restricted' -@@ -604,10 +607,3 @@ export class Camera extends React.PureComponent { - } - } - //#endregion -- --// requireNativeComponent automatically resolves 'CameraView' to 'CameraViewManager' --const NativeCameraView = requireNativeComponent( -- 'CameraView', -- // @ts-expect-error because the type declarations are kinda wrong, no? -- Camera, --) -diff --git a/node_modules/react-native-vision-camera/src/FrameProcessorPlugins.ts b/node_modules/react-native-vision-camera/src/FrameProcessorPlugins.ts -index aa9d5ee..e7a3fa8 100644 ---- a/node_modules/react-native-vision-camera/src/FrameProcessorPlugins.ts -+++ b/node_modules/react-native-vision-camera/src/FrameProcessorPlugins.ts -@@ -98,7 +98,7 @@ try { - isAsyncContextBusy.value = false - } - }, asyncContext) -- hasWorklets = true -+ // hasWorklets = true - } catch (e) { - // Worklets are not installed, so Frame Processors are disabled. - } -diff --git a/node_modules/react-native-vision-camera/src/specs/CameraViewNativeComponent.ts b/node_modules/react-native-vision-camera/src/specs/CameraViewNativeComponent.ts -new file mode 100644 -index 0000000..70f4572 ---- /dev/null -+++ b/node_modules/react-native-vision-camera/src/specs/CameraViewNativeComponent.ts -@@ -0,0 +1,91 @@ -+/* eslint-disable @typescript-eslint/ban-types */ -+import type { HostComponent, ViewProps } from 'react-native'; -+import type { DirectEventHandler, Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes'; -+import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; -+ -+export type VisionCameraComponentType = HostComponent; -+ -+export interface NativeProps extends ViewProps { -+ enableGpuBuffers: boolean; -+ androidPreviewViewType?: string; -+ cameraId: string; -+ enableFrameProcessor: boolean; -+ enableLocation: boolean; -+ enableBufferCompression: boolean; -+ photoQualityBalance: string; -+ isActive: boolean; -+ photo?: boolean; -+ video?: boolean; -+ audio?: boolean; -+ torch?: string; -+ zoom?: Double; -+ exposure?: Double; -+ enableZoomGesture?: boolean; -+ enableFpsGraph?: boolean; -+ resizeMode?: string; -+ format?: Readonly<{ -+ supportsDepthCapture?: boolean; -+ photoHeight: Double; -+ photoWidth: Double; -+ videoHeight: Double; -+ videoWidth: Double; -+ maxISO: Double; -+ minISO: Double; -+ maxFps: Double; -+ minFps: Double; -+ fieldOfView: Double; -+ supportsVideoHDR: boolean; -+ supportsPhotoHDR: boolean; -+ autoFocusSystem: string; -+ videoStabilizationModes: string[]; -+ pixelFormats: string[]; -+ }>; -+ pixelFormat: string; -+ fps?: Int32; -+ videoHdr?: boolean; // not sure why was int on native side -+ photoHdr?: boolean; // not sure why was int on native side -+ lowLightBoost?: boolean; // same -+ videoStabilizationMode?: string; -+ enableDepthData?: boolean; -+ enablePortraitEffectsMatteDelivery?: boolean; -+ orientation?: string; -+ codeScannerOptions?: Readonly<{ -+ codeTypes?: string[]; -+ interval?: Double; -+ regionOfInterest?: Readonly<{ -+ x?: Double, -+ y?: Double, -+ width?: Double, -+ height?: Double, -+ }>; -+ }>; -+ onCodeScanned?: DirectEventHandler< -+ Readonly<{ -+ codes?: Readonly<{ -+ type?: string; -+ value?: string; -+ frame?: Readonly<{ x: Double, y: Double, width: Double, height: Double}>; -+ }>; -+ frame?: Readonly<{ width: Int32, height: Int32 }>; -+ corners?: Readonly<{ x: Double, y: Double }>; -+ }> -+ >; -+ onShutter?: DirectEventHandler< -+ Readonly<{ -+ type: string; -+ }> -+ >; -+ onStarted?: DirectEventHandler>; -+ onStopped?: DirectEventHandler>; -+ onInitialized?: DirectEventHandler>; -+ onError?: DirectEventHandler< -+ Readonly<{ -+ code: string; -+ message: string; -+ cause: Readonly<{ code: string; domain: string; message: string; details: string }>; -+ }> -+ >; -+ onViewReady: DirectEventHandler>; -+} -+ -+export default codegenNativeComponent('CameraView'); diff --git a/patches/react-native-vision-camera+4.0.0-beta.13+002+native-stack-unmount-recycle-camera-session.patch b/patches/react-native-vision-camera+4.0.0-beta.13+002+native-stack-unmount-recycle-camera-session.patch deleted file mode 100644 index ac9bda68f9d9..000000000000 --- a/patches/react-native-vision-camera+4.0.0-beta.13+002+native-stack-unmount-recycle-camera-session.patch +++ /dev/null @@ -1,55 +0,0 @@ -diff --git a/node_modules/react-native-vision-camera/ios/RNCameraView.mm b/node_modules/react-native-vision-camera/ios/RNCameraView.mm -index b90427e..0be4171 100644 ---- a/node_modules/react-native-vision-camera/ios/RNCameraView.mm -+++ b/node_modules/react-native-vision-camera/ios/RNCameraView.mm -@@ -34,26 +34,43 @@ + (ComponentDescriptorProvider)componentDescriptorProvider - return concreteComponentDescriptorProvider(); - } - --- (instancetype)initWithFrame:(CGRect)frame --{ -- self = [super initWithFrame:frame]; --if (self) { -- static const auto defaultProps = std::make_shared(); -+- (void) initCamera { -+ static const auto defaultProps = std::make_shared(); - _props = defaultProps; - -- //The remaining part of the initializer is standard Objective-C code to create views and layout them with AutoLayout. Here we can change whatever we want to. -+ // The remaining part of the initializer is standard bjective-C code to create views and layout them with utoLayout. Here we can change whatever we want to. - _view = [[CameraView alloc] init]; - _view.delegate = self; - - self.contentView = _view; - } - --return self; -+- (instancetype)initWithFrame:(CGRect)frame -+{ -+ self = [super initWithFrame:frame]; -+ if (self) { -+ [self initCamera]; -+ } -+ -+ return self; -+} -+ -+- (void) prepareForRecycle { -+ [super prepareForRecycle]; -+ -+ self.contentView = _view; -+ _view.delegate = nil; -+ _view = nil; -+ self.contentView = nil; - } - - // why we need this func -> https://reactnative.dev/docs/next/the-new-architecture/pillars-fabric-components#write-the-native-ios-code - - (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &)oldProps - { -+ if (_view == nil) { -+ [self initCamera]; -+ } -+ - const auto &newViewProps = *std::static_pointer_cast(props); - const auto &oldViewProps = *std::static_pointer_cast(_props); -