
> echo Attempting build for MemerGamer-GrocARy with Node 18 and jdk 17
Attempting build for MemerGamer-GrocARy with Node 18 and jdk 17

> docker run --rm -v /home/ubuntu/storage/extracted/MemerGamer-GrocARy/GrocARy-40dcdc04ce813703b939cf8d7b4eff7a5520cb9c:/source:ro -v /home/ubuntu/BachelorsThesis/scripts/RN/output/MemerGamer-GrocARy:/output -v /home/ubuntu/.npm:/root/.npm react-android:18-jdk17 bash -c 
                set -e

                cp -r /source/. /app &&                 cd /app && 
                # ---- install deps (yarn or npm) ----
                if [ -f yarn.lock ]; then
                    yarn install;
                else
                    npm install --ignore-scripts;
                fi && 
                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----
                if [ ! -f google-services.json ]; then                     python3 -c "import json; open('google-services.json','w').write(json.dumps({'project_info':{'project_number':'000000000000','project_id':'stub','storage_bucket':'stub.appspot.com'},'client':[{'client_info':{'mobilesdk_app_id':'1:000000000000:android:0000000000000000','android_client_info':{'package_name':'com.stub'}},'oauth_client':[],'api_key':[{'current_key':'stub'}],'services':{'appinvite_service':{'other_platform_oauth_client':[]}}}],'configuration_version':'1'}))" 2>/dev/null || true;                 fi && 
                # ---- detect expo ----
                if grep -q '"expo"' package.json && [ ! -d android ]; then
                    echo "Expo project detected";
                    CI=1 npx --yes expo prebuild --platform android
                fi && 
                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && 
                chmod +x gradlew && 
                # ---- inject fallback repositories via Gradle init script ----
                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo 'gradle.beforeProject {project ->' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.buildscript.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '}' >> $GRADLE_USER_HOME/init.d/repos.gradle && 
                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----
                sed -i 's/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\/.bin\/react-native config")/' settings.gradle 2>/dev/null || true && 
                # ---- clean gradle ----
                (./gradlew clean || true) && 
                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----
                ./gradlew :app:dependencies --configuration debugCompileClasspath --no-daemon > /dev/null 2>&1 || true && 
                # ---- enable ABI splits ----
                if grep -q 'splits' app/build.gradle 2>/dev/null; then                     sed -i 's/enable false/enable true/' app/build.gradle || true;                 else                     sed -i '/^android[[:space:]]*{/a\    splits {\n        abi {\n            reset()\n            enable true\n            universalApk false\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\n        }\n    }' app/build.gradle || true;                 fi && 
                # ---- build debug apk ----
                ./gradlew assembleDebug --no-daemon || exit 1 && 
                APK_PATH="app/build/outputs/apk/debug"

                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then
                    echo "ERROR: APK not generated"
                    exit 1
                fi
                # ---- copy output ----
                cp app/build/outputs/apk/debug/*.apk /output/

                # ---- copy TPL metadata ----
                [ -f ../package.json ] && cp ../package.json /output/ || true
                [ -f ../package-lock.json ] && cp ../package-lock.json /output/ || true
                [ -f ../yarn.lock ] && cp ../yarn.lock /output/ || true
                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/ || true
                [ -f app/build.gradle ] && cp app/build.gradle /output/android-build.gradle || true
                [ -f build.gradle ] && cp build.gradle /output/root-build.gradle || true
                [ -f build.gradle.kts ] && cp build.gradle.kts /output/root-build.gradle.kts || true
                [ -f settings.gradle ] && cp settings.gradle /output/ || true
                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/ || true
                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/ || true
                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true
                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true
                mkdir -p /output/libs
                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                    
npm warn deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported

added 940 packages, and audited 941 packages in 36s

141 packages are looking for funding
  run `npm fund` for details

40 vulnerabilities (4 low, 14 moderate, 20 high, 2 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
Downloading https://services.gradle.org/distributions/gradle-8.7-all.zip
.....................10%.....................20%......................30%.....................40%......................50%.....................60%.....................70%......................80%.....................90%......................100%

Welcome to Gradle 8.7!

Here are the highlights of this release:
 - Compiling and testing with Java 22
 - Cacheable Groovy script compilation
 - New methods in lazy collection properties

For more details see https://docs.gradle.org/8.7/release-notes.html

To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.7/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :gradle-plugin:pluginDescriptors
> Task :gradle-plugin:processResources
> Task :gradle-plugin:compileKotlin
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:classes
> Task :gradle-plugin:jar
> Task :gradle-plugin:inspectClassesForKotlinIC

> Configure project :react-native-vision-camera
[VisionCamera] Thank you for using VisionCamera ??
[VisionCamera] If you enjoy using VisionCamera, please consider sponsoring this project: https://github.com/sponsors/mrousavy
[VisionCamera] node_modules found at /app/node_modules
[VisionCamera] VisionCamera_enableFrameProcessors is set to true!
[VisionCamera] react-native-worklets-core found, Frame Processors are enabled!
[VisionCamera] VisionCamera_enableCodeScanner is set to true!
Checking the license for package NDK (Side by side) 25.1.8937393 in /opt/android/licenses
License for package NDK (Side by side) 25.1.8937393 accepted.
Preparing "Install NDK (Side by side) 25.1.8937393 v.25.1.8937393".
"Install NDK (Side by side) 25.1.8937393 v.25.1.8937393" ready.
Installing NDK (Side by side) 25.1.8937393 in /opt/android/ndk/25.1.8937393
"Install NDK (Side by side) 25.1.8937393 v.25.1.8937393" complete.
"Install NDK (Side by side) 25.1.8937393 v.25.1.8937393" finished.

> Task :app:clean UP-TO-DATE
> Task :react-native-community_blur:clean UP-TO-DATE
> Task :react-native-vision-camera:deleteCmakeCache
> Task :react-native-vision-camera:externalNativeBuildCleanDebug
> Task :react-native-vision-camera:externalNativeBuildCleanRelease
> Task :react-native-vision-camera:clean UP-TO-DATE
> Task :react-native-worklets-core:deleteCmakeCache
> Task :react-native-worklets-core:externalNativeBuildCleanDebug
> Task :react-native-worklets-core:externalNativeBuildCleanRelease
> Task :react-native-worklets-core:clean

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 3m 17s
15 actionable tasks: 12 executed, 3 up-to-date
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.7/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :gradle-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:classes UP-TO-DATE
> Task :gradle-plugin:jar UP-TO-DATE
> Task :gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE

> Configure project :react-native-vision-camera
[VisionCamera] Thank you for using VisionCamera ??
[VisionCamera] If you enjoy using VisionCamera, please consider sponsoring this project: https://github.com/sponsors/mrousavy
[VisionCamera] node_modules found at /app/node_modules
[VisionCamera] VisionCamera_enableFrameProcessors is set to true!
[VisionCamera] react-native-worklets-core found, Frame Processors are enabled!
[VisionCamera] VisionCamera_enableCodeScanner is set to true!
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable

> Task :app:generateCodegenSchemaFromJavaScript SKIPPED
> Task :app:generateCodegenArtifactsFromSchema SKIPPED
> Task :app:generatePackageList
> Task :app:preBuild
> Task :app:preDebugBuild
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:checkKotlinGradlePluginConfigurationErrors
> Task :app:generateDebugBuildConfig
> Task :react-native-community_blur:preBuild UP-TO-DATE
> Task :react-native-community_blur:preDebugBuild UP-TO-DATE
> Task :react-native-community_blur:writeDebugAarMetadata
> Task :react-native-vision-camera:prepareHeaders
> Task :react-native-vision-camera:preBuild
> Task :react-native-vision-camera:preDebugBuild
> Task :react-native-vision-camera:writeDebugAarMetadata
> Task :react-native-worklets-core:prepareHeaders
> Task :react-native-worklets-core:preBuild
> Task :react-native-worklets-core:preDebugBuild
> Task :react-native-worklets-core:writeDebugAarMetadata
> Task :app:checkDebugAarMetadata
> Task :app:generateDebugResValues
> Task :react-native-community_blur:generateDebugResValues
> Task :react-native-community_blur:generateDebugResources
> Task :react-native-community_blur:packageDebugResources
> Task :react-native-vision-camera:generateDebugResValues
> Task :react-native-vision-camera:generateDebugResources
> Task :react-native-vision-camera:packageDebugResources
> Task :react-native-worklets-core:generateDebugResValues
> Task :react-native-worklets-core:generateDebugResources
> Task :react-native-worklets-core:packageDebugResources
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources
> Task :app:packageDebugResources
> Task :app:mergeDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :react-native-community_blur:extractDeepLinksDebug
> Task :react-native-vision-camera:extractDeepLinksDebug
> Task :react-native-worklets-core:extractDeepLinksDebug
> Task :app:parseDebugLocalResources

> Task :react-native-community_blur:processDebugManifest
package="com.reactnativecommunity.blurview" found in source AndroidManifest.xml: /app/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.reactnativecommunity.blurview" from the source AndroidManifest.xml: /app/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.

> Task :react-native-vision-camera:processDebugManifest

> Task :react-native-worklets-core:processDebugManifest
package="com.worklets" found in source AndroidManifest.xml: /app/node_modules/react-native-worklets-core/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.worklets" from the source AndroidManifest.xml: /app/node_modules/react-native-worklets-core/android/src/main/AndroidManifest.xml.

> Task :react-native-community_blur:compileDebugLibraryResources

> Task :app:processDebugMainManifest
/app/android/app/src/debug/AndroidManifest.xml Warning:
	uses-feature#android.hardware.camera.autofocus@tools:required was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present
/app/android/app/src/debug/AndroidManifest.xml Warning:
	uses-feature#0x00030000@tools:required was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present

> Task :app:processDebugManifest
> Task :react-native-vision-camera:compileDebugLibraryResources
> Task :app:processDebugManifestForPackage
> Task :react-native-community_blur:parseDebugLocalResources
> Task :react-native-vision-camera:parseDebugLocalResources
> Task :react-native-worklets-core:compileDebugLibraryResources
> Task :react-native-community_blur:generateDebugBuildConfig
> Task :react-native-vision-camera:checkKotlinGradlePluginConfigurationErrors
> Task :react-native-worklets-core:parseDebugLocalResources
> Task :react-native-vision-camera:generateDebugRFile
> Task :react-native-community_blur:generateDebugRFile
> Task :react-native-community_blur:javaPreCompileDebug
> Task :react-native-vision-camera:generateDebugBuildConfig
> Task :react-native-worklets-core:generateDebugRFile
> Task :react-native-community_blur:compileDebugJavaWithJavac
> Task :react-native-worklets-core:generateDebugBuildConfig
> Task :react-native-worklets-core:javaPreCompileDebug
> Task :react-native-vision-camera:javaPreCompileDebug
> Task :react-native-community_blur:bundleLibCompileToJarDebug
> Task :app:processDebugResources

> Task :react-native-worklets-core:compileDebugJavaWithJavac

> Task :react-native-worklets-core:bundleLibCompileToJarDebug
> Task :app:javaPreCompileDebugNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :react-native-community_blur:mergeDebugShaders
> Task :react-native-community_blur:compileDebugShaders NO-SOURCE
> Task :react-native-community_blur:generateDebugAssets UP-TO-DATE
> Task :react-native-community_blur:packageDebugAssets
> Task :react-native-vision-camera:mergeDebugShaders
> Task :react-native-vision-camera:compileDebugShaders NO-SOURCE
> Task :react-native-vision-camera:generateDebugAssets UP-TO-DATE
> Task :react-native-vision-camera:packageDebugAssets
> Task :react-native-worklets-core:mergeDebugShaders
> Task :react-native-worklets-core:compileDebugShaders NO-SOURCE
> Task :react-native-worklets-core:generateDebugAssets UP-TO-DATE
> Task :react-native-worklets-core:packageDebugAssets
> Task :app:mergeDebugAssets
> Task :react-native-community_blur:bundleLibRuntimeToJarDebug
> Task :app:compressDebugAssets
> Task :react-native-worklets-core:bundleLibRuntimeToJarDebug
> Task :app:desugarDebugFileDependencies
> Task :react-native-community_blur:processDebugJavaRes NO-SOURCE
> Task :react-native-worklets-core:processDebugJavaRes NO-SOURCE
> Task :react-native-community_blur:bundleLibRuntimeToDirDebug
> Task :react-native-worklets-core:bundleLibRuntimeToDirDebug
> Task :app:mergeDebugJniLibFolders
> Task :react-native-community_blur:mergeDebugJniLibFolders
> Task :react-native-community_blur:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-community_blur:copyDebugJniLibsProjectOnly
> Task :app:checkDebugDuplicateClasses

> Task :react-native-worklets-core:configureCMakeDebug[arm64-v8a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:compileDebugKotlin
> Task :app:mergeExtDexDebug

> Task :react-native-vision-camera:compileDebugKotlin
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/MetadataProvider.kt:44:25 'requestSingleUpdate(String, LocationListener, Looper?): Unit' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:71:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:96:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:121:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt:13:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt:37:2 'ReactModule' is deprecated. Deprecated in Java

> Task :react-native-vision-camera:compileDebugJavaWithJavac
> Task :react-native-vision-camera:bundleLibCompileToJarDebug
> Task :react-native-vision-camera:bundleLibRuntimeToJarDebug
> Task :react-native-vision-camera:processDebugJavaRes
> Task :react-native-vision-camera:bundleLibRuntimeToDirDebug
> Task :app:compileDebugKotlin
> Task :react-native-worklets-core:buildCMakeDebug[arm64-v8a]
> Task :app:compileDebugJavaWithJavac
> Task :app:dexBuilderDebug
> Task :app:processDebugJavaRes
> Task :app:mergeDebugGlobalSynthetics
> Task :app:mergeProjectDexDebug
> Task :app:mergeLibDexDebug
> Task :app:mergeDebugJavaResource

> Task :react-native-worklets-core:configureCMakeDebug[armeabi-v7a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeDebug[armeabi-v7a]
C/C++: ninja: Entering directory `/app/node_modules/react-native-worklets-core/android/.cxx/Debug/30q1bv63/armeabi-v7a'
C/C++: In file included from /app/node_modules/react-native-worklets-core/cpp/WKTJsiWorkletContext.cpp:15:
C/C++: /app/node_modules/react-native-worklets-core/android/../cpp/decorators/WKTJsiSetImmediateDecorator.h:85:53: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
C/C++:                   printf("ctx %lu: setImmediate\n", context->getContextId());
C/C++:                               ~~~                   ^~~~~~~~~~~~~~~~~~~~~~~
C/C++:                               %zu
C/C++: 1 warning generated.

> Task :react-native-worklets-core:configureCMakeDebug[x86]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeDebug[x86]
C/C++: ninja: Entering directory `/app/node_modules/react-native-worklets-core/android/.cxx/Debug/30q1bv63/x86'
C/C++: In file included from /app/node_modules/react-native-worklets-core/cpp/WKTJsiWorkletContext.cpp:15:
C/C++: /app/node_modules/react-native-worklets-core/android/../cpp/decorators/WKTJsiSetImmediateDecorator.h:85:53: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
C/C++:                   printf("ctx %lu: setImmediate\n", context->getContextId());
C/C++:                               ~~~                   ^~~~~~~~~~~~~~~~~~~~~~~
C/C++:                               %zu
C/C++: 1 warning generated.

> Task :react-native-worklets-core:configureCMakeDebug[x86_64]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeDebug[x86_64]
> Task :react-native-worklets-core:externalNativeBuildDebug
> Task :react-native-worklets-core:generateJsonModelDebug
> Task :react-native-worklets-core:prefabDebugConfigurePackage

> Task :react-native-vision-camera:configureCMakeDebug[arm64-v8a]
C/C++: VisionCamera: Frame Processors: ON!
C/C++: VisionCamera: Linking react-native-worklets...
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:prefabDebugPackage
> Task :react-native-vision-camera:buildCMakeDebug[arm64-v8a]

> Task :react-native-vision-camera:configureCMakeDebug[armeabi-v7a]
C/C++: VisionCamera: Frame Processors: ON!
C/C++: VisionCamera: Linking react-native-worklets...
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeDebug[armeabi-v7a]

> Task :react-native-vision-camera:configureCMakeDebug[x86]
C/C++: VisionCamera: Frame Processors: ON!
C/C++: VisionCamera: Linking react-native-worklets...
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeDebug[x86]

> Task :react-native-vision-camera:configureCMakeDebug[x86_64]
C/C++: VisionCamera: Frame Processors: ON!
C/C++: VisionCamera: Linking react-native-worklets...
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeDebug[x86_64]
> Task :react-native-vision-camera:mergeDebugJniLibFolders
> Task :react-native-worklets-core:mergeDebugJniLibFolders
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :react-native-community_blur:stripDebugDebugSymbols NO-SOURCE
> Task :react-native-community_blur:copyDebugJniLibsProjectAndLocalJars
> Task :react-native-worklets-core:mergeDebugNativeLibs
> Task :react-native-vision-camera:mergeDebugNativeLibs
> Task :react-native-community_blur:extractDebugAnnotations
> Task :react-native-community_blur:extractDeepLinksForAarDebug
> Task :react-native-community_blur:mergeDebugGeneratedProguardFiles
> Task :react-native-community_blur:mergeDebugConsumerProguardFiles
> Task :react-native-community_blur:prepareDebugArtProfile
> Task :react-native-community_blur:prepareLintJarForPublish
> Task :react-native-community_blur:mergeDebugJavaResource
> Task :react-native-community_blur:syncDebugLibJars
> Task :react-native-community_blur:bundleDebugAar
> Task :react-native-community_blur:assembleDebug
> Task :react-native-vision-camera:extractDebugAnnotations
> Task :react-native-worklets-core:copyDebugJniLibsProjectOnly
> Task :react-native-vision-camera:copyDebugJniLibsProjectOnly
> Task :react-native-vision-camera:stripDebugDebugSymbols
> Task :react-native-vision-camera:extractDeepLinksForAarDebug
> Task :react-native-vision-camera:mergeDebugGeneratedProguardFiles
> Task :react-native-vision-camera:mergeDebugConsumerProguardFiles
> Task :react-native-vision-camera:copyDebugJniLibsProjectAndLocalJars
> Task :react-native-vision-camera:externalNativeBuildDebug
> Task :react-native-vision-camera:generateJsonModelDebug
> Task :react-native-vision-camera:prefabDebugConfigurePackage
> Task :react-native-vision-camera:prefabDebugPackage
> Task :react-native-vision-camera:prepareDebugArtProfile
> Task :react-native-vision-camera:prepareLintJarForPublish
> Task :react-native-vision-camera:mergeDebugJavaResource
> Task :react-native-worklets-core:extractDebugAnnotations
> Task :react-native-worklets-core:stripDebugDebugSymbols
> Task :react-native-vision-camera:syncDebugLibJars
> Task :app:mergeDebugNativeLibs
> Task :react-native-vision-camera:bundleDebugAar
> Task :react-native-vision-camera:assembleDebug
> Task :react-native-worklets-core:extractDeepLinksForAarDebug
> Task :react-native-worklets-core:mergeDebugGeneratedProguardFiles
> Task :react-native-worklets-core:mergeDebugConsumerProguardFiles
> Task :react-native-worklets-core:prepareDebugArtProfile
> Task :react-native-worklets-core:prepareLintJarForPublish
> Task :react-native-worklets-core:mergeDebugJavaResource
> Task :react-native-worklets-core:syncDebugLibJars
> Task :react-native-worklets-core:copyDebugJniLibsProjectAndLocalJars
> Task :app:stripDebugDebugSymbols
> Task :react-native-worklets-core:bundleDebugAar
> Task :react-native-worklets-core:assembleDebug
> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:assembleDebug

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 4m 34s
162 actionable tasks: 157 executed, 5 up-to-date

> docker run --rm -v /home/ubuntu/storage/extracted/MemerGamer-GrocARy/GrocARy-40dcdc04ce813703b939cf8d7b4eff7a5520cb9c:/source:ro -v /home/ubuntu/BachelorsThesis/scripts/RN/output/MemerGamer-GrocARy:/output -v /home/ubuntu/.npm:/root/.npm react-android:18-jdk17 bash -c 
                set -e

                cp -r /source/. /app &&                 cd /app && 
                # ---- install deps (yarn or npm) ----
                if [ -f yarn.lock ]; then
                    yarn install;
                else
                    npm install --ignore-scripts;
                fi && 
                # ---- stub missing parent package.json (monorepo metro configs) ----
                [ ! -f ../package.json ] && cp package.json ../package.json 2>/dev/null || true && 
                # ---- patch toReversed (Node <20 compat) ----
                find node_modules -name "loadConfig.js" -path "*/metro-config/*" -exec sed -i 's/\.toReversed()/.slice().reverse()/g' {} \; 2>/dev/null || true && 
                # ---- patch missing expo/AppEntry ----
                if grep -q '"main".*expo/AppEntry' package.json 2>/dev/null &&                    [ ! -f node_modules/expo/AppEntry.js ] && [ ! -f node_modules/expo/AppEntry.ts ]; then                     node -e "const fs=require('fs'); const p=JSON.parse(fs.readFileSync('package.json','utf8')); if(fs.existsSync('index.js')){p.main='index.js'; fs.writeFileSync('package.json',JSON.stringify(p,null,2));}" 2>/dev/null || true;                 fi && 
                # ---- patch broken metro config (ESM-only, null-returning, or monorepo-only) ----
                # NOTE: do NOT replace configs that merely use expo/metro-config — those carry
                # Expo-specific resolver paths (watchFolders, extraNodeModules) needed for
                # packages like @react-native-masked-view/masked-view to resolve.
                if grep -q 'react-native-monorepo-config' metro.config.js 2>/dev/null ||                    ! node -e "const c=require('./metro.config.js'); if(!c||typeof c!=='object') process.exit(1);" 2>/dev/null; then                     if [ -d node_modules/@react-native/metro-config ]; then                         printf 'const {getDefaultConfig, mergeConfig} = require("@react-native/metro-config");
module.exports = mergeConfig(getDefaultConfig(__dirname), {});
' > metro.config.js;                     else                         printf 'const {getDefaultConfig} = require("metro-config");
module.exports = getDefaultConfig(__dirname);
' > metro.config.js;                     fi;                 fi && 
                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----
                if [ ! -f google-services.json ]; then                     python3 -c "import json; open('google-services.json','w').write(json.dumps({'project_info':{'project_number':'000000000000','project_id':'stub','storage_bucket':'stub.appspot.com'},'client':[{'client_info':{'mobilesdk_app_id':'1:000000000000:android:0000000000000000','android_client_info':{'package_name':'com.stub'}},'oauth_client':[],'api_key':[{'current_key':'stub'}],'services':{'appinvite_service':{'other_platform_oauth_client':[]}}}],'configuration_version':'1'}))" 2>/dev/null || true;                 fi && 
                # ---- detect expo ----
                if grep -q '"expo"' package.json && [ ! -d android ]; then
                    echo "Expo project detected";
                    CI=1 npx --yes expo prebuild --platform android
                fi && 
                # ---- fix expo/metro-config: serializer + Flow transformIgnorePatterns ----
                # Runs AFTER prebuild because prebuild generates metro.config.js for managed-workflow
                # projects — patching before prebuild would be overwritten by the generated file.
                # Fix 1: remove customSerializer that returns JS string instead of JSON
                #   ("var __BUND..." → "Serializer did not return expected format").
                # Fix 2: add transformIgnorePatterns so expo/src/Expo.ts goes through Babel
                #   (default pattern excludes all node_modules → raw Flow types → SyntaxError).
                if [ -f metro.config.js ] && [ -d node_modules/expo ] &&                    ( grep -q 'expo/metro-config\|@expo/metro-config' metro.config.js 2>/dev/null ||                      ! grep -q 'transformIgnorePatterns' metro.config.js 2>/dev/null ); then                     cp metro.config.js metro.config.orig.js &&                     printf 'const c=require("./metro.config.orig.js");const r=Object.assign({},c);if(r.serializer){r.serializer=Object.assign({},r.serializer);delete r.serializer.customSerializer;}r.transformer=Object.assign({},r.transformer||{});if(!r.transformer.transformIgnorePatterns){r.transformer.transformIgnorePatterns=["node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|react-clone-referenced-element|@react-navigation|native-base)/)"];}module.exports=r;\n' > metro.config.js;                 fi && 
                # ---- stub missing metro watchFolders paths ----
                mkdir -p /src 2>/dev/null || true && 
                # ---- fix babel configs that use react-native-builder-bob ----
                # builder-bob is a library-dev tool; its getConfig() throws "Couldn't determine the source
                # directory" when built outside the library's own workspace. Replace with a standard preset.
                if grep -ql 'react-native-builder-bob' babel.config.js babel.config.json .babelrc .babelrc.js 2>/dev/null; then                     if [ -d node_modules/babel-preset-expo ]; then                         printf 'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};
' > babel.config.js;                     elif [ -d node_modules/@react-native/babel-preset ]; then                         printf 'module.exports={presets:["module:@react-native/babel-preset"]};' > babel.config.js;                     else                         printf 'module.exports={presets:["module:metro-react-native-babel-preset"]};' > babel.config.js;                     fi;                 fi && 
                # ---- ensure TypeScript babel support (fixes 'interface' SyntaxError in metro bundling) ----
                if [ -d node_modules/babel-preset-expo ]; then                     grep -ql "expo\|typescript" babel.config.js .babelrc .babelrc.js babel.config.json 2>/dev/null ||                     printf 'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};
' > babel.config.js;                 fi && 
                # ---- stub missing-asset-registry-path (Metro virtual module not resolved in release) ----
                # Metro normally aliases this to @react-native/assets-registry/registry at bundle time.
                # When that alias is missing, any PNG asset in node_modules triggers "Unable to resolve module".
                if [ ! -d node_modules/missing-asset-registry-path ]; then                     mkdir -p node_modules/missing-asset-registry-path &&                     if [ -f node_modules/@react-native/assets-registry/registry.js ]; then                         printf 'module.exports=require("@react-native/assets-registry/registry");' > node_modules/missing-asset-registry-path/index.js;                     else                         printf 'module.exports={registerAsset:function(){return 0;},getAssetByID:function(){return null;}};' > node_modules/missing-asset-registry-path/index.js;                     fi;                 fi && 
                # ---- stub @react-native-masked-view/masked-view if missing ----
                # Required by @react-navigation/elements but often not installed as a direct dependency.
                if [ ! -d node_modules/@react-native-masked-view/masked-view ]; then                     mkdir -p node_modules/@react-native-masked-view/masked-view &&                     printf '{"name":"@react-native-masked-view/masked-view","version":"0.1.11","main":"index.js"}' > node_modules/@react-native-masked-view/masked-view/package.json &&                     printf 'const React=require("react");const {View}=require("react-native");function MaskedView(p){return React.createElement(View,p.style?{style:p.style}:{},p.children);}module.exports=MaskedView;module.exports.default=MaskedView;' > node_modules/@react-native-masked-view/masked-view/index.js;                 fi && 
                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && 
                chmod +x gradlew && 
                # ---- inject fallback repositories via Gradle init script ----
                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo 'gradle.beforeProject {project ->' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.buildscript.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '}' >> $GRADLE_USER_HOME/init.d/repos.gradle && 
                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----
                sed -i 's/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\/.bin\/react-native config")/' settings.gradle 2>/dev/null || true && 
                # ---- disable Sentry source map upload (no credentials in CI) ----
                export SENTRY_DISABLE_AUTO_UPLOAD=true &&                 echo "sentryUploadEnabled=false" >> gradle.properties 2>/dev/null || true && 
                # ---- enable ABI splits ----
                if grep -q 'splits' app/build.gradle 2>/dev/null; then                     sed -i 's/enable false/enable true/' app/build.gradle || true;                 else                     sed -i '/^android[[:space:]]*{/a\    splits {\n        abi {\n            reset()\n            enable true\n            universalApk false\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\n        }\n    }' app/build.gradle || true;                 fi && 
                # ---- enable R8 ----
                sed -i 's/enableProguardInReleaseBuilds = false/enableProguardInReleaseBuilds = true/' app/build.gradle || true && 
                # ---- sign release with debug key ----
                sed -i '/buildTypes/,/}/s/release {/release {
            signingConfig signingConfigs.debug/' app/build.gradle || true && 
                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----
                ./gradlew :app:dependencies --configuration releaseCompileClasspath --no-daemon > /dev/null 2>&1 || true && 
                # ---- build release apk ----
                ./gradlew assembleRelease --no-daemon || exit 1 &&                     
                APK_PATH="app/build/outputs/apk/release"

                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then
                    echo "ERROR: APK not generated"
                    exit 1
                fi

                # ---- copy output ----
                cp app/build/outputs/apk/release/*.apk /output/r8/

                # ---- copy TPL metadata ----
                [ -f ../package.json ] && cp ../package.json /output/r8/ || true
                [ -f ../package-lock.json ] && cp ../package-lock.json /output/r8/ || true
                [ -f ../yarn.lock ] && cp ../yarn.lock /output/r8/ || true
                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/r8/ || true
                [ -f app/build.gradle ] && cp app/build.gradle /output/r8/android-build.gradle || true
                [ -f build.gradle ] && cp build.gradle /output/r8/root-build.gradle || true
                [ -f build.gradle.kts ] && cp build.gradle.kts /output/r8/root-build.gradle.kts || true
                [ -f settings.gradle ] && cp settings.gradle /output/r8/ || true
                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/r8/ || true
                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/r8/ || true
                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true
                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true
                mkdir -p /output/r8/libs
                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true
                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true
                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true
                    
npm warn deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported

added 940 packages, and audited 941 packages in 33s

141 packages are looking for funding
  run `npm fund` for details

40 vulnerabilities (4 low, 14 moderate, 20 high, 2 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
sed: -e expression #1, char 37: unterminated `s' command
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.7/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :gradle-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:classes UP-TO-DATE
> Task :gradle-plugin:jar UP-TO-DATE
> Task :gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE

> Configure project :react-native-vision-camera
[VisionCamera] Thank you for using VisionCamera ??
[VisionCamera] If you enjoy using VisionCamera, please consider sponsoring this project: https://github.com/sponsors/mrousavy
[VisionCamera] node_modules found at /app/node_modules
[VisionCamera] VisionCamera_enableFrameProcessors is set to false!
[VisionCamera] react-native-worklets-core found, Frame Processors are disabled!
[VisionCamera] VisionCamera_enableCodeScanner is set to true!
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable

> Task :app:buildKotlinToolingMetadata
> Task :app:checkKotlinGradlePluginConfigurationErrors
> Task :app:generateCodegenSchemaFromJavaScript SKIPPED
> Task :app:generateCodegenArtifactsFromSchema SKIPPED
> Task :app:generatePackageList
> Task :app:preBuild
> Task :app:preReleaseBuild
> Task :app:generateReleaseBuildConfig
> Task :react-native-community_blur:preBuild UP-TO-DATE
> Task :react-native-community_blur:preReleaseBuild UP-TO-DATE
> Task :react-native-community_blur:writeReleaseAarMetadata
> Task :react-native-vision-camera:prepareHeaders
> Task :react-native-vision-camera:preBuild
> Task :react-native-vision-camera:preReleaseBuild
> Task :react-native-vision-camera:writeReleaseAarMetadata
> Task :react-native-worklets-core:prepareHeaders
> Task :react-native-worklets-core:preBuild
> Task :react-native-worklets-core:preReleaseBuild
> Task :react-native-worklets-core:writeReleaseAarMetadata

> Task :app:createBundleReleaseJsAndAssets
debug Reading Metro config from /app/metro.config.js
warning: the transform cache was reset.
                Welcome to Metro v0.80.5
              Fast - Scalable - Integrated


info Writing bundle output to:, /app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
info Writing sourcemap output to:, /app/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 5 asset files
info Done copying assets
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:2600:18: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
          typeof DebuggerInternal !== 'undefined' &&
                 ^~~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:6258:7: warning: the variable "setTimeout" was not declared in function "logCapturedError"
      setTimeout(function () {
      ^~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:4227:108: warning: the variable "nativeFabricUIManager" was not declared in function "onChange"
...lInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.sta...
                              ^~~~~~~~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:4839:21: warning: the variable "clearTimeout" was not declared in anonymous function " 114#"
    cancelTimeout = clearTimeout;
                    ^~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:8589:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in anonymous function " 114#"
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:10958:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
    setImmediate(function () {
    ^~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15242:12: warning: the variable "fetch" was not declared in anonymous function " 351#"
    fetch: fetch,
           ^~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15243:14: warning: the variable "Headers" was not declared in anonymous function " 351#"
    Headers: Headers,
             ^~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15244:14: warning: the variable "Request" was not declared in anonymous function " 351#"
    Request: Request,
             ^~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15245:15: warning: the variable "Response" was not declared in anonymous function " 351#"
    Response: Response
              ^~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15402:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
      var reader = new FileReader();
                       ^~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15453:36: warning: the variable "Blob" was not declared in anonymous function " 362#"
        } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
                                   ^~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15455:40: warning: the variable "FormData" was not declared in anonymous function " 362#"
        } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
                                       ^~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15457:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 362#"
...e if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body...
                                 ^~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15576:26: warning: the variable "AbortController" was not declared in anonymous function " 368#"
          var ctrl = new AbortController();
                         ^~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15710:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 372#"
        var xhr = new XMLHttpRequest();
                      ^~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15255:71: warning: the variable "self" was not declared in anonymous function " 354#"
...undefined' && globalThis || typeof self !== 'undefined' && self ||
                                      ^~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25856:27: warning: the variable "performance" was not declared in anonymous function " 676#"
  if ("object" === typeof performance && "function" === typeof performance.no...
                          ^~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25879:26: warning: the variable "navigator" was not declared in anonymous function " 676#"
  "undefined" !== typeof navigator && undefined !== navigator.scheduling && u...
                         ^~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25989:37: warning: the variable "MessageChannel" was not declared in anonymous function " 676#"
  };else if ("undefined" !== typeof MessageChannel) {
                                    ^~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:26004:34: warning: the variable "nativeRuntimeScheduler" was not declared in anonymous function " 676#"
... = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler....
                             ^~~~~~~~~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:35297:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
...    this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
                              ^~~~~~~~~~~~~~~~~~~~~

> Task :app:checkReleaseAarMetadata
> Task :app:generateReleaseResValues
> Task :react-native-community_blur:generateReleaseResValues
> Task :react-native-community_blur:generateReleaseResources
> Task :react-native-community_blur:packageReleaseResources
> Task :react-native-vision-camera:generateReleaseResValues
> Task :react-native-vision-camera:generateReleaseResources
> Task :react-native-vision-camera:packageReleaseResources
> Task :react-native-worklets-core:generateReleaseResValues
> Task :react-native-worklets-core:generateReleaseResources
> Task :react-native-worklets-core:packageReleaseResources
> Task :app:mapReleaseSourceSetPaths
> Task :app:generateReleaseResources
> Task :app:packageReleaseResources
> Task :app:createReleaseCompatibleScreenManifests
> Task :app:extractDeepLinksRelease
> Task :app:mergeReleaseResources
> Task :react-native-community_blur:extractDeepLinksRelease
> Task :react-native-vision-camera:extractDeepLinksRelease
> Task :react-native-worklets-core:extractDeepLinksRelease
> Task :app:parseReleaseLocalResources

> Task :react-native-community_blur:processReleaseManifest
package="com.reactnativecommunity.blurview" found in source AndroidManifest.xml: /app/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.reactnativecommunity.blurview" from the source AndroidManifest.xml: /app/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.

> Task :react-native-vision-camera:processReleaseManifest

> Task :react-native-worklets-core:processReleaseManifest
package="com.worklets" found in source AndroidManifest.xml: /app/node_modules/react-native-worklets-core/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.worklets" from the source AndroidManifest.xml: /app/node_modules/react-native-worklets-core/android/src/main/AndroidManifest.xml.

> Task :react-native-community_blur:compileReleaseLibraryResources

> Task :app:processReleaseMainManifest
/app/android/app/src/main/AndroidManifest.xml:14:5-119 Warning:
	uses-feature#android.hardware.camera.autofocus@tools:required was tagged at AndroidManifest.xml:14 to replace other declarations but no other declaration present
/app/android/app/src/main/AndroidManifest.xml:16:5-124 Warning:
	uses-feature#0x00030000@tools:required was tagged at AndroidManifest.xml:16 to replace other declarations but no other declaration present

> Task :app:processReleaseManifest
> Task :react-native-community_blur:parseReleaseLocalResources
> Task :react-native-vision-camera:compileReleaseLibraryResources
> Task :app:processReleaseManifestForPackage
> Task :react-native-worklets-core:compileReleaseLibraryResources
> Task :react-native-vision-camera:parseReleaseLocalResources
> Task :react-native-community_blur:generateReleaseBuildConfig
> Task :react-native-vision-camera:checkKotlinGradlePluginConfigurationErrors
> Task :react-native-community_blur:generateReleaseRFile
> Task :react-native-worklets-core:parseReleaseLocalResources
> Task :react-native-community_blur:javaPreCompileRelease
> Task :react-native-vision-camera:generateReleaseBuildConfig
> Task :react-native-vision-camera:generateReleaseRFile
> Task :react-native-worklets-core:generateReleaseRFile
> Task :react-native-community_blur:compileReleaseJavaWithJavac
> Task :react-native-community_blur:bundleLibCompileToJarRelease
> Task :app:processReleaseResources
> Task :react-native-vision-camera:javaPreCompileRelease
> Task :react-native-worklets-core:generateReleaseBuildConfig
> Task :react-native-worklets-core:javaPreCompileRelease
> Task :app:javaPreCompileRelease
> Task :app:extractProguardFiles

> Task :react-native-worklets-core:compileReleaseJavaWithJavac

> Task :react-native-worklets-core:bundleLibCompileToJarRelease
> Task :react-native-community_blur:bundleLibRuntimeToJarReleaseNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :react-native-community_blur:processReleaseJavaRes NO-SOURCE
> Task :react-native-community_blur:createFullJarRelease
> Task :react-native-community_blur:extractProguardFiles

> Task :react-native-community_blur:generateReleaseLintModel
Generating lint files for backported methods only (compile API B)

> Task :react-native-community_blur:prepareLintJarForPublish
> Task :react-native-vision-camera:extractProguardFiles
> Task :react-native-vision-camera:prepareLintJarForPublish
> Task :react-native-worklets-core:processReleaseJavaRes NO-SOURCE
> Task :react-native-worklets-core:bundleLibRuntimeToJarRelease
> Task :react-native-worklets-core:extractProguardFiles
> Task :react-native-worklets-core:createFullJarRelease
> Task :react-native-worklets-core:generateReleaseLintModel
> Task :react-native-worklets-core:prepareLintJarForPublish

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[arm64-v8a]
C/C++: VisionCamera: Frame Processors: OFF!
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:compileReleaseKotlin
> Task :react-native-vision-camera:buildCMakeRelWithDebInfo[arm64-v8a]

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[armeabi-v7a]
C/C++: VisionCamera: Frame Processors: OFF!
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeRelWithDebInfo[armeabi-v7a]

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[x86]
C/C++: VisionCamera: Frame Processors: OFF!
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeRelWithDebInfo[x86]

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[x86_64]
C/C++: VisionCamera: Frame Processors: OFF!
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeRelWithDebInfo[x86_64]
> Task :react-native-vision-camera:mergeReleaseJniLibFolders
> Task :react-native-vision-camera:extractDeepLinksForAarRelease
> Task :react-native-vision-camera:mergeReleaseShaders
> Task :react-native-vision-camera:compileReleaseShaders NO-SOURCE
> Task :react-native-vision-camera:generateReleaseAssets UP-TO-DATE
> Task :react-native-vision-camera:packageReleaseAssets
> Task :react-native-vision-camera:mergeReleaseNativeLibs
> Task :react-native-vision-camera:externalNativeBuildRelease
> Task :react-native-vision-camera:generateJsonModelRelease
> Task :react-native-vision-camera:prefabReleaseConfigurePackage
> Task :react-native-vision-camera:stripReleaseDebugSymbols
> Task :react-native-vision-camera:prefabReleasePackage
> Task :react-native-vision-camera:prepareReleaseArtProfile
> Task :react-native-vision-camera:copyReleaseJniLibsProjectAndLocalJars
> Task :react-native-community_blur:mergeReleaseJniLibFolders
> Task :react-native-community_blur:mergeReleaseNativeLibs NO-SOURCE
> Task :react-native-community_blur:stripReleaseDebugSymbols NO-SOURCE
> Task :react-native-community_blur:copyReleaseJniLibsProjectAndLocalJars
> Task :react-native-community_blur:extractDeepLinksForAarRelease

> Task :react-native-vision-camera:compileReleaseKotlin
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/MetadataProvider.kt:44:25 'requestSingleUpdate(String, LocationListener, Looper?): Unit' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:71:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:96:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:121:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt:13:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt:37:2 'ReactModule' is deprecated. Deprecated in Java

> Task :react-native-community_blur:extractReleaseAnnotations
> Task :react-native-vision-camera:compileReleaseJavaWithJavac
> Task :react-native-vision-camera:processReleaseJavaRes
> Task :react-native-vision-camera:bundleLibCompileToJarRelease
> Task :react-native-vision-camera:bundleLibRuntimeToJarRelease
> Task :react-native-vision-camera:generateReleaseLintModel
> Task :react-native-vision-camera:createFullJarRelease
> Task :react-native-vision-camera:extractReleaseAnnotations
> Task :react-native-vision-camera:mergeReleaseGeneratedProguardFiles
> Task :react-native-vision-camera:mergeReleaseConsumerProguardFiles
> Task :react-native-community_blur:mergeReleaseGeneratedProguardFiles
> Task :react-native-community_blur:mergeReleaseConsumerProguardFiles
> Task :react-native-community_blur:mergeReleaseShaders
> Task :react-native-community_blur:compileReleaseShaders NO-SOURCE
> Task :react-native-community_blur:generateReleaseAssets UP-TO-DATE
> Task :react-native-community_blur:packageReleaseAssets
> Task :react-native-community_blur:prepareReleaseArtProfile
> Task :react-native-community_blur:mergeReleaseJavaResource
> Task :react-native-vision-camera:mergeReleaseJavaResource

> Task :react-native-worklets-core:configureCMakeRelWithDebInfo[arm64-v8a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:syncReleaseLibJars
> Task :react-native-vision-camera:bundleReleaseLocalLintAar
> Task :react-native-community_blur:syncReleaseLibJars
> Task :react-native-community_blur:bundleReleaseLocalLintAar
> Task :app:compileReleaseKotlin
> Task :react-native-worklets-core:buildCMakeRelWithDebInfo[arm64-v8a]
> Task :app:compileReleaseJavaWithJavac
> Task :app:generateReleaseLintVitalReportModel

> Task :react-native-worklets-core:configureCMakeRelWithDebInfo[armeabi-v7a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeRelWithDebInfo[armeabi-v7a]
C/C++: ninja: Entering directory `/app/node_modules/react-native-worklets-core/android/.cxx/RelWithDebInfo/5i6no474/armeabi-v7a'
C/C++: In file included from /app/node_modules/react-native-worklets-core/cpp/WKTJsiWorkletContext.cpp:15:
C/C++: /app/node_modules/react-native-worklets-core/android/../cpp/decorators/WKTJsiSetImmediateDecorator.h:85:53: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
C/C++:                   printf("ctx %lu: setImmediate\n", context->getContextId());
C/C++:                               ~~~                   ^~~~~~~~~~~~~~~~~~~~~~~
C/C++:                               %zu
C/C++: 1 warning generated.

> Task :react-native-worklets-core:configureCMakeRelWithDebInfo[x86]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeRelWithDebInfo[x86]
C/C++: ninja: Entering directory `/app/node_modules/react-native-worklets-core/android/.cxx/RelWithDebInfo/5i6no474/x86'
C/C++: In file included from /app/node_modules/react-native-worklets-core/cpp/WKTJsiWorkletContext.cpp:15:
C/C++: /app/node_modules/react-native-worklets-core/android/../cpp/decorators/WKTJsiSetImmediateDecorator.h:85:53: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
C/C++:                   printf("ctx %lu: setImmediate\n", context->getContextId());
C/C++:                               ~~~                   ^~~~~~~~~~~~~~~~~~~~~~~
C/C++:                               %zu
C/C++: 1 warning generated.

> Task :react-native-worklets-core:configureCMakeRelWithDebInfo[x86_64]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeRelWithDebInfo[x86_64]
> Task :react-native-worklets-core:mergeReleaseJniLibFolders
> Task :react-native-worklets-core:extractDeepLinksForAarRelease
> Task :react-native-worklets-core:extractReleaseAnnotations
> Task :react-native-worklets-core:mergeReleaseGeneratedProguardFiles
> Task :react-native-worklets-core:mergeReleaseConsumerProguardFiles
> Task :react-native-worklets-core:mergeReleaseShaders
> Task :react-native-worklets-core:compileReleaseShaders NO-SOURCE
> Task :react-native-worklets-core:generateReleaseAssets UP-TO-DATE
> Task :react-native-worklets-core:packageReleaseAssets
> Task :react-native-worklets-core:mergeReleaseNativeLibs
> Task :react-native-worklets-core:externalNativeBuildRelease
> Task :react-native-worklets-core:generateJsonModelRelease
> Task :react-native-worklets-core:prefabReleaseConfigurePackage
> Task :react-native-worklets-core:stripReleaseDebugSymbols
> Task :react-native-worklets-core:prefabReleasePackage
> Task :react-native-worklets-core:prepareReleaseArtProfile
> Task :react-native-worklets-core:copyReleaseJniLibsProjectAndLocalJars
> Task :react-native-worklets-core:mergeReleaseJavaResource
> Task :react-native-worklets-core:syncReleaseLibJars
> Task :react-native-worklets-core:bundleReleaseLocalLintAar
> Task :react-native-community_blur:writeReleaseLintModelMetadata
> Task :react-native-vision-camera:writeReleaseLintModelMetadata
> Task :react-native-worklets-core:writeReleaseLintModelMetadata
> Task :react-native-community_blur:generateReleaseLintVitalModel
> Task :react-native-vision-camera:generateReleaseLintVitalModel
> Task :react-native-worklets-core:generateReleaseLintVitalModel
> Task :app:mergeReleaseJniLibFolders
> Task :react-native-community_blur:copyReleaseJniLibsProjectOnly
> Task :react-native-vision-camera:exportReleaseConsumerProguardFiles
> Task :react-native-community_blur:exportReleaseConsumerProguardFiles
> Task :react-native-worklets-core:exportReleaseConsumerProguardFiles
> Task :react-native-vision-camera:copyReleaseJniLibsProjectOnly
> Task :react-native-worklets-core:copyReleaseJniLibsProjectOnly
> Task :app:checkReleaseDuplicateClasses
> Task :app:mergeReleaseGeneratedProguardFiles
> Task :app:processReleaseJavaRes
> Task :app:mergeReleaseArtProfile
> Task :app:mergeReleaseNativeLibs
> Task :app:mergeReleaseShaders
> Task :app:compileReleaseShaders NO-SOURCE
> Task :app:generateReleaseAssets UP-TO-DATE
> Task :react-native-worklets-core:lintVitalAnalyzeRelease
> Task :app:mergeReleaseJavaResource
> Task :app:expandReleaseArtProfileWildcards
> Task :app:mergeReleaseAssets
> Task :app:stripReleaseDebugSymbols
> Task :react-native-community_blur:lintVitalAnalyzeRelease
> Task :app:compressReleaseAssets
> Task :app:extractReleaseNativeSymbolTables
> Task :app:extractReleaseVersionControlInfo
> Task :app:mergeReleaseNativeDebugMetadata
> Task :app:collectReleaseDependencies
> Task :app:sdkReleaseDependencyData
> Task :app:validateSigningRelease
> Task :app:writeReleaseAppMetadata
> Task :app:writeReleaseSigningConfigVersions
> Task :react-native-community_blur:bundleReleaseAar
> Task :react-native-community_blur:mapReleaseSourceSetPaths
> Task :react-native-community_blur:mergeReleaseResources
> Task :react-native-vision-camera:bundleReleaseAar
> Task :react-native-vision-camera:mapReleaseSourceSetPaths
> Task :react-native-community_blur:verifyReleaseResources
> Task :react-native-vision-camera:mergeReleaseResources
> Task :react-native-community_blur:assembleRelease
> Task :react-native-vision-camera:lintVitalAnalyzeRelease
> Task :react-native-vision-camera:verifyReleaseResources
> Task :react-native-worklets-core:bundleReleaseAar
> Task :react-native-vision-camera:assembleRelease
> Task :react-native-worklets-core:mapReleaseSourceSetPaths
> Task :react-native-worklets-core:mergeReleaseResources
> Task :app:optimizeReleaseResources
> Task :react-native-worklets-core:verifyReleaseResources
> Task :react-native-worklets-core:assembleRelease
> Task :app:minifyReleaseWithR8
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /app/android/app/build/outputs/mapping/release/missing_rules.txt.
ERROR: R8: Missing class com.google.common.logging.Vr$VREvent$Cyclops$Share$Type (referenced from: com.google.common.logging.Vr$VREvent$Cyclops$Share$Type com.google.common.logging.nano.Vr$VREvent$Cyclops$Share.type and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$CameraFirmwareUpdate$UpdateOutcome (referenced from: com.google.common.logging.Vr$VREvent$Eva$CameraFirmwareUpdate$UpdateOutcome com.google.common.logging.nano.Vr$VREvent$Eva$CameraFirmwareUpdate.outcome and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$ExportMedia$Type (referenced from: com.google.common.logging.Vr$VREvent$Eva$ExportMedia$Type com.google.common.logging.nano.Vr$VREvent$Eva$ExportMedia.exportMediaType and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$FileTransfer$FileType (referenced from: com.google.common.logging.Vr$VREvent$Eva$FileTransfer$FileType com.google.common.logging.nano.Vr$VREvent$Eva$FileTransfer.fileType and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$FileTransfer$Outcome (referenced from: com.google.common.logging.Vr$VREvent$Eva$FileTransfer$Outcome com.google.common.logging.nano.Vr$VREvent$Eva$FileTransfer.outcome and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$FileTransfer$TransferInterface (referenced from: com.google.common.logging.Vr$VREvent$Eva$FileTransfer$TransferInterface com.google.common.logging.nano.Vr$VREvent$Eva$FileTransfer.transferInterface and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$Pairing$Outcome (referenced from: com.google.common.logging.Vr$VREvent$Eva$Pairing$Outcome com.google.common.logging.nano.Vr$VREvent$Eva$Pairing.outcome and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$SelectionAction$ActionEntryPoint (referenced from: com.google.common.logging.Vr$VREvent$Eva$SelectionAction$ActionEntryPoint com.google.common.logging.nano.Vr$VREvent$Eva$SelectionAction.entryPoint and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$SelectionAction$ActionOutcome (referenced from: com.google.common.logging.Vr$VREvent$Eva$SelectionAction$ActionOutcome com.google.common.logging.nano.Vr$VREvent$Eva$SelectionAction.outcome and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$View$MediaType (referenced from: com.google.common.logging.Vr$VREvent$Eva$View$MediaType com.google.common.logging.nano.Vr$VREvent$Eva$Delete.mediaType and 7 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$View$TriggerAction (referenced from: com.google.common.logging.Vr$VREvent$Eva$View$TriggerAction com.google.common.logging.nano.Vr$VREvent$Eva$View.triggerAction and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$View$ViewSource (referenced from: com.google.common.logging.Vr$VREvent$Eva$View$ViewSource com.google.common.logging.nano.Vr$VREvent$Eva$Delete.source and 7 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$View$ViewType (referenced from: com.google.common.logging.Vr$VREvent$Eva$View$ViewType com.google.common.logging.nano.Vr$VREvent$Eva$View.viewType and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$WigglegramGeneration$Status (referenced from: com.google.common.logging.Vr$VREvent$Eva$WigglegramGeneration$Status com.google.common.logging.nano.Vr$VREvent$Eva$WigglegramGeneration.generationStatus and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Vr180Creator$VideoQuality (referenced from: com.google.common.logging.Vr$VREvent$Vr180Creator$VideoQuality com.google.common.logging.nano.Vr$VREvent$Vr180Creator$VideoConvert.videoQuality and 7 other contexts)
Missing class com.google.protobuf.CodedOutputStream (referenced from: int com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.computeSerializedSize())
Missing class com.google.protobuf.GeneratedMessageLite (referenced from: com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.mergeFrom(com.google.protobuf.nano.CodedInputByteBufferNano))
Missing class com.google.protobuf.MessageLite (referenced from: int com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.computeSerializedSize() and 1 other context)
Missing class com.google.protobuf.Parser (referenced from: com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.mergeFrom(com.google.protobuf.nano.CodedInputByteBufferNano))
Missing class com.google.protobuf.nano.NanoEnumValue (referenced from: java.lang.Integer com.google.common.logging.nano.Vr$VREvent$AudioStats.renderingMode and 179 other contexts)
Missing class logs.proto.wireless.performance.mobile.MemoryMetric$AndroidMemoryStats (referenced from: logs.proto.wireless.performance.mobile.MemoryMetric$AndroidMemoryStats com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.worldAppMemoryStats and 1 other context)

> Task :app:minifyReleaseWithR8 FAILED
> Task :app:lintVitalAnalyzeRelease

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:minifyReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
   > Compilation failed to complete

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
199 actionable tasks: 194 executed, 5 up-to-date

BUILD FAILED in 5m 42s

> echo Build failed with Node 18 and jdk version 17 with the following error: Command '['docker', 'run', '--rm', '-v', '/home/ubuntu/storage/extracted/MemerGamer-GrocARy/GrocARy-40dcdc04ce813703b939cf8d7b4eff7a5520cb9c:/source:ro', '-v', '/home/ubuntu/BachelorsThesis/scripts/RN/output/MemerGamer-GrocARy:/output', '-v', '/home/ubuntu/.npm:/root/.npm', 'react-android:18-jdk17', 'bash', '-c', '\n                set -e\n\n                cp -r /source/. /app &&                 cd /app && \n                # ---- install deps (yarn or npm) ----\n                if [ -f yarn.lock ]; then\n                    yarn install;\n                else\n                    npm install --ignore-scripts;\n                fi && \n                # ---- stub missing parent package.json (monorepo metro configs) ----\n                [ ! -f ../package.json ] && cp package.json ../package.json 2>/dev/null || true && \n                # ---- patch toReversed (Node <20 compat) ----\n                find node_modules -name "loadConfig.js" -path "*/metro-config/*" -exec sed -i \'s/\\.toReversed()/.slice().reverse()/g\' {} \\; 2>/dev/null || true && \n                # ---- patch missing expo/AppEntry ----\n                if grep -q \'"main".*expo/AppEntry\' package.json 2>/dev/null &&                    [ ! -f node_modules/expo/AppEntry.js ] && [ ! -f node_modules/expo/AppEntry.ts ]; then                     node -e "const fs=require(\'fs\'); const p=JSON.parse(fs.readFileSync(\'package.json\',\'utf8\')); if(fs.existsSync(\'index.js\')){p.main=\'index.js\'; fs.writeFileSync(\'package.json\',JSON.stringify(p,null,2));}" 2>/dev/null || true;                 fi && \n                # ---- patch broken metro config (ESM-only, null-returning, or monorepo-only) ----\n                # NOTE: do NOT replace configs that merely use expo/metro-config — those carry\n                # Expo-specific resolver paths (watchFolders, extraNodeModules) needed for\n                # packages like @react-native-masked-view/masked-view to resolve.\n                if grep -q \'react-native-monorepo-config\' metro.config.js 2>/dev/null ||                    ! node -e "const c=require(\'./metro.config.js\'); if(!c||typeof c!==\'object\') process.exit(1);" 2>/dev/null; then                     if [ -d node_modules/@react-native/metro-config ]; then                         printf \'const {getDefaultConfig, mergeConfig} = require("@react-native/metro-config");\nmodule.exports = mergeConfig(getDefaultConfig(__dirname), {});\n\' > metro.config.js;                     else                         printf \'const {getDefaultConfig} = require("metro-config");\nmodule.exports = getDefaultConfig(__dirname);\n\' > metro.config.js;                     fi;                 fi && \n                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----\n                if [ ! -f google-services.json ]; then                     python3 -c "import json; open(\'google-services.json\',\'w\').write(json.dumps({\'project_info\':{\'project_number\':\'000000000000\',\'project_id\':\'stub\',\'storage_bucket\':\'stub.appspot.com\'},\'client\':[{\'client_info\':{\'mobilesdk_app_id\':\'1:000000000000:android:0000000000000000\',\'android_client_info\':{\'package_name\':\'com.stub\'}},\'oauth_client\':[],\'api_key\':[{\'current_key\':\'stub\'}],\'services\':{\'appinvite_service\':{\'other_platform_oauth_client\':[]}}}],\'configuration_version\':\'1\'}))" 2>/dev/null || true;                 fi && \n                # ---- detect expo ----\n                if grep -q \'"expo"\' package.json && [ ! -d android ]; then\n                    echo "Expo project detected";\n                    CI=1 npx --yes expo prebuild --platform android\n                fi && \n                # ---- fix expo/metro-config: serializer + Flow transformIgnorePatterns ----\n                # Runs AFTER prebuild because prebuild generates metro.config.js for managed-workflow\n                # projects — patching before prebuild would be overwritten by the generated file.\n                # Fix 1: remove customSerializer that returns JS string instead of JSON\n                #   ("var __BUND..." → "Serializer did not return expected format").\n                # Fix 2: add transformIgnorePatterns so expo/src/Expo.ts goes through Babel\n                #   (default pattern excludes all node_modules → raw Flow types → SyntaxError).\n                if [ -f metro.config.js ] && [ -d node_modules/expo ] &&                    ( grep -q \'expo/metro-config\\|@expo/metro-config\' metro.config.js 2>/dev/null ||                      ! grep -q \'transformIgnorePatterns\' metro.config.js 2>/dev/null ); then                     cp metro.config.js metro.config.orig.js &&                     printf \'const c=require("./metro.config.orig.js");const r=Object.assign({},c);if(r.serializer){r.serializer=Object.assign({},r.serializer);delete r.serializer.customSerializer;}r.transformer=Object.assign({},r.transformer||{});if(!r.transformer.transformIgnorePatterns){r.transformer.transformIgnorePatterns=["node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|react-clone-referenced-element|@react-navigation|native-base)/)"];}module.exports=r;\\n\' > metro.config.js;                 fi && \n                # ---- stub missing metro watchFolders paths ----\n                mkdir -p /src 2>/dev/null || true && \n                # ---- fix babel configs that use react-native-builder-bob ----\n                # builder-bob is a library-dev tool; its getConfig() throws "Couldn\'t determine the source\n                # directory" when built outside the library\'s own workspace. Replace with a standard preset.\n                if grep -ql \'react-native-builder-bob\' babel.config.js babel.config.json .babelrc .babelrc.js 2>/dev/null; then                     if [ -d node_modules/babel-preset-expo ]; then                         printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                     elif [ -d node_modules/@react-native/babel-preset ]; then                         printf \'module.exports={presets:["module:@react-native/babel-preset"]};\' > babel.config.js;                     else                         printf \'module.exports={presets:["module:metro-react-native-babel-preset"]};\' > babel.config.js;                     fi;                 fi && \n                # ---- ensure TypeScript babel support (fixes \'interface\' SyntaxError in metro bundling) ----\n                if [ -d node_modules/babel-preset-expo ]; then                     grep -ql "expo\\|typescript" babel.config.js .babelrc .babelrc.js babel.config.json 2>/dev/null ||                     printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                 fi && \n                # ---- stub missing-asset-registry-path (Metro virtual module not resolved in release) ----\n                # Metro normally aliases this to @react-native/assets-registry/registry at bundle time.\n                # When that alias is missing, any PNG asset in node_modules triggers "Unable to resolve module".\n                if [ ! -d node_modules/missing-asset-registry-path ]; then                     mkdir -p node_modules/missing-asset-registry-path &&                     if [ -f node_modules/@react-native/assets-registry/registry.js ]; then                         printf \'module.exports=require("@react-native/assets-registry/registry");\' > node_modules/missing-asset-registry-path/index.js;                     else                         printf \'module.exports={registerAsset:function(){return 0;},getAssetByID:function(){return null;}};\' > node_modules/missing-asset-registry-path/index.js;                     fi;                 fi && \n                # ---- stub @react-native-masked-view/masked-view if missing ----\n                # Required by @react-navigation/elements but often not installed as a direct dependency.\n                if [ ! -d node_modules/@react-native-masked-view/masked-view ]; then                     mkdir -p node_modules/@react-native-masked-view/masked-view &&                     printf \'{"name":"@react-native-masked-view/masked-view","version":"0.1.11","main":"index.js"}\' > node_modules/@react-native-masked-view/masked-view/package.json &&                     printf \'const React=require("react");const {View}=require("react-native");function MaskedView(p){return React.createElement(View,p.style?{style:p.style}:{},p.children);}module.exports=MaskedView;module.exports.default=MaskedView;\' > node_modules/@react-native-masked-view/masked-view/index.js;                 fi && \n                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && \n                chmod +x gradlew && \n                # ---- inject fallback repositories via Gradle init script ----\n                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo \'gradle.beforeProject {project ->\' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.buildscript.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'}\' >> $GRADLE_USER_HOME/init.d/repos.gradle && \n                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----\n                sed -i \'s/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\\/.bin\\/react-native config")/\' settings.gradle 2>/dev/null || true && \n                # ---- disable Sentry source map upload (no credentials in CI) ----\n                export SENTRY_DISABLE_AUTO_UPLOAD=true &&                 echo "sentryUploadEnabled=false" >> gradle.properties 2>/dev/null || true && \n                # ---- enable ABI splits ----\n                if grep -q \'splits\' app/build.gradle 2>/dev/null; then                     sed -i \'s/enable false/enable true/\' app/build.gradle || true;                 else                     sed -i \'/^android[[:space:]]*{/a\\    splits {\\n        abi {\\n            reset()\\n            enable true\\n            universalApk false\\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\\n        }\\n    }\' app/build.gradle || true;                 fi && \n                # ---- enable R8 ----\n                sed -i \'s/enableProguardInReleaseBuilds = false/enableProguardInReleaseBuilds = true/\' app/build.gradle || true && \n                # ---- sign release with debug key ----\n                sed -i \'/buildTypes/,/}/s/release {/release {\n            signingConfig signingConfigs.debug/\' app/build.gradle || true && \n                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----\n                ./gradlew :app:dependencies --configuration releaseCompileClasspath --no-daemon > /dev/null 2>&1 || true && \n                # ---- build release apk ----\n                ./gradlew assembleRelease --no-daemon || exit 1 &&                     \n                APK_PATH="app/build/outputs/apk/release"\n\n                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then\n                    echo "ERROR: APK not generated"\n                    exit 1\n                fi\n\n                # ---- copy output ----\n                cp app/build/outputs/apk/release/*.apk /output/r8/\n\n                # ---- copy TPL metadata ----\n                [ -f ../package.json ] && cp ../package.json /output/r8/ || true\n                [ -f ../package-lock.json ] && cp ../package-lock.json /output/r8/ || true\n                [ -f ../yarn.lock ] && cp ../yarn.lock /output/r8/ || true\n                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/r8/ || true\n                [ -f app/build.gradle ] && cp app/build.gradle /output/r8/android-build.gradle || true\n                [ -f build.gradle ] && cp build.gradle /output/r8/root-build.gradle || true\n                [ -f build.gradle.kts ] && cp build.gradle.kts /output/r8/root-build.gradle.kts || true\n                [ -f settings.gradle ] && cp settings.gradle /output/r8/ || true\n                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/r8/ || true\n                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/r8/ || true\n                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                mkdir -p /output/r8/libs\n                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                    ']' returned non-zero exit status 1.
Build failed with Node 18 and jdk version 17 with the following error: Command '['docker', 'run', '--rm', '-v', '/home/ubuntu/storage/extracted/MemerGamer-GrocARy/GrocARy-40dcdc04ce813703b939cf8d7b4eff7a5520cb9c:/source:ro', '-v', '/home/ubuntu/BachelorsThesis/scripts/RN/output/MemerGamer-GrocARy:/output', '-v', '/home/ubuntu/.npm:/root/.npm', 'react-android:18-jdk17', 'bash', '-c', '\n                set -e\n\n                cp -r /source/. /app &&                 cd /app && \n                # ---- install deps (yarn or npm) ----\n                if [ -f yarn.lock ]; then\n                    yarn install;\n                else\n                    npm install --ignore-scripts;\n                fi && \n                # ---- stub missing parent package.json (monorepo metro configs) ----\n                [ ! -f ../package.json ] && cp package.json ../package.json 2>/dev/null || true && \n                # ---- patch toReversed (Node <20 compat) ----\n                find node_modules -name "loadConfig.js" -path "*/metro-config/*" -exec sed -i \'s/\\.toReversed()/.slice().reverse()/g\' {} \\; 2>/dev/null || true && \n                # ---- patch missing expo/AppEntry ----\n                if grep -q \'"main".*expo/AppEntry\' package.json 2>/dev/null &&                    [ ! -f node_modules/expo/AppEntry.js ] && [ ! -f node_modules/expo/AppEntry.ts ]; then                     node -e "const fs=require(\'fs\'); const p=JSON.parse(fs.readFileSync(\'package.json\',\'utf8\')); if(fs.existsSync(\'index.js\')){p.main=\'index.js\'; fs.writeFileSync(\'package.json\',JSON.stringify(p,null,2));}" 2>/dev/null || true;                 fi && \n                # ---- patch broken metro config (ESM-only, null-returning, or monorepo-only) ----\n                # NOTE: do NOT replace configs that merely use expo/metro-config — those carry\n                # Expo-specific resolver paths (watchFolders, extraNodeModules) needed for\n                # packages like @react-native-masked-view/masked-view to resolve.\n                if grep -q \'react-native-monorepo-config\' metro.config.js 2>/dev/null ||                    ! node -e "const c=require(\'./metro.config.js\'); if(!c||typeof c!==\'object\') process.exit(1);" 2>/dev/null; then                     if [ -d node_modules/@react-native/metro-config ]; then                         printf \'const {getDefaultConfig, mergeConfig} = require("@react-native/metro-config");\nmodule.exports = mergeConfig(getDefaultConfig(__dirname), {});\n\' > metro.config.js;                     else                         printf \'const {getDefaultConfig} = require("metro-config");\nmodule.exports = getDefaultConfig(__dirname);\n\' > metro.config.js;                     fi;                 fi && \n                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----\n                if [ ! -f google-services.json ]; then                     python3 -c "import json; open(\'google-services.json\',\'w\').write(json.dumps({\'project_info\':{\'project_number\':\'000000000000\',\'project_id\':\'stub\',\'storage_bucket\':\'stub.appspot.com\'},\'client\':[{\'client_info\':{\'mobilesdk_app_id\':\'1:000000000000:android:0000000000000000\',\'android_client_info\':{\'package_name\':\'com.stub\'}},\'oauth_client\':[],\'api_key\':[{\'current_key\':\'stub\'}],\'services\':{\'appinvite_service\':{\'other_platform_oauth_client\':[]}}}],\'configuration_version\':\'1\'}))" 2>/dev/null || true;                 fi && \n                # ---- detect expo ----\n                if grep -q \'"expo"\' package.json && [ ! -d android ]; then\n                    echo "Expo project detected";\n                    CI=1 npx --yes expo prebuild --platform android\n                fi && \n                # ---- fix expo/metro-config: serializer + Flow transformIgnorePatterns ----\n                # Runs AFTER prebuild because prebuild generates metro.config.js for managed-workflow\n                # projects — patching before prebuild would be overwritten by the generated file.\n                # Fix 1: remove customSerializer that returns JS string instead of JSON\n                #   ("var __BUND..." → "Serializer did not return expected format").\n                # Fix 2: add transformIgnorePatterns so expo/src/Expo.ts goes through Babel\n                #   (default pattern excludes all node_modules → raw Flow types → SyntaxError).\n                if [ -f metro.config.js ] && [ -d node_modules/expo ] &&                    ( grep -q \'expo/metro-config\\|@expo/metro-config\' metro.config.js 2>/dev/null ||                      ! grep -q \'transformIgnorePatterns\' metro.config.js 2>/dev/null ); then                     cp metro.config.js metro.config.orig.js &&                     printf \'const c=require("./metro.config.orig.js");const r=Object.assign({},c);if(r.serializer){r.serializer=Object.assign({},r.serializer);delete r.serializer.customSerializer;}r.transformer=Object.assign({},r.transformer||{});if(!r.transformer.transformIgnorePatterns){r.transformer.transformIgnorePatterns=["node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|react-clone-referenced-element|@react-navigation|native-base)/)"];}module.exports=r;\\n\' > metro.config.js;                 fi && \n                # ---- stub missing metro watchFolders paths ----\n                mkdir -p /src 2>/dev/null || true && \n                # ---- fix babel configs that use react-native-builder-bob ----\n                # builder-bob is a library-dev tool; its getConfig() throws "Couldn\'t determine the source\n                # directory" when built outside the library\'s own workspace. Replace with a standard preset.\n                if grep -ql \'react-native-builder-bob\' babel.config.js babel.config.json .babelrc .babelrc.js 2>/dev/null; then                     if [ -d node_modules/babel-preset-expo ]; then                         printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                     elif [ -d node_modules/@react-native/babel-preset ]; then                         printf \'module.exports={presets:["module:@react-native/babel-preset"]};\' > babel.config.js;                     else                         printf \'module.exports={presets:["module:metro-react-native-babel-preset"]};\' > babel.config.js;                     fi;                 fi && \n                # ---- ensure TypeScript babel support (fixes \'interface\' SyntaxError in metro bundling) ----\n                if [ -d node_modules/babel-preset-expo ]; then                     grep -ql "expo\\|typescript" babel.config.js .babelrc .babelrc.js babel.config.json 2>/dev/null ||                     printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                 fi && \n                # ---- stub missing-asset-registry-path (Metro virtual module not resolved in release) ----\n                # Metro normally aliases this to @react-native/assets-registry/registry at bundle time.\n                # When that alias is missing, any PNG asset in node_modules triggers "Unable to resolve module".\n                if [ ! -d node_modules/missing-asset-registry-path ]; then                     mkdir -p node_modules/missing-asset-registry-path &&                     if [ -f node_modules/@react-native/assets-registry/registry.js ]; then                         printf \'module.exports=require("@react-native/assets-registry/registry");\' > node_modules/missing-asset-registry-path/index.js;                     else                         printf \'module.exports={registerAsset:function(){return 0;},getAssetByID:function(){return null;}};\' > node_modules/missing-asset-registry-path/index.js;                     fi;                 fi && \n                # ---- stub @react-native-masked-view/masked-view if missing ----\n                # Required by @react-navigation/elements but often not installed as a direct dependency.\n                if [ ! -d node_modules/@react-native-masked-view/masked-view ]; then                     mkdir -p node_modules/@react-native-masked-view/masked-view &&                     printf \'{"name":"@react-native-masked-view/masked-view","version":"0.1.11","main":"index.js"}\' > node_modules/@react-native-masked-view/masked-view/package.json &&                     printf \'const React=require("react");const {View}=require("react-native");function MaskedView(p){return React.createElement(View,p.style?{style:p.style}:{},p.children);}module.exports=MaskedView;module.exports.default=MaskedView;\' > node_modules/@react-native-masked-view/masked-view/index.js;                 fi && \n                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && \n                chmod +x gradlew && \n                # ---- inject fallback repositories via Gradle init script ----\n                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo \'gradle.beforeProject {project ->\' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.buildscript.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'}\' >> $GRADLE_USER_HOME/init.d/repos.gradle && \n                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----\n                sed -i \'s/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\\/.bin\\/react-native config")/\' settings.gradle 2>/dev/null || true && \n                # ---- disable Sentry source map upload (no credentials in CI) ----\n                export SENTRY_DISABLE_AUTO_UPLOAD=true &&                 echo "sentryUploadEnabled=false" >> gradle.properties 2>/dev/null || true && \n                # ---- enable ABI splits ----\n                if grep -q \'splits\' app/build.gradle 2>/dev/null; then                     sed -i \'s/enable false/enable true/\' app/build.gradle || true;                 else                     sed -i \'/^android[[:space:]]*{/a\\    splits {\\n        abi {\\n            reset()\\n            enable true\\n            universalApk false\\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\\n        }\\n    }\' app/build.gradle || true;                 fi && \n                # ---- enable R8 ----\n                sed -i \'s/enableProguardInReleaseBuilds = false/enableProguardInReleaseBuilds = true/\' app/build.gradle || true && \n                # ---- sign release with debug key ----\n                sed -i \'/buildTypes/,/}/s/release {/release {\n            signingConfig signingConfigs.debug/\' app/build.gradle || true && \n                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----\n                ./gradlew :app:dependencies --configuration releaseCompileClasspath --no-daemon > /dev/null 2>&1 || true && \n                # ---- build release apk ----\n                ./gradlew assembleRelease --no-daemon || exit 1 &&                     \n                APK_PATH="app/build/outputs/apk/release"\n\n                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then\n                    echo "ERROR: APK not generated"\n                    exit 1\n                fi\n\n                # ---- copy output ----\n                cp app/build/outputs/apk/release/*.apk /output/r8/\n\n                # ---- copy TPL metadata ----\n                [ -f ../package.json ] && cp ../package.json /output/r8/ || true\n                [ -f ../package-lock.json ] && cp ../package-lock.json /output/r8/ || true\n                [ -f ../yarn.lock ] && cp ../yarn.lock /output/r8/ || true\n                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/r8/ || true\n                [ -f app/build.gradle ] && cp app/build.gradle /output/r8/android-build.gradle || true\n                [ -f build.gradle ] && cp build.gradle /output/r8/root-build.gradle || true\n                [ -f build.gradle.kts ] && cp build.gradle.kts /output/r8/root-build.gradle.kts || true\n                [ -f settings.gradle ] && cp settings.gradle /output/r8/ || true\n                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/r8/ || true\n                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/r8/ || true\n                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                mkdir -p /output/r8/libs\n                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                    ']' returned non-zero exit status 1.

> echo Attempting build for MemerGamer-GrocARy with Node 20 and jdk 17
Attempting build for MemerGamer-GrocARy with Node 20 and jdk 17

> docker run --rm -v /home/ubuntu/storage/extracted/MemerGamer-GrocARy/GrocARy-40dcdc04ce813703b939cf8d7b4eff7a5520cb9c:/source:ro -v /home/ubuntu/BachelorsThesis/scripts/RN/output/MemerGamer-GrocARy:/output -v /home/ubuntu/.npm:/root/.npm react-android:20-jdk17 bash -c 
                set -e

                cp -r /source/. /app &&                 cd /app && 
                # ---- install deps (yarn or npm) ----
                if [ -f yarn.lock ]; then
                    yarn install;
                else
                    npm install --ignore-scripts;
                fi && 
                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----
                if [ ! -f google-services.json ]; then                     python3 -c "import json; open('google-services.json','w').write(json.dumps({'project_info':{'project_number':'000000000000','project_id':'stub','storage_bucket':'stub.appspot.com'},'client':[{'client_info':{'mobilesdk_app_id':'1:000000000000:android:0000000000000000','android_client_info':{'package_name':'com.stub'}},'oauth_client':[],'api_key':[{'current_key':'stub'}],'services':{'appinvite_service':{'other_platform_oauth_client':[]}}}],'configuration_version':'1'}))" 2>/dev/null || true;                 fi && 
                # ---- detect expo ----
                if grep -q '"expo"' package.json && [ ! -d android ]; then
                    echo "Expo project detected";
                    CI=1 npx --yes expo prebuild --platform android
                fi && 
                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && 
                chmod +x gradlew && 
                # ---- inject fallback repositories via Gradle init script ----
                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo 'gradle.beforeProject {project ->' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.buildscript.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '}' >> $GRADLE_USER_HOME/init.d/repos.gradle && 
                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----
                sed -i 's/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\/.bin\/react-native config")/' settings.gradle 2>/dev/null || true && 
                # ---- clean gradle ----
                (./gradlew clean || true) && 
                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----
                ./gradlew :app:dependencies --configuration debugCompileClasspath --no-daemon > /dev/null 2>&1 || true && 
                # ---- enable ABI splits ----
                if grep -q 'splits' app/build.gradle 2>/dev/null; then                     sed -i 's/enable false/enable true/' app/build.gradle || true;                 else                     sed -i '/^android[[:space:]]*{/a\    splits {\n        abi {\n            reset()\n            enable true\n            universalApk false\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\n        }\n    }' app/build.gradle || true;                 fi && 
                # ---- build debug apk ----
                ./gradlew assembleDebug --no-daemon || exit 1 && 
                APK_PATH="app/build/outputs/apk/debug"

                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then
                    echo "ERROR: APK not generated"
                    exit 1
                fi
                # ---- copy output ----
                cp app/build/outputs/apk/debug/*.apk /output/

                # ---- copy TPL metadata ----
                [ -f ../package.json ] && cp ../package.json /output/ || true
                [ -f ../package-lock.json ] && cp ../package-lock.json /output/ || true
                [ -f ../yarn.lock ] && cp ../yarn.lock /output/ || true
                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/ || true
                [ -f app/build.gradle ] && cp app/build.gradle /output/android-build.gradle || true
                [ -f build.gradle ] && cp build.gradle /output/root-build.gradle || true
                [ -f build.gradle.kts ] && cp build.gradle.kts /output/root-build.gradle.kts || true
                [ -f settings.gradle ] && cp settings.gradle /output/ || true
                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/ || true
                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/ || true
                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true
                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true
                mkdir -p /output/libs
                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                    
npm warn deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported

added 940 packages, and audited 941 packages in 29s

141 packages are looking for funding
  run `npm fund` for details

40 vulnerabilities (4 low, 14 moderate, 20 high, 2 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
Downloading https://services.gradle.org/distributions/gradle-8.7-all.zip
.....................10%.....................20%......................30%.....................40%......................50%.....................60%.....................70%......................80%.....................90%......................100%

Welcome to Gradle 8.7!

Here are the highlights of this release:
 - Compiling and testing with Java 22
 - Cacheable Groovy script compilation
 - New methods in lazy collection properties

For more details see https://docs.gradle.org/8.7/release-notes.html

To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.7/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :gradle-plugin:pluginDescriptors
> Task :gradle-plugin:processResources
> Task :gradle-plugin:compileKotlin
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:classes
> Task :gradle-plugin:jar
> Task :gradle-plugin:inspectClassesForKotlinIC

> Configure project :react-native-vision-camera
[VisionCamera] Thank you for using VisionCamera ??
[VisionCamera] If you enjoy using VisionCamera, please consider sponsoring this project: https://github.com/sponsors/mrousavy
[VisionCamera] node_modules found at /app/node_modules
[VisionCamera] VisionCamera_enableFrameProcessors is set to true!
[VisionCamera] react-native-worklets-core found, Frame Processors are enabled!
[VisionCamera] VisionCamera_enableCodeScanner is set to true!
Checking the license for package NDK (Side by side) 25.1.8937393 in /opt/android/licenses
License for package NDK (Side by side) 25.1.8937393 accepted.
Preparing "Install NDK (Side by side) 25.1.8937393 v.25.1.8937393".
"Install NDK (Side by side) 25.1.8937393 v.25.1.8937393" ready.
Installing NDK (Side by side) 25.1.8937393 in /opt/android/ndk/25.1.8937393
"Install NDK (Side by side) 25.1.8937393 v.25.1.8937393" complete.
"Install NDK (Side by side) 25.1.8937393 v.25.1.8937393" finished.

> Task :app:clean UP-TO-DATE
> Task :react-native-community_blur:clean UP-TO-DATE
> Task :react-native-vision-camera:deleteCmakeCache
> Task :react-native-vision-camera:externalNativeBuildCleanDebug
> Task :react-native-vision-camera:externalNativeBuildCleanRelease
> Task :react-native-vision-camera:clean UP-TO-DATE
> Task :react-native-worklets-core:deleteCmakeCache
> Task :react-native-worklets-core:externalNativeBuildCleanDebug
> Task :react-native-worklets-core:externalNativeBuildCleanRelease
> Task :react-native-worklets-core:clean

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 3m 15s
15 actionable tasks: 12 executed, 3 up-to-date
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.7/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :gradle-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:classes UP-TO-DATE
> Task :gradle-plugin:jar UP-TO-DATE
> Task :gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE

> Configure project :react-native-vision-camera
[VisionCamera] Thank you for using VisionCamera ??
[VisionCamera] If you enjoy using VisionCamera, please consider sponsoring this project: https://github.com/sponsors/mrousavy
[VisionCamera] node_modules found at /app/node_modules
[VisionCamera] VisionCamera_enableFrameProcessors is set to true!
[VisionCamera] react-native-worklets-core found, Frame Processors are enabled!
[VisionCamera] VisionCamera_enableCodeScanner is set to true!
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable

> Task :app:generateCodegenSchemaFromJavaScript SKIPPED
> Task :app:generateCodegenArtifactsFromSchema SKIPPED
> Task :app:generatePackageList
> Task :app:preBuild
> Task :app:preDebugBuild
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:checkKotlinGradlePluginConfigurationErrors
> Task :app:generateDebugBuildConfig
> Task :react-native-community_blur:preBuild UP-TO-DATE
> Task :react-native-community_blur:preDebugBuild UP-TO-DATE
> Task :react-native-community_blur:writeDebugAarMetadata
> Task :react-native-vision-camera:prepareHeaders
> Task :react-native-vision-camera:preBuild
> Task :react-native-vision-camera:preDebugBuild
> Task :react-native-vision-camera:writeDebugAarMetadata
> Task :react-native-worklets-core:prepareHeaders
> Task :react-native-worklets-core:preBuild
> Task :react-native-worklets-core:preDebugBuild
> Task :react-native-worklets-core:writeDebugAarMetadata
> Task :app:generateDebugResValues
> Task :react-native-community_blur:generateDebugResValues
> Task :react-native-community_blur:generateDebugResources
> Task :react-native-community_blur:packageDebugResources
> Task :app:checkDebugAarMetadata
> Task :react-native-vision-camera:generateDebugResValues
> Task :react-native-vision-camera:generateDebugResources
> Task :react-native-vision-camera:packageDebugResources
> Task :react-native-worklets-core:generateDebugResValues
> Task :react-native-worklets-core:generateDebugResources
> Task :react-native-worklets-core:packageDebugResources
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources
> Task :app:packageDebugResources
> Task :app:mergeDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :react-native-community_blur:extractDeepLinksDebug
> Task :react-native-vision-camera:extractDeepLinksDebug
> Task :react-native-worklets-core:extractDeepLinksDebug
> Task :app:parseDebugLocalResources

> Task :react-native-community_blur:processDebugManifest
package="com.reactnativecommunity.blurview" found in source AndroidManifest.xml: /app/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.reactnativecommunity.blurview" from the source AndroidManifest.xml: /app/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.

> Task :react-native-vision-camera:processDebugManifest

> Task :react-native-worklets-core:processDebugManifest
package="com.worklets" found in source AndroidManifest.xml: /app/node_modules/react-native-worklets-core/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.worklets" from the source AndroidManifest.xml: /app/node_modules/react-native-worklets-core/android/src/main/AndroidManifest.xml.

> Task :react-native-community_blur:compileDebugLibraryResources

> Task :app:processDebugMainManifest
/app/android/app/src/debug/AndroidManifest.xml Warning:
	uses-feature#android.hardware.camera.autofocus@tools:required was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present
/app/android/app/src/debug/AndroidManifest.xml Warning:
	uses-feature#0x00030000@tools:required was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present

> Task :app:processDebugManifest
> Task :react-native-vision-camera:compileDebugLibraryResources
> Task :react-native-community_blur:parseDebugLocalResources
> Task :react-native-vision-camera:parseDebugLocalResources
> Task :app:processDebugManifestForPackage
> Task :react-native-worklets-core:compileDebugLibraryResources
> Task :react-native-vision-camera:generateDebugRFile
> Task :react-native-worklets-core:parseDebugLocalResources
> Task :react-native-community_blur:generateDebugRFile
> Task :react-native-community_blur:generateDebugBuildConfig
> Task :react-native-vision-camera:checkKotlinGradlePluginConfigurationErrors
> Task :react-native-worklets-core:generateDebugRFile
> Task :react-native-community_blur:javaPreCompileDebug
> Task :react-native-vision-camera:generateDebugBuildConfig
> Task :app:processDebugResources
> Task :react-native-community_blur:compileDebugJavaWithJavac
> Task :react-native-worklets-core:generateDebugBuildConfig
> Task :react-native-worklets-core:javaPreCompileDebug
> Task :react-native-vision-camera:javaPreCompileDebug
> Task :react-native-community_blur:bundleLibCompileToJarDebug

> Task :react-native-worklets-core:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :react-native-worklets-core:bundleLibCompileToJarDebug
> Task :app:javaPreCompileDebug
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :react-native-community_blur:mergeDebugShaders
> Task :react-native-community_blur:compileDebugShaders NO-SOURCE
> Task :react-native-community_blur:generateDebugAssets UP-TO-DATE
> Task :react-native-community_blur:packageDebugAssets
> Task :react-native-vision-camera:mergeDebugShaders
> Task :react-native-vision-camera:compileDebugShaders NO-SOURCE
> Task :react-native-vision-camera:generateDebugAssets UP-TO-DATE
> Task :react-native-vision-camera:packageDebugAssets
> Task :react-native-worklets-core:mergeDebugShaders
> Task :react-native-worklets-core:compileDebugShaders NO-SOURCE
> Task :react-native-worklets-core:generateDebugAssets UP-TO-DATE
> Task :react-native-worklets-core:packageDebugAssets
> Task :app:mergeDebugAssets
> Task :react-native-community_blur:bundleLibRuntimeToJarDebug
> Task :react-native-worklets-core:bundleLibRuntimeToJarDebug
> Task :app:desugarDebugFileDependencies
> Task :app:compressDebugAssets
> Task :react-native-community_blur:processDebugJavaRes NO-SOURCE
> Task :react-native-worklets-core:processDebugJavaRes NO-SOURCE
> Task :react-native-community_blur:bundleLibRuntimeToDirDebug
> Task :react-native-worklets-core:bundleLibRuntimeToDirDebug
> Task :app:checkDebugDuplicateClasses
> Task :app:mergeDebugJniLibFolders
> Task :react-native-vision-camera:compileDebugKotlin
> Task :app:mergeExtDexDebug
> Task :react-native-community_blur:mergeDebugJniLibFolders
> Task :react-native-community_blur:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-community_blur:copyDebugJniLibsProjectOnly

> Task :react-native-vision-camera:compileDebugKotlin
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/MetadataProvider.kt:44:25 'requestSingleUpdate(String, LocationListener, Looper?): Unit' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:71:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:96:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:121:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt:13:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt:37:2 'ReactModule' is deprecated. Deprecated in Java

> Task :react-native-worklets-core:configureCMakeDebug[arm64-v8a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:compileDebugJavaWithJavac
> Task :react-native-vision-camera:bundleLibCompileToJarDebug
> Task :react-native-vision-camera:processDebugJavaRes
> Task :react-native-vision-camera:bundleLibRuntimeToJarDebug
> Task :react-native-vision-camera:bundleLibRuntimeToDirDebug
> Task :app:compileDebugKotlin
> Task :react-native-worklets-core:buildCMakeDebug[arm64-v8a]
> Task :app:compileDebugJavaWithJavac
> Task :app:dexBuilderDebug
> Task :app:processDebugJavaRes
> Task :app:mergeDebugGlobalSynthetics
> Task :app:mergeProjectDexDebug
> Task :app:mergeLibDexDebug
> Task :app:mergeDebugJavaResource

> Task :react-native-worklets-core:configureCMakeDebug[armeabi-v7a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeDebug[armeabi-v7a]
C/C++: ninja: Entering directory `/app/node_modules/react-native-worklets-core/android/.cxx/Debug/30q1bv63/armeabi-v7a'
C/C++: In file included from /app/node_modules/react-native-worklets-core/cpp/WKTJsiWorkletContext.cpp:15:
C/C++: /app/node_modules/react-native-worklets-core/android/../cpp/decorators/WKTJsiSetImmediateDecorator.h:85:53: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
C/C++:                   printf("ctx %lu: setImmediate\n", context->getContextId());
C/C++:                               ~~~                   ^~~~~~~~~~~~~~~~~~~~~~~
C/C++:                               %zu
C/C++: 1 warning generated.

> Task :react-native-worklets-core:configureCMakeDebug[x86]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeDebug[x86]
C/C++: ninja: Entering directory `/app/node_modules/react-native-worklets-core/android/.cxx/Debug/30q1bv63/x86'
C/C++: In file included from /app/node_modules/react-native-worklets-core/cpp/WKTJsiWorkletContext.cpp:15:
C/C++: /app/node_modules/react-native-worklets-core/android/../cpp/decorators/WKTJsiSetImmediateDecorator.h:85:53: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
C/C++:                   printf("ctx %lu: setImmediate\n", context->getContextId());
C/C++:                               ~~~                   ^~~~~~~~~~~~~~~~~~~~~~~
C/C++:                               %zu
C/C++: 1 warning generated.

> Task :react-native-worklets-core:configureCMakeDebug[x86_64]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeDebug[x86_64]
> Task :react-native-worklets-core:externalNativeBuildDebug
> Task :react-native-worklets-core:generateJsonModelDebug
> Task :react-native-worklets-core:prefabDebugConfigurePackage

> Task :react-native-vision-camera:configureCMakeDebug[arm64-v8a]
C/C++: VisionCamera: Frame Processors: ON!
C/C++: VisionCamera: Linking react-native-worklets...
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:prefabDebugPackage
> Task :react-native-vision-camera:buildCMakeDebug[arm64-v8a]

> Task :react-native-vision-camera:configureCMakeDebug[armeabi-v7a]
C/C++: VisionCamera: Frame Processors: ON!
C/C++: VisionCamera: Linking react-native-worklets...
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeDebug[armeabi-v7a]

> Task :react-native-vision-camera:configureCMakeDebug[x86]
C/C++: VisionCamera: Frame Processors: ON!
C/C++: VisionCamera: Linking react-native-worklets...
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeDebug[x86]

> Task :react-native-vision-camera:configureCMakeDebug[x86_64]
C/C++: VisionCamera: Frame Processors: ON!
C/C++: VisionCamera: Linking react-native-worklets...
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeDebug[x86_64]
> Task :react-native-vision-camera:mergeDebugJniLibFolders
> Task :react-native-worklets-core:mergeDebugJniLibFolders
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :react-native-community_blur:stripDebugDebugSymbols NO-SOURCE
> Task :react-native-community_blur:copyDebugJniLibsProjectAndLocalJars
> Task :react-native-vision-camera:mergeDebugNativeLibs
> Task :react-native-worklets-core:mergeDebugNativeLibs
> Task :react-native-community_blur:extractDebugAnnotations
> Task :react-native-community_blur:extractDeepLinksForAarDebug
> Task :react-native-community_blur:mergeDebugGeneratedProguardFiles
> Task :react-native-community_blur:mergeDebugConsumerProguardFiles
> Task :react-native-community_blur:prepareDebugArtProfile
> Task :react-native-community_blur:prepareLintJarForPublish
> Task :react-native-community_blur:mergeDebugJavaResource
> Task :react-native-community_blur:syncDebugLibJars
> Task :react-native-community_blur:bundleDebugAar
> Task :react-native-community_blur:assembleDebug
> Task :react-native-vision-camera:extractDebugAnnotations
> Task :react-native-vision-camera:copyDebugJniLibsProjectOnly
> Task :react-native-vision-camera:stripDebugDebugSymbols
> Task :react-native-vision-camera:extractDeepLinksForAarDebug
> Task :react-native-vision-camera:mergeDebugGeneratedProguardFiles
> Task :react-native-worklets-core:copyDebugJniLibsProjectOnly
> Task :react-native-vision-camera:mergeDebugConsumerProguardFiles
> Task :react-native-vision-camera:copyDebugJniLibsProjectAndLocalJars
> Task :react-native-vision-camera:externalNativeBuildDebug
> Task :react-native-vision-camera:generateJsonModelDebug
> Task :react-native-vision-camera:prefabDebugConfigurePackage
> Task :react-native-vision-camera:prefabDebugPackage
> Task :react-native-vision-camera:prepareDebugArtProfile
> Task :react-native-vision-camera:prepareLintJarForPublish
> Task :react-native-vision-camera:mergeDebugJavaResource
> Task :react-native-worklets-core:extractDebugAnnotations
> Task :react-native-worklets-core:stripDebugDebugSymbols
> Task :react-native-vision-camera:syncDebugLibJars
> Task :app:mergeDebugNativeLibs
> Task :react-native-vision-camera:bundleDebugAar
> Task :react-native-vision-camera:assembleDebug
> Task :react-native-worklets-core:extractDeepLinksForAarDebug
> Task :react-native-worklets-core:mergeDebugGeneratedProguardFiles
> Task :react-native-worklets-core:mergeDebugConsumerProguardFiles
> Task :react-native-worklets-core:prepareDebugArtProfile
> Task :react-native-worklets-core:prepareLintJarForPublish
> Task :react-native-worklets-core:mergeDebugJavaResource
> Task :react-native-worklets-core:syncDebugLibJars
> Task :react-native-worklets-core:copyDebugJniLibsProjectAndLocalJars
> Task :app:stripDebugDebugSymbols
> Task :react-native-worklets-core:bundleDebugAar
> Task :react-native-worklets-core:assembleDebug
> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:assembleDebug

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 5m 44s
162 actionable tasks: 157 executed, 5 up-to-date

> docker run --rm -v /home/ubuntu/storage/extracted/MemerGamer-GrocARy/GrocARy-40dcdc04ce813703b939cf8d7b4eff7a5520cb9c:/source:ro -v /home/ubuntu/BachelorsThesis/scripts/RN/output/MemerGamer-GrocARy:/output -v /home/ubuntu/.npm:/root/.npm react-android:20-jdk17 bash -c 
                set -e

                cp -r /source/. /app &&                 cd /app && 
                # ---- install deps (yarn or npm) ----
                if [ -f yarn.lock ]; then
                    yarn install;
                else
                    npm install --ignore-scripts;
                fi && 
                # ---- stub missing parent package.json (monorepo metro configs) ----
                [ ! -f ../package.json ] && cp package.json ../package.json 2>/dev/null || true && 
                # ---- patch toReversed (Node <20 compat) ----
                find node_modules -name "loadConfig.js" -path "*/metro-config/*" -exec sed -i 's/\.toReversed()/.slice().reverse()/g' {} \; 2>/dev/null || true && 
                # ---- patch missing expo/AppEntry ----
                if grep -q '"main".*expo/AppEntry' package.json 2>/dev/null &&                    [ ! -f node_modules/expo/AppEntry.js ] && [ ! -f node_modules/expo/AppEntry.ts ]; then                     node -e "const fs=require('fs'); const p=JSON.parse(fs.readFileSync('package.json','utf8')); if(fs.existsSync('index.js')){p.main='index.js'; fs.writeFileSync('package.json',JSON.stringify(p,null,2));}" 2>/dev/null || true;                 fi && 
                # ---- patch broken metro config (ESM-only, null-returning, or monorepo-only) ----
                # NOTE: do NOT replace configs that merely use expo/metro-config — those carry
                # Expo-specific resolver paths (watchFolders, extraNodeModules) needed for
                # packages like @react-native-masked-view/masked-view to resolve.
                if grep -q 'react-native-monorepo-config' metro.config.js 2>/dev/null ||                    ! node -e "const c=require('./metro.config.js'); if(!c||typeof c!=='object') process.exit(1);" 2>/dev/null; then                     if [ -d node_modules/@react-native/metro-config ]; then                         printf 'const {getDefaultConfig, mergeConfig} = require("@react-native/metro-config");
module.exports = mergeConfig(getDefaultConfig(__dirname), {});
' > metro.config.js;                     else                         printf 'const {getDefaultConfig} = require("metro-config");
module.exports = getDefaultConfig(__dirname);
' > metro.config.js;                     fi;                 fi && 
                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----
                if [ ! -f google-services.json ]; then                     python3 -c "import json; open('google-services.json','w').write(json.dumps({'project_info':{'project_number':'000000000000','project_id':'stub','storage_bucket':'stub.appspot.com'},'client':[{'client_info':{'mobilesdk_app_id':'1:000000000000:android:0000000000000000','android_client_info':{'package_name':'com.stub'}},'oauth_client':[],'api_key':[{'current_key':'stub'}],'services':{'appinvite_service':{'other_platform_oauth_client':[]}}}],'configuration_version':'1'}))" 2>/dev/null || true;                 fi && 
                # ---- detect expo ----
                if grep -q '"expo"' package.json && [ ! -d android ]; then
                    echo "Expo project detected";
                    CI=1 npx --yes expo prebuild --platform android
                fi && 
                # ---- fix expo/metro-config: serializer + Flow transformIgnorePatterns ----
                # Runs AFTER prebuild because prebuild generates metro.config.js for managed-workflow
                # projects — patching before prebuild would be overwritten by the generated file.
                # Fix 1: remove customSerializer that returns JS string instead of JSON
                #   ("var __BUND..." → "Serializer did not return expected format").
                # Fix 2: add transformIgnorePatterns so expo/src/Expo.ts goes through Babel
                #   (default pattern excludes all node_modules → raw Flow types → SyntaxError).
                if [ -f metro.config.js ] && [ -d node_modules/expo ] &&                    ( grep -q 'expo/metro-config\|@expo/metro-config' metro.config.js 2>/dev/null ||                      ! grep -q 'transformIgnorePatterns' metro.config.js 2>/dev/null ); then                     cp metro.config.js metro.config.orig.js &&                     printf 'const c=require("./metro.config.orig.js");const r=Object.assign({},c);if(r.serializer){r.serializer=Object.assign({},r.serializer);delete r.serializer.customSerializer;}r.transformer=Object.assign({},r.transformer||{});if(!r.transformer.transformIgnorePatterns){r.transformer.transformIgnorePatterns=["node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|react-clone-referenced-element|@react-navigation|native-base)/)"];}module.exports=r;\n' > metro.config.js;                 fi && 
                # ---- stub missing metro watchFolders paths ----
                mkdir -p /src 2>/dev/null || true && 
                # ---- fix babel configs that use react-native-builder-bob ----
                # builder-bob is a library-dev tool; its getConfig() throws "Couldn't determine the source
                # directory" when built outside the library's own workspace. Replace with a standard preset.
                if grep -ql 'react-native-builder-bob' babel.config.js babel.config.json .babelrc .babelrc.js 2>/dev/null; then                     if [ -d node_modules/babel-preset-expo ]; then                         printf 'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};
' > babel.config.js;                     elif [ -d node_modules/@react-native/babel-preset ]; then                         printf 'module.exports={presets:["module:@react-native/babel-preset"]};' > babel.config.js;                     else                         printf 'module.exports={presets:["module:metro-react-native-babel-preset"]};' > babel.config.js;                     fi;                 fi && 
                # ---- ensure TypeScript babel support (fixes 'interface' SyntaxError in metro bundling) ----
                if [ -d node_modules/babel-preset-expo ]; then                     grep -ql "expo\|typescript" babel.config.js .babelrc .babelrc.js babel.config.json 2>/dev/null ||                     printf 'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};
' > babel.config.js;                 fi && 
                # ---- stub missing-asset-registry-path (Metro virtual module not resolved in release) ----
                # Metro normally aliases this to @react-native/assets-registry/registry at bundle time.
                # When that alias is missing, any PNG asset in node_modules triggers "Unable to resolve module".
                if [ ! -d node_modules/missing-asset-registry-path ]; then                     mkdir -p node_modules/missing-asset-registry-path &&                     if [ -f node_modules/@react-native/assets-registry/registry.js ]; then                         printf 'module.exports=require("@react-native/assets-registry/registry");' > node_modules/missing-asset-registry-path/index.js;                     else                         printf 'module.exports={registerAsset:function(){return 0;},getAssetByID:function(){return null;}};' > node_modules/missing-asset-registry-path/index.js;                     fi;                 fi && 
                # ---- stub @react-native-masked-view/masked-view if missing ----
                # Required by @react-navigation/elements but often not installed as a direct dependency.
                if [ ! -d node_modules/@react-native-masked-view/masked-view ]; then                     mkdir -p node_modules/@react-native-masked-view/masked-view &&                     printf '{"name":"@react-native-masked-view/masked-view","version":"0.1.11","main":"index.js"}' > node_modules/@react-native-masked-view/masked-view/package.json &&                     printf 'const React=require("react");const {View}=require("react-native");function MaskedView(p){return React.createElement(View,p.style?{style:p.style}:{},p.children);}module.exports=MaskedView;module.exports.default=MaskedView;' > node_modules/@react-native-masked-view/masked-view/index.js;                 fi && 
                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && 
                chmod +x gradlew && 
                # ---- inject fallback repositories via Gradle init script ----
                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo 'gradle.beforeProject {project ->' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.buildscript.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '}' >> $GRADLE_USER_HOME/init.d/repos.gradle && 
                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----
                sed -i 's/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\/.bin\/react-native config")/' settings.gradle 2>/dev/null || true && 
                # ---- disable Sentry source map upload (no credentials in CI) ----
                export SENTRY_DISABLE_AUTO_UPLOAD=true &&                 echo "sentryUploadEnabled=false" >> gradle.properties 2>/dev/null || true && 
                # ---- enable ABI splits ----
                if grep -q 'splits' app/build.gradle 2>/dev/null; then                     sed -i 's/enable false/enable true/' app/build.gradle || true;                 else                     sed -i '/^android[[:space:]]*{/a\    splits {\n        abi {\n            reset()\n            enable true\n            universalApk false\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\n        }\n    }' app/build.gradle || true;                 fi && 
                # ---- enable R8 ----
                sed -i 's/enableProguardInReleaseBuilds = false/enableProguardInReleaseBuilds = true/' app/build.gradle || true && 
                # ---- sign release with debug key ----
                sed -i '/buildTypes/,/}/s/release {/release {
            signingConfig signingConfigs.debug/' app/build.gradle || true && 
                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----
                ./gradlew :app:dependencies --configuration releaseCompileClasspath --no-daemon > /dev/null 2>&1 || true && 
                # ---- build release apk ----
                ./gradlew assembleRelease --no-daemon || exit 1 &&                     
                APK_PATH="app/build/outputs/apk/release"

                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then
                    echo "ERROR: APK not generated"
                    exit 1
                fi

                # ---- copy output ----
                cp app/build/outputs/apk/release/*.apk /output/r8/

                # ---- copy TPL metadata ----
                [ -f ../package.json ] && cp ../package.json /output/r8/ || true
                [ -f ../package-lock.json ] && cp ../package-lock.json /output/r8/ || true
                [ -f ../yarn.lock ] && cp ../yarn.lock /output/r8/ || true
                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/r8/ || true
                [ -f app/build.gradle ] && cp app/build.gradle /output/r8/android-build.gradle || true
                [ -f build.gradle ] && cp build.gradle /output/r8/root-build.gradle || true
                [ -f build.gradle.kts ] && cp build.gradle.kts /output/r8/root-build.gradle.kts || true
                [ -f settings.gradle ] && cp settings.gradle /output/r8/ || true
                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/r8/ || true
                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/r8/ || true
                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true
                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true
                mkdir -p /output/r8/libs
                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true
                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true
                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true
                    
npm warn deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported

added 940 packages, and audited 941 packages in 29s

141 packages are looking for funding
  run `npm fund` for details

40 vulnerabilities (4 low, 14 moderate, 20 high, 2 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
sed: -e expression #1, char 37: unterminated `s' command
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.7/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :gradle-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:classes UP-TO-DATE
> Task :gradle-plugin:jar UP-TO-DATE
> Task :gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE

> Configure project :react-native-vision-camera
[VisionCamera] Thank you for using VisionCamera ??
[VisionCamera] If you enjoy using VisionCamera, please consider sponsoring this project: https://github.com/sponsors/mrousavy
[VisionCamera] node_modules found at /app/node_modules
[VisionCamera] VisionCamera_enableFrameProcessors is set to false!
[VisionCamera] react-native-worklets-core found, Frame Processors are disabled!
[VisionCamera] VisionCamera_enableCodeScanner is set to true!
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable

> Task :app:buildKotlinToolingMetadata
> Task :app:checkKotlinGradlePluginConfigurationErrors
> Task :app:generateCodegenSchemaFromJavaScript SKIPPED
> Task :app:generateCodegenArtifactsFromSchema SKIPPED
> Task :app:generatePackageList
> Task :app:preBuild
> Task :app:preReleaseBuild
> Task :app:generateReleaseBuildConfig
> Task :react-native-community_blur:preBuild UP-TO-DATE
> Task :react-native-community_blur:preReleaseBuild UP-TO-DATE
> Task :react-native-community_blur:writeReleaseAarMetadata
> Task :react-native-vision-camera:prepareHeaders
> Task :react-native-vision-camera:preBuild
> Task :react-native-vision-camera:preReleaseBuild
> Task :react-native-vision-camera:writeReleaseAarMetadata
> Task :react-native-worklets-core:prepareHeaders
> Task :react-native-worklets-core:preBuild
> Task :react-native-worklets-core:preReleaseBuild
> Task :react-native-worklets-core:writeReleaseAarMetadata

> Task :app:createBundleReleaseJsAndAssets
debug Reading Metro config from /app/metro.config.js
warning: the transform cache was reset.
                Welcome to Metro v0.80.5
              Fast - Scalable - Integrated


info Writing bundle output to:, /app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
info Writing sourcemap output to:, /app/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 5 asset files
info Done copying assets
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:2600:18: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
          typeof DebuggerInternal !== 'undefined' &&
                 ^~~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:6258:7: warning: the variable "setTimeout" was not declared in function "logCapturedError"
      setTimeout(function () {
      ^~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:4227:108: warning: the variable "nativeFabricUIManager" was not declared in function "onChange"
...lInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.sta...
                              ^~~~~~~~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:4839:21: warning: the variable "clearTimeout" was not declared in anonymous function " 114#"
    cancelTimeout = clearTimeout;
                    ^~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:8589:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in anonymous function " 114#"
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:10958:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
    setImmediate(function () {
    ^~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15242:12: warning: the variable "fetch" was not declared in anonymous function " 351#"
    fetch: fetch,
           ^~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15243:14: warning: the variable "Headers" was not declared in anonymous function " 351#"
    Headers: Headers,
             ^~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15244:14: warning: the variable "Request" was not declared in anonymous function " 351#"
    Request: Request,
             ^~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15245:15: warning: the variable "Response" was not declared in anonymous function " 351#"
    Response: Response
              ^~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15402:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
      var reader = new FileReader();
                       ^~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15453:36: warning: the variable "Blob" was not declared in anonymous function " 362#"
        } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
                                   ^~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15455:40: warning: the variable "FormData" was not declared in anonymous function " 362#"
        } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
                                       ^~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15457:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 362#"
...e if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body...
                                 ^~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15576:26: warning: the variable "AbortController" was not declared in anonymous function " 368#"
          var ctrl = new AbortController();
                         ^~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15710:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 372#"
        var xhr = new XMLHttpRequest();
                      ^~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15255:71: warning: the variable "self" was not declared in anonymous function " 354#"
...undefined' && globalThis || typeof self !== 'undefined' && self ||
                                      ^~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25856:27: warning: the variable "performance" was not declared in anonymous function " 676#"
  if ("object" === typeof performance && "function" === typeof performance.no...
                          ^~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25879:26: warning: the variable "navigator" was not declared in anonymous function " 676#"
  "undefined" !== typeof navigator && undefined !== navigator.scheduling && u...
                         ^~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25989:37: warning: the variable "MessageChannel" was not declared in anonymous function " 676#"
  };else if ("undefined" !== typeof MessageChannel) {
                                    ^~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:26004:34: warning: the variable "nativeRuntimeScheduler" was not declared in anonymous function " 676#"
... = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler....
                             ^~~~~~~~~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:35297:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
...    this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
                              ^~~~~~~~~~~~~~~~~~~~~

> Task :app:checkReleaseAarMetadata
> Task :app:generateReleaseResValues
> Task :react-native-community_blur:generateReleaseResValues
> Task :react-native-community_blur:generateReleaseResources
> Task :react-native-community_blur:packageReleaseResources
> Task :react-native-vision-camera:generateReleaseResValues
> Task :react-native-vision-camera:generateReleaseResources
> Task :react-native-vision-camera:packageReleaseResources
> Task :react-native-worklets-core:generateReleaseResValues
> Task :react-native-worklets-core:generateReleaseResources
> Task :react-native-worklets-core:packageReleaseResources
> Task :app:mapReleaseSourceSetPaths
> Task :app:generateReleaseResources
> Task :app:packageReleaseResources
> Task :app:mergeReleaseResources
> Task :app:createReleaseCompatibleScreenManifests
> Task :app:extractDeepLinksRelease
> Task :react-native-community_blur:extractDeepLinksRelease
> Task :react-native-vision-camera:extractDeepLinksRelease
> Task :react-native-worklets-core:extractDeepLinksRelease
> Task :app:parseReleaseLocalResources
> Task :react-native-vision-camera:processReleaseManifest

> Task :react-native-worklets-core:processReleaseManifest
package="com.worklets" found in source AndroidManifest.xml: /app/node_modules/react-native-worklets-core/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.worklets" from the source AndroidManifest.xml: /app/node_modules/react-native-worklets-core/android/src/main/AndroidManifest.xml.

> Task :react-native-community_blur:processReleaseManifest
package="com.reactnativecommunity.blurview" found in source AndroidManifest.xml: /app/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.reactnativecommunity.blurview" from the source AndroidManifest.xml: /app/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.

> Task :react-native-community_blur:compileReleaseLibraryResources

> Task :app:processReleaseMainManifest
/app/android/app/src/main/AndroidManifest.xml:14:5-119 Warning:
	uses-feature#android.hardware.camera.autofocus@tools:required was tagged at AndroidManifest.xml:14 to replace other declarations but no other declaration present
/app/android/app/src/main/AndroidManifest.xml:16:5-124 Warning:
	uses-feature#0x00030000@tools:required was tagged at AndroidManifest.xml:16 to replace other declarations but no other declaration present

> Task :app:processReleaseManifest
> Task :react-native-vision-camera:compileReleaseLibraryResources
> Task :react-native-community_blur:parseReleaseLocalResources
> Task :react-native-vision-camera:parseReleaseLocalResources
> Task :react-native-worklets-core:compileReleaseLibraryResources
> Task :react-native-vision-camera:generateReleaseRFile
> Task :react-native-community_blur:generateReleaseRFile
> Task :react-native-worklets-core:parseReleaseLocalResources
> Task :react-native-community_blur:generateReleaseBuildConfig
> Task :app:processReleaseManifestForPackage
> Task :react-native-worklets-core:generateReleaseRFile
> Task :react-native-community_blur:javaPreCompileRelease
> Task :app:processReleaseResources
> Task :react-native-community_blur:compileReleaseJavaWithJavac
> Task :react-native-vision-camera:checkKotlinGradlePluginConfigurationErrors
> Task :react-native-vision-camera:generateReleaseBuildConfig
> Task :react-native-community_blur:bundleLibCompileToJarRelease
> Task :react-native-vision-camera:javaPreCompileRelease
> Task :react-native-worklets-core:generateReleaseBuildConfig
> Task :react-native-worklets-core:javaPreCompileRelease
> Task :app:javaPreCompileRelease
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :react-native-worklets-core:compileReleaseJavaWithJavac

> Task :react-native-worklets-core:bundleLibCompileToJarRelease
> Task :app:extractProguardFiles
> Task :react-native-community_blur:bundleLibRuntimeToJarRelease
> Task :react-native-community_blur:processReleaseJavaRes NO-SOURCE
> Task :react-native-community_blur:createFullJarRelease
> Task :react-native-community_blur:extractProguardFiles

> Task :react-native-community_blur:generateReleaseLintModel
Generating lint files for backported methods only (compile API B)

> Task :react-native-community_blur:prepareLintJarForPublish
> Task :react-native-vision-camera:extractProguardFiles
> Task :react-native-vision-camera:prepareLintJarForPublish
> Task :react-native-worklets-core:bundleLibRuntimeToJarRelease
> Task :react-native-worklets-core:processReleaseJavaRes NO-SOURCE
> Task :react-native-worklets-core:createFullJarRelease
> Task :react-native-worklets-core:extractProguardFiles
> Task :react-native-worklets-core:generateReleaseLintModel
> Task :react-native-worklets-core:prepareLintJarForPublish

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[arm64-v8a]
C/C++: VisionCamera: Frame Processors: OFF!
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:compileReleaseKotlin
> Task :react-native-vision-camera:buildCMakeRelWithDebInfo[arm64-v8a]

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[armeabi-v7a]
C/C++: VisionCamera: Frame Processors: OFF!
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeRelWithDebInfo[armeabi-v7a]

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[x86]
C/C++: VisionCamera: Frame Processors: OFF!
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeRelWithDebInfo[x86]

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[x86_64]
C/C++: VisionCamera: Frame Processors: OFF!
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeRelWithDebInfo[x86_64]
> Task :react-native-vision-camera:mergeReleaseJniLibFolders
> Task :react-native-vision-camera:extractDeepLinksForAarRelease
> Task :react-native-vision-camera:mergeReleaseShaders
> Task :react-native-vision-camera:compileReleaseShaders NO-SOURCE
> Task :react-native-vision-camera:generateReleaseAssets UP-TO-DATE
> Task :react-native-vision-camera:packageReleaseAssets
> Task :react-native-vision-camera:mergeReleaseNativeLibs
> Task :react-native-vision-camera:externalNativeBuildRelease
> Task :react-native-vision-camera:generateJsonModelRelease
> Task :react-native-vision-camera:prefabReleaseConfigurePackage
> Task :react-native-vision-camera:stripReleaseDebugSymbols
> Task :react-native-vision-camera:prefabReleasePackage
> Task :react-native-vision-camera:prepareReleaseArtProfile
> Task :react-native-community_blur:mergeReleaseJniLibFolders
> Task :react-native-community_blur:mergeReleaseNativeLibs NO-SOURCE
> Task :react-native-community_blur:stripReleaseDebugSymbols NO-SOURCE
> Task :react-native-vision-camera:copyReleaseJniLibsProjectAndLocalJars
> Task :react-native-community_blur:copyReleaseJniLibsProjectAndLocalJars
> Task :react-native-community_blur:extractDeepLinksForAarRelease

> Task :react-native-vision-camera:compileReleaseKotlin
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/MetadataProvider.kt:44:25 'requestSingleUpdate(String, LocationListener, Looper?): Unit' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:71:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:96:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:121:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt:13:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt:37:2 'ReactModule' is deprecated. Deprecated in Java

> Task :react-native-community_blur:extractReleaseAnnotations
> Task :react-native-vision-camera:compileReleaseJavaWithJavac
> Task :react-native-vision-camera:processReleaseJavaRes
> Task :react-native-vision-camera:bundleLibCompileToJarRelease
> Task :react-native-vision-camera:bundleLibRuntimeToJarRelease
> Task :react-native-vision-camera:generateReleaseLintModel
> Task :react-native-vision-camera:createFullJarRelease
> Task :react-native-vision-camera:extractReleaseAnnotations
> Task :react-native-vision-camera:mergeReleaseGeneratedProguardFiles
> Task :react-native-vision-camera:mergeReleaseConsumerProguardFiles
> Task :react-native-community_blur:mergeReleaseGeneratedProguardFiles
> Task :react-native-community_blur:mergeReleaseConsumerProguardFiles
> Task :react-native-community_blur:mergeReleaseShaders
> Task :react-native-community_blur:compileReleaseShaders NO-SOURCE
> Task :react-native-community_blur:generateReleaseAssets UP-TO-DATE
> Task :react-native-community_blur:packageReleaseAssets
> Task :react-native-community_blur:prepareReleaseArtProfile
> Task :react-native-community_blur:mergeReleaseJavaResource
> Task :react-native-vision-camera:mergeReleaseJavaResource

> Task :react-native-worklets-core:configureCMakeRelWithDebInfo[arm64-v8a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:syncReleaseLibJars
> Task :app:compileReleaseKotlin
> Task :react-native-vision-camera:bundleReleaseLocalLintAar
> Task :app:compileReleaseJavaWithJavac
> Task :app:generateReleaseLintVitalReportModel
> Task :react-native-community_blur:syncReleaseLibJars
> Task :react-native-community_blur:bundleReleaseLocalLintAar
> Task :react-native-worklets-core:buildCMakeRelWithDebInfo[arm64-v8a]

> Task :react-native-worklets-core:configureCMakeRelWithDebInfo[armeabi-v7a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeRelWithDebInfo[armeabi-v7a]
C/C++: ninja: Entering directory `/app/node_modules/react-native-worklets-core/android/.cxx/RelWithDebInfo/5i6no474/armeabi-v7a'
C/C++: In file included from /app/node_modules/react-native-worklets-core/cpp/WKTJsiWorkletContext.cpp:15:
C/C++: /app/node_modules/react-native-worklets-core/android/../cpp/decorators/WKTJsiSetImmediateDecorator.h:85:53: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
C/C++:                   printf("ctx %lu: setImmediate\n", context->getContextId());
C/C++:                               ~~~                   ^~~~~~~~~~~~~~~~~~~~~~~
C/C++:                               %zu
C/C++: 1 warning generated.

> Task :react-native-worklets-core:configureCMakeRelWithDebInfo[x86]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeRelWithDebInfo[x86]
C/C++: ninja: Entering directory `/app/node_modules/react-native-worklets-core/android/.cxx/RelWithDebInfo/5i6no474/x86'
C/C++: In file included from /app/node_modules/react-native-worklets-core/cpp/WKTJsiWorkletContext.cpp:15:
C/C++: /app/node_modules/react-native-worklets-core/android/../cpp/decorators/WKTJsiSetImmediateDecorator.h:85:53: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
C/C++:                   printf("ctx %lu: setImmediate\n", context->getContextId());
C/C++:                               ~~~                   ^~~~~~~~~~~~~~~~~~~~~~~
C/C++:                               %zu
C/C++: 1 warning generated.

> Task :react-native-worklets-core:configureCMakeRelWithDebInfo[x86_64]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeRelWithDebInfo[x86_64]
> Task :react-native-worklets-core:mergeReleaseJniLibFolders
> Task :react-native-worklets-core:extractDeepLinksForAarRelease
> Task :react-native-worklets-core:extractReleaseAnnotations
> Task :react-native-worklets-core:mergeReleaseGeneratedProguardFiles
> Task :react-native-worklets-core:mergeReleaseConsumerProguardFiles
> Task :react-native-worklets-core:mergeReleaseShaders
> Task :react-native-worklets-core:compileReleaseShaders NO-SOURCE
> Task :react-native-worklets-core:generateReleaseAssets UP-TO-DATE
> Task :react-native-worklets-core:packageReleaseAssets
> Task :react-native-worklets-core:mergeReleaseNativeLibs
> Task :react-native-worklets-core:externalNativeBuildRelease
> Task :react-native-worklets-core:generateJsonModelRelease
> Task :react-native-worklets-core:prefabReleaseConfigurePackage
> Task :react-native-worklets-core:stripReleaseDebugSymbols
> Task :react-native-worklets-core:prefabReleasePackage
> Task :react-native-worklets-core:prepareReleaseArtProfile
> Task :react-native-worklets-core:copyReleaseJniLibsProjectAndLocalJars
> Task :react-native-worklets-core:mergeReleaseJavaResource
> Task :react-native-worklets-core:syncReleaseLibJars
> Task :react-native-worklets-core:bundleReleaseLocalLintAar
> Task :react-native-community_blur:writeReleaseLintModelMetadata
> Task :react-native-vision-camera:writeReleaseLintModelMetadata
> Task :react-native-worklets-core:writeReleaseLintModelMetadata
> Task :react-native-community_blur:generateReleaseLintVitalModel
> Task :react-native-vision-camera:generateReleaseLintVitalModel
> Task :react-native-worklets-core:generateReleaseLintVitalModel
> Task :app:mergeReleaseJniLibFolders
> Task :react-native-community_blur:copyReleaseJniLibsProjectOnly
> Task :react-native-community_blur:exportReleaseConsumerProguardFiles
> Task :react-native-worklets-core:exportReleaseConsumerProguardFiles
> Task :react-native-vision-camera:copyReleaseJniLibsProjectOnly
> Task :react-native-vision-camera:exportReleaseConsumerProguardFiles
> Task :react-native-worklets-core:copyReleaseJniLibsProjectOnly
> Task :app:checkReleaseDuplicateClasses
> Task :app:mergeReleaseGeneratedProguardFiles
> Task :app:processReleaseJavaRes
> Task :app:mergeReleaseArtProfile
> Task :app:mergeReleaseShaders
> Task :app:compileReleaseShaders NO-SOURCE
> Task :app:generateReleaseAssets UP-TO-DATE
> Task :app:mergeReleaseNativeLibs
> Task :app:expandReleaseArtProfileWildcards
> Task :app:mergeReleaseAssets
> Task :app:extractReleaseVersionControlInfo
> Task :app:mergeReleaseJavaResource
> Task :react-native-worklets-core:lintVitalAnalyzeRelease
> Task :app:compressReleaseAssets
> Task :app:stripReleaseDebugSymbols
> Task :react-native-community_blur:lintVitalAnalyzeRelease
> Task :app:extractReleaseNativeSymbolTables
> Task :app:collectReleaseDependencies
> Task :app:sdkReleaseDependencyData
> Task :app:validateSigningRelease
> Task :app:writeReleaseAppMetadata
> Task :app:writeReleaseSigningConfigVersions
> Task :react-native-community_blur:bundleReleaseAar
> Task :react-native-community_blur:mapReleaseSourceSetPaths
> Task :app:mergeReleaseNativeDebugMetadata
> Task :react-native-community_blur:mergeReleaseResources
> Task :react-native-vision-camera:bundleReleaseAar
> Task :react-native-vision-camera:mapReleaseSourceSetPaths
> Task :react-native-community_blur:verifyReleaseResources
> Task :react-native-vision-camera:mergeReleaseResources
> Task :react-native-community_blur:assembleRelease
> Task :react-native-vision-camera:verifyReleaseResources
> Task :react-native-worklets-core:bundleReleaseAar
> Task :react-native-vision-camera:assembleRelease
> Task :react-native-worklets-core:mapReleaseSourceSetPaths
> Task :react-native-worklets-core:mergeReleaseResources
> Task :app:optimizeReleaseResources
> Task :react-native-vision-camera:lintVitalAnalyzeRelease
> Task :react-native-worklets-core:verifyReleaseResources
> Task :react-native-worklets-core:assembleRelease
> Task :app:minifyReleaseWithR8
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /app/android/app/build/outputs/mapping/release/missing_rules.txt.
ERROR: R8: Missing class com.google.common.logging.Vr$VREvent$Cyclops$Share$Type (referenced from: com.google.common.logging.Vr$VREvent$Cyclops$Share$Type com.google.common.logging.nano.Vr$VREvent$Cyclops$Share.type and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$CameraFirmwareUpdate$UpdateOutcome (referenced from: com.google.common.logging.Vr$VREvent$Eva$CameraFirmwareUpdate$UpdateOutcome com.google.common.logging.nano.Vr$VREvent$Eva$CameraFirmwareUpdate.outcome and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$ExportMedia$Type (referenced from: com.google.common.logging.Vr$VREvent$Eva$ExportMedia$Type com.google.common.logging.nano.Vr$VREvent$Eva$ExportMedia.exportMediaType and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$FileTransfer$FileType (referenced from: com.google.common.logging.Vr$VREvent$Eva$FileTransfer$FileType com.google.common.logging.nano.Vr$VREvent$Eva$FileTransfer.fileType and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$FileTransfer$Outcome (referenced from: com.google.common.logging.Vr$VREvent$Eva$FileTransfer$Outcome com.google.common.logging.nano.Vr$VREvent$Eva$FileTransfer.outcome and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$FileTransfer$TransferInterface (referenced from: com.google.common.logging.Vr$VREvent$Eva$FileTransfer$TransferInterface com.google.common.logging.nano.Vr$VREvent$Eva$FileTransfer.transferInterface and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$Pairing$Outcome (referenced from: com.google.common.logging.Vr$VREvent$Eva$Pairing$Outcome com.google.common.logging.nano.Vr$VREvent$Eva$Pairing.outcome and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$SelectionAction$ActionEntryPoint (referenced from: com.google.common.logging.Vr$VREvent$Eva$SelectionAction$ActionEntryPoint com.google.common.logging.nano.Vr$VREvent$Eva$SelectionAction.entryPoint and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$SelectionAction$ActionOutcome (referenced from: com.google.common.logging.Vr$VREvent$Eva$SelectionAction$ActionOutcome com.google.common.logging.nano.Vr$VREvent$Eva$SelectionAction.outcome and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$View$MediaType (referenced from: com.google.common.logging.Vr$VREvent$Eva$View$MediaType com.google.common.logging.nano.Vr$VREvent$Eva$Delete.mediaType and 7 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$View$TriggerAction (referenced from: com.google.common.logging.Vr$VREvent$Eva$View$TriggerAction com.google.common.logging.nano.Vr$VREvent$Eva$View.triggerAction and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$View$ViewSource (referenced from: com.google.common.logging.Vr$VREvent$Eva$View$ViewSource com.google.common.logging.nano.Vr$VREvent$Eva$Delete.source and 7 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$View$ViewType (referenced from: com.google.common.logging.Vr$VREvent$Eva$View$ViewType com.google.common.logging.nano.Vr$VREvent$Eva$View.viewType and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$WigglegramGeneration$Status (referenced from: com.google.common.logging.Vr$VREvent$Eva$WigglegramGeneration$Status com.google.common.logging.nano.Vr$VREvent$Eva$WigglegramGeneration.generationStatus and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Vr180Creator$VideoQuality (referenced from: com.google.common.logging.Vr$VREvent$Vr180Creator$VideoQuality com.google.common.logging.nano.Vr$VREvent$Vr180Creator$VideoConvert.videoQuality and 7 other contexts)
Missing class com.google.protobuf.CodedOutputStream (referenced from: int com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.computeSerializedSize())
Missing class com.google.protobuf.GeneratedMessageLite (referenced from: com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.mergeFrom(com.google.protobuf.nano.CodedInputByteBufferNano))
Missing class com.google.protobuf.MessageLite (referenced from: int com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.computeSerializedSize() and 1 other context)
Missing class com.google.protobuf.Parser (referenced from: com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.mergeFrom(com.google.protobuf.nano.CodedInputByteBufferNano))
Missing class com.google.protobuf.nano.NanoEnumValue (referenced from: java.lang.Integer com.google.common.logging.nano.Vr$VREvent$AudioStats.renderingMode and 179 other contexts)
Missing class logs.proto.wireless.performance.mobile.MemoryMetric$AndroidMemoryStats (referenced from: logs.proto.wireless.performance.mobile.MemoryMetric$AndroidMemoryStats com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.worldAppMemoryStats and 1 other context)

> Task :app:minifyReleaseWithR8 FAILED
> Task :app:lintVitalAnalyzeRelease

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
199 actionable tasks: 194 executed, 5 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:minifyReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
   > Compilation failed to complete

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 5m 20s

> echo Build failed with Node 20 and jdk version 17 with the following error: Command '['docker', 'run', '--rm', '-v', '/home/ubuntu/storage/extracted/MemerGamer-GrocARy/GrocARy-40dcdc04ce813703b939cf8d7b4eff7a5520cb9c:/source:ro', '-v', '/home/ubuntu/BachelorsThesis/scripts/RN/output/MemerGamer-GrocARy:/output', '-v', '/home/ubuntu/.npm:/root/.npm', 'react-android:20-jdk17', 'bash', '-c', '\n                set -e\n\n                cp -r /source/. /app &&                 cd /app && \n                # ---- install deps (yarn or npm) ----\n                if [ -f yarn.lock ]; then\n                    yarn install;\n                else\n                    npm install --ignore-scripts;\n                fi && \n                # ---- stub missing parent package.json (monorepo metro configs) ----\n                [ ! -f ../package.json ] && cp package.json ../package.json 2>/dev/null || true && \n                # ---- patch toReversed (Node <20 compat) ----\n                find node_modules -name "loadConfig.js" -path "*/metro-config/*" -exec sed -i \'s/\\.toReversed()/.slice().reverse()/g\' {} \\; 2>/dev/null || true && \n                # ---- patch missing expo/AppEntry ----\n                if grep -q \'"main".*expo/AppEntry\' package.json 2>/dev/null &&                    [ ! -f node_modules/expo/AppEntry.js ] && [ ! -f node_modules/expo/AppEntry.ts ]; then                     node -e "const fs=require(\'fs\'); const p=JSON.parse(fs.readFileSync(\'package.json\',\'utf8\')); if(fs.existsSync(\'index.js\')){p.main=\'index.js\'; fs.writeFileSync(\'package.json\',JSON.stringify(p,null,2));}" 2>/dev/null || true;                 fi && \n                # ---- patch broken metro config (ESM-only, null-returning, or monorepo-only) ----\n                # NOTE: do NOT replace configs that merely use expo/metro-config — those carry\n                # Expo-specific resolver paths (watchFolders, extraNodeModules) needed for\n                # packages like @react-native-masked-view/masked-view to resolve.\n                if grep -q \'react-native-monorepo-config\' metro.config.js 2>/dev/null ||                    ! node -e "const c=require(\'./metro.config.js\'); if(!c||typeof c!==\'object\') process.exit(1);" 2>/dev/null; then                     if [ -d node_modules/@react-native/metro-config ]; then                         printf \'const {getDefaultConfig, mergeConfig} = require("@react-native/metro-config");\nmodule.exports = mergeConfig(getDefaultConfig(__dirname), {});\n\' > metro.config.js;                     else                         printf \'const {getDefaultConfig} = require("metro-config");\nmodule.exports = getDefaultConfig(__dirname);\n\' > metro.config.js;                     fi;                 fi && \n                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----\n                if [ ! -f google-services.json ]; then                     python3 -c "import json; open(\'google-services.json\',\'w\').write(json.dumps({\'project_info\':{\'project_number\':\'000000000000\',\'project_id\':\'stub\',\'storage_bucket\':\'stub.appspot.com\'},\'client\':[{\'client_info\':{\'mobilesdk_app_id\':\'1:000000000000:android:0000000000000000\',\'android_client_info\':{\'package_name\':\'com.stub\'}},\'oauth_client\':[],\'api_key\':[{\'current_key\':\'stub\'}],\'services\':{\'appinvite_service\':{\'other_platform_oauth_client\':[]}}}],\'configuration_version\':\'1\'}))" 2>/dev/null || true;                 fi && \n                # ---- detect expo ----\n                if grep -q \'"expo"\' package.json && [ ! -d android ]; then\n                    echo "Expo project detected";\n                    CI=1 npx --yes expo prebuild --platform android\n                fi && \n                # ---- fix expo/metro-config: serializer + Flow transformIgnorePatterns ----\n                # Runs AFTER prebuild because prebuild generates metro.config.js for managed-workflow\n                # projects — patching before prebuild would be overwritten by the generated file.\n                # Fix 1: remove customSerializer that returns JS string instead of JSON\n                #   ("var __BUND..." → "Serializer did not return expected format").\n                # Fix 2: add transformIgnorePatterns so expo/src/Expo.ts goes through Babel\n                #   (default pattern excludes all node_modules → raw Flow types → SyntaxError).\n                if [ -f metro.config.js ] && [ -d node_modules/expo ] &&                    ( grep -q \'expo/metro-config\\|@expo/metro-config\' metro.config.js 2>/dev/null ||                      ! grep -q \'transformIgnorePatterns\' metro.config.js 2>/dev/null ); then                     cp metro.config.js metro.config.orig.js &&                     printf \'const c=require("./metro.config.orig.js");const r=Object.assign({},c);if(r.serializer){r.serializer=Object.assign({},r.serializer);delete r.serializer.customSerializer;}r.transformer=Object.assign({},r.transformer||{});if(!r.transformer.transformIgnorePatterns){r.transformer.transformIgnorePatterns=["node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|react-clone-referenced-element|@react-navigation|native-base)/)"];}module.exports=r;\\n\' > metro.config.js;                 fi && \n                # ---- stub missing metro watchFolders paths ----\n                mkdir -p /src 2>/dev/null || true && \n                # ---- fix babel configs that use react-native-builder-bob ----\n                # builder-bob is a library-dev tool; its getConfig() throws "Couldn\'t determine the source\n                # directory" when built outside the library\'s own workspace. Replace with a standard preset.\n                if grep -ql \'react-native-builder-bob\' babel.config.js babel.config.json .babelrc .babelrc.js 2>/dev/null; then                     if [ -d node_modules/babel-preset-expo ]; then                         printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                     elif [ -d node_modules/@react-native/babel-preset ]; then                         printf \'module.exports={presets:["module:@react-native/babel-preset"]};\' > babel.config.js;                     else                         printf \'module.exports={presets:["module:metro-react-native-babel-preset"]};\' > babel.config.js;                     fi;                 fi && \n                # ---- ensure TypeScript babel support (fixes \'interface\' SyntaxError in metro bundling) ----\n                if [ -d node_modules/babel-preset-expo ]; then                     grep -ql "expo\\|typescript" babel.config.js .babelrc .babelrc.js babel.config.json 2>/dev/null ||                     printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                 fi && \n                # ---- stub missing-asset-registry-path (Metro virtual module not resolved in release) ----\n                # Metro normally aliases this to @react-native/assets-registry/registry at bundle time.\n                # When that alias is missing, any PNG asset in node_modules triggers "Unable to resolve module".\n                if [ ! -d node_modules/missing-asset-registry-path ]; then                     mkdir -p node_modules/missing-asset-registry-path &&                     if [ -f node_modules/@react-native/assets-registry/registry.js ]; then                         printf \'module.exports=require("@react-native/assets-registry/registry");\' > node_modules/missing-asset-registry-path/index.js;                     else                         printf \'module.exports={registerAsset:function(){return 0;},getAssetByID:function(){return null;}};\' > node_modules/missing-asset-registry-path/index.js;                     fi;                 fi && \n                # ---- stub @react-native-masked-view/masked-view if missing ----\n                # Required by @react-navigation/elements but often not installed as a direct dependency.\n                if [ ! -d node_modules/@react-native-masked-view/masked-view ]; then                     mkdir -p node_modules/@react-native-masked-view/masked-view &&                     printf \'{"name":"@react-native-masked-view/masked-view","version":"0.1.11","main":"index.js"}\' > node_modules/@react-native-masked-view/masked-view/package.json &&                     printf \'const React=require("react");const {View}=require("react-native");function MaskedView(p){return React.createElement(View,p.style?{style:p.style}:{},p.children);}module.exports=MaskedView;module.exports.default=MaskedView;\' > node_modules/@react-native-masked-view/masked-view/index.js;                 fi && \n                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && \n                chmod +x gradlew && \n                # ---- inject fallback repositories via Gradle init script ----\n                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo \'gradle.beforeProject {project ->\' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.buildscript.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'}\' >> $GRADLE_USER_HOME/init.d/repos.gradle && \n                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----\n                sed -i \'s/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\\/.bin\\/react-native config")/\' settings.gradle 2>/dev/null || true && \n                # ---- disable Sentry source map upload (no credentials in CI) ----\n                export SENTRY_DISABLE_AUTO_UPLOAD=true &&                 echo "sentryUploadEnabled=false" >> gradle.properties 2>/dev/null || true && \n                # ---- enable ABI splits ----\n                if grep -q \'splits\' app/build.gradle 2>/dev/null; then                     sed -i \'s/enable false/enable true/\' app/build.gradle || true;                 else                     sed -i \'/^android[[:space:]]*{/a\\    splits {\\n        abi {\\n            reset()\\n            enable true\\n            universalApk false\\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\\n        }\\n    }\' app/build.gradle || true;                 fi && \n                # ---- enable R8 ----\n                sed -i \'s/enableProguardInReleaseBuilds = false/enableProguardInReleaseBuilds = true/\' app/build.gradle || true && \n                # ---- sign release with debug key ----\n                sed -i \'/buildTypes/,/}/s/release {/release {\n            signingConfig signingConfigs.debug/\' app/build.gradle || true && \n                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----\n                ./gradlew :app:dependencies --configuration releaseCompileClasspath --no-daemon > /dev/null 2>&1 || true && \n                # ---- build release apk ----\n                ./gradlew assembleRelease --no-daemon || exit 1 &&                     \n                APK_PATH="app/build/outputs/apk/release"\n\n                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then\n                    echo "ERROR: APK not generated"\n                    exit 1\n                fi\n\n                # ---- copy output ----\n                cp app/build/outputs/apk/release/*.apk /output/r8/\n\n                # ---- copy TPL metadata ----\n                [ -f ../package.json ] && cp ../package.json /output/r8/ || true\n                [ -f ../package-lock.json ] && cp ../package-lock.json /output/r8/ || true\n                [ -f ../yarn.lock ] && cp ../yarn.lock /output/r8/ || true\n                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/r8/ || true\n                [ -f app/build.gradle ] && cp app/build.gradle /output/r8/android-build.gradle || true\n                [ -f build.gradle ] && cp build.gradle /output/r8/root-build.gradle || true\n                [ -f build.gradle.kts ] && cp build.gradle.kts /output/r8/root-build.gradle.kts || true\n                [ -f settings.gradle ] && cp settings.gradle /output/r8/ || true\n                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/r8/ || true\n                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/r8/ || true\n                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                mkdir -p /output/r8/libs\n                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                    ']' returned non-zero exit status 1.
Build failed with Node 20 and jdk version 17 with the following error: Command '['docker', 'run', '--rm', '-v', '/home/ubuntu/storage/extracted/MemerGamer-GrocARy/GrocARy-40dcdc04ce813703b939cf8d7b4eff7a5520cb9c:/source:ro', '-v', '/home/ubuntu/BachelorsThesis/scripts/RN/output/MemerGamer-GrocARy:/output', '-v', '/home/ubuntu/.npm:/root/.npm', 'react-android:20-jdk17', 'bash', '-c', '\n                set -e\n\n                cp -r /source/. /app &&                 cd /app && \n                # ---- install deps (yarn or npm) ----\n                if [ -f yarn.lock ]; then\n                    yarn install;\n                else\n                    npm install --ignore-scripts;\n                fi && \n                # ---- stub missing parent package.json (monorepo metro configs) ----\n                [ ! -f ../package.json ] && cp package.json ../package.json 2>/dev/null || true && \n                # ---- patch toReversed (Node <20 compat) ----\n                find node_modules -name "loadConfig.js" -path "*/metro-config/*" -exec sed -i \'s/\\.toReversed()/.slice().reverse()/g\' {} \\; 2>/dev/null || true && \n                # ---- patch missing expo/AppEntry ----\n                if grep -q \'"main".*expo/AppEntry\' package.json 2>/dev/null &&                    [ ! -f node_modules/expo/AppEntry.js ] && [ ! -f node_modules/expo/AppEntry.ts ]; then                     node -e "const fs=require(\'fs\'); const p=JSON.parse(fs.readFileSync(\'package.json\',\'utf8\')); if(fs.existsSync(\'index.js\')){p.main=\'index.js\'; fs.writeFileSync(\'package.json\',JSON.stringify(p,null,2));}" 2>/dev/null || true;                 fi && \n                # ---- patch broken metro config (ESM-only, null-returning, or monorepo-only) ----\n                # NOTE: do NOT replace configs that merely use expo/metro-config — those carry\n                # Expo-specific resolver paths (watchFolders, extraNodeModules) needed for\n                # packages like @react-native-masked-view/masked-view to resolve.\n                if grep -q \'react-native-monorepo-config\' metro.config.js 2>/dev/null ||                    ! node -e "const c=require(\'./metro.config.js\'); if(!c||typeof c!==\'object\') process.exit(1);" 2>/dev/null; then                     if [ -d node_modules/@react-native/metro-config ]; then                         printf \'const {getDefaultConfig, mergeConfig} = require("@react-native/metro-config");\nmodule.exports = mergeConfig(getDefaultConfig(__dirname), {});\n\' > metro.config.js;                     else                         printf \'const {getDefaultConfig} = require("metro-config");\nmodule.exports = getDefaultConfig(__dirname);\n\' > metro.config.js;                     fi;                 fi && \n                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----\n                if [ ! -f google-services.json ]; then                     python3 -c "import json; open(\'google-services.json\',\'w\').write(json.dumps({\'project_info\':{\'project_number\':\'000000000000\',\'project_id\':\'stub\',\'storage_bucket\':\'stub.appspot.com\'},\'client\':[{\'client_info\':{\'mobilesdk_app_id\':\'1:000000000000:android:0000000000000000\',\'android_client_info\':{\'package_name\':\'com.stub\'}},\'oauth_client\':[],\'api_key\':[{\'current_key\':\'stub\'}],\'services\':{\'appinvite_service\':{\'other_platform_oauth_client\':[]}}}],\'configuration_version\':\'1\'}))" 2>/dev/null || true;                 fi && \n                # ---- detect expo ----\n                if grep -q \'"expo"\' package.json && [ ! -d android ]; then\n                    echo "Expo project detected";\n                    CI=1 npx --yes expo prebuild --platform android\n                fi && \n                # ---- fix expo/metro-config: serializer + Flow transformIgnorePatterns ----\n                # Runs AFTER prebuild because prebuild generates metro.config.js for managed-workflow\n                # projects — patching before prebuild would be overwritten by the generated file.\n                # Fix 1: remove customSerializer that returns JS string instead of JSON\n                #   ("var __BUND..." → "Serializer did not return expected format").\n                # Fix 2: add transformIgnorePatterns so expo/src/Expo.ts goes through Babel\n                #   (default pattern excludes all node_modules → raw Flow types → SyntaxError).\n                if [ -f metro.config.js ] && [ -d node_modules/expo ] &&                    ( grep -q \'expo/metro-config\\|@expo/metro-config\' metro.config.js 2>/dev/null ||                      ! grep -q \'transformIgnorePatterns\' metro.config.js 2>/dev/null ); then                     cp metro.config.js metro.config.orig.js &&                     printf \'const c=require("./metro.config.orig.js");const r=Object.assign({},c);if(r.serializer){r.serializer=Object.assign({},r.serializer);delete r.serializer.customSerializer;}r.transformer=Object.assign({},r.transformer||{});if(!r.transformer.transformIgnorePatterns){r.transformer.transformIgnorePatterns=["node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|react-clone-referenced-element|@react-navigation|native-base)/)"];}module.exports=r;\\n\' > metro.config.js;                 fi && \n                # ---- stub missing metro watchFolders paths ----\n                mkdir -p /src 2>/dev/null || true && \n                # ---- fix babel configs that use react-native-builder-bob ----\n                # builder-bob is a library-dev tool; its getConfig() throws "Couldn\'t determine the source\n                # directory" when built outside the library\'s own workspace. Replace with a standard preset.\n                if grep -ql \'react-native-builder-bob\' babel.config.js babel.config.json .babelrc .babelrc.js 2>/dev/null; then                     if [ -d node_modules/babel-preset-expo ]; then                         printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                     elif [ -d node_modules/@react-native/babel-preset ]; then                         printf \'module.exports={presets:["module:@react-native/babel-preset"]};\' > babel.config.js;                     else                         printf \'module.exports={presets:["module:metro-react-native-babel-preset"]};\' > babel.config.js;                     fi;                 fi && \n                # ---- ensure TypeScript babel support (fixes \'interface\' SyntaxError in metro bundling) ----\n                if [ -d node_modules/babel-preset-expo ]; then                     grep -ql "expo\\|typescript" babel.config.js .babelrc .babelrc.js babel.config.json 2>/dev/null ||                     printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                 fi && \n                # ---- stub missing-asset-registry-path (Metro virtual module not resolved in release) ----\n                # Metro normally aliases this to @react-native/assets-registry/registry at bundle time.\n                # When that alias is missing, any PNG asset in node_modules triggers "Unable to resolve module".\n                if [ ! -d node_modules/missing-asset-registry-path ]; then                     mkdir -p node_modules/missing-asset-registry-path &&                     if [ -f node_modules/@react-native/assets-registry/registry.js ]; then                         printf \'module.exports=require("@react-native/assets-registry/registry");\' > node_modules/missing-asset-registry-path/index.js;                     else                         printf \'module.exports={registerAsset:function(){return 0;},getAssetByID:function(){return null;}};\' > node_modules/missing-asset-registry-path/index.js;                     fi;                 fi && \n                # ---- stub @react-native-masked-view/masked-view if missing ----\n                # Required by @react-navigation/elements but often not installed as a direct dependency.\n                if [ ! -d node_modules/@react-native-masked-view/masked-view ]; then                     mkdir -p node_modules/@react-native-masked-view/masked-view &&                     printf \'{"name":"@react-native-masked-view/masked-view","version":"0.1.11","main":"index.js"}\' > node_modules/@react-native-masked-view/masked-view/package.json &&                     printf \'const React=require("react");const {View}=require("react-native");function MaskedView(p){return React.createElement(View,p.style?{style:p.style}:{},p.children);}module.exports=MaskedView;module.exports.default=MaskedView;\' > node_modules/@react-native-masked-view/masked-view/index.js;                 fi && \n                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && \n                chmod +x gradlew && \n                # ---- inject fallback repositories via Gradle init script ----\n                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo \'gradle.beforeProject {project ->\' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.buildscript.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'}\' >> $GRADLE_USER_HOME/init.d/repos.gradle && \n                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----\n                sed -i \'s/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\\/.bin\\/react-native config")/\' settings.gradle 2>/dev/null || true && \n                # ---- disable Sentry source map upload (no credentials in CI) ----\n                export SENTRY_DISABLE_AUTO_UPLOAD=true &&                 echo "sentryUploadEnabled=false" >> gradle.properties 2>/dev/null || true && \n                # ---- enable ABI splits ----\n                if grep -q \'splits\' app/build.gradle 2>/dev/null; then                     sed -i \'s/enable false/enable true/\' app/build.gradle || true;                 else                     sed -i \'/^android[[:space:]]*{/a\\    splits {\\n        abi {\\n            reset()\\n            enable true\\n            universalApk false\\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\\n        }\\n    }\' app/build.gradle || true;                 fi && \n                # ---- enable R8 ----\n                sed -i \'s/enableProguardInReleaseBuilds = false/enableProguardInReleaseBuilds = true/\' app/build.gradle || true && \n                # ---- sign release with debug key ----\n                sed -i \'/buildTypes/,/}/s/release {/release {\n            signingConfig signingConfigs.debug/\' app/build.gradle || true && \n                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----\n                ./gradlew :app:dependencies --configuration releaseCompileClasspath --no-daemon > /dev/null 2>&1 || true && \n                # ---- build release apk ----\n                ./gradlew assembleRelease --no-daemon || exit 1 &&                     \n                APK_PATH="app/build/outputs/apk/release"\n\n                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then\n                    echo "ERROR: APK not generated"\n                    exit 1\n                fi\n\n                # ---- copy output ----\n                cp app/build/outputs/apk/release/*.apk /output/r8/\n\n                # ---- copy TPL metadata ----\n                [ -f ../package.json ] && cp ../package.json /output/r8/ || true\n                [ -f ../package-lock.json ] && cp ../package-lock.json /output/r8/ || true\n                [ -f ../yarn.lock ] && cp ../yarn.lock /output/r8/ || true\n                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/r8/ || true\n                [ -f app/build.gradle ] && cp app/build.gradle /output/r8/android-build.gradle || true\n                [ -f build.gradle ] && cp build.gradle /output/r8/root-build.gradle || true\n                [ -f build.gradle.kts ] && cp build.gradle.kts /output/r8/root-build.gradle.kts || true\n                [ -f settings.gradle ] && cp settings.gradle /output/r8/ || true\n                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/r8/ || true\n                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/r8/ || true\n                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                mkdir -p /output/r8/libs\n                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                    ']' returned non-zero exit status 1.

> echo Attempting build for MemerGamer-GrocARy with Node 22 and jdk 17
Attempting build for MemerGamer-GrocARy with Node 22 and jdk 17

> docker run --rm -v /home/ubuntu/storage/extracted/MemerGamer-GrocARy/GrocARy-40dcdc04ce813703b939cf8d7b4eff7a5520cb9c:/source:ro -v /home/ubuntu/BachelorsThesis/scripts/RN/output/MemerGamer-GrocARy:/output -v /home/ubuntu/.npm:/root/.npm react-android:22-jdk17 bash -c 
                set -e

                cp -r /source/. /app &&                 cd /app && 
                # ---- install deps (yarn or npm) ----
                if [ -f yarn.lock ]; then
                    yarn install;
                else
                    npm install --ignore-scripts;
                fi && 
                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----
                if [ ! -f google-services.json ]; then                     python3 -c "import json; open('google-services.json','w').write(json.dumps({'project_info':{'project_number':'000000000000','project_id':'stub','storage_bucket':'stub.appspot.com'},'client':[{'client_info':{'mobilesdk_app_id':'1:000000000000:android:0000000000000000','android_client_info':{'package_name':'com.stub'}},'oauth_client':[],'api_key':[{'current_key':'stub'}],'services':{'appinvite_service':{'other_platform_oauth_client':[]}}}],'configuration_version':'1'}))" 2>/dev/null || true;                 fi && 
                # ---- detect expo ----
                if grep -q '"expo"' package.json && [ ! -d android ]; then
                    echo "Expo project detected";
                    CI=1 npx --yes expo prebuild --platform android
                fi && 
                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && 
                chmod +x gradlew && 
                # ---- inject fallback repositories via Gradle init script ----
                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo 'gradle.beforeProject {project ->' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.buildscript.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '}' >> $GRADLE_USER_HOME/init.d/repos.gradle && 
                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----
                sed -i 's/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\/.bin\/react-native config")/' settings.gradle 2>/dev/null || true && 
                # ---- clean gradle ----
                (./gradlew clean || true) && 
                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----
                ./gradlew :app:dependencies --configuration debugCompileClasspath --no-daemon > /dev/null 2>&1 || true && 
                # ---- enable ABI splits ----
                if grep -q 'splits' app/build.gradle 2>/dev/null; then                     sed -i 's/enable false/enable true/' app/build.gradle || true;                 else                     sed -i '/^android[[:space:]]*{/a\    splits {\n        abi {\n            reset()\n            enable true\n            universalApk false\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\n        }\n    }' app/build.gradle || true;                 fi && 
                # ---- build debug apk ----
                ./gradlew assembleDebug --no-daemon || exit 1 && 
                APK_PATH="app/build/outputs/apk/debug"

                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then
                    echo "ERROR: APK not generated"
                    exit 1
                fi
                # ---- copy output ----
                cp app/build/outputs/apk/debug/*.apk /output/

                # ---- copy TPL metadata ----
                [ -f ../package.json ] && cp ../package.json /output/ || true
                [ -f ../package-lock.json ] && cp ../package-lock.json /output/ || true
                [ -f ../yarn.lock ] && cp ../yarn.lock /output/ || true
                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/ || true
                [ -f app/build.gradle ] && cp app/build.gradle /output/android-build.gradle || true
                [ -f build.gradle ] && cp build.gradle /output/root-build.gradle || true
                [ -f build.gradle.kts ] && cp build.gradle.kts /output/root-build.gradle.kts || true
                [ -f settings.gradle ] && cp settings.gradle /output/ || true
                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/ || true
                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/ || true
                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true
                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true
                mkdir -p /output/libs
                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                    
npm warn deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported

added 940 packages, and audited 941 packages in 25s

141 packages are looking for funding
  run `npm fund` for details

40 vulnerabilities (4 low, 14 moderate, 20 high, 2 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
Downloading https://services.gradle.org/distributions/gradle-8.7-all.zip
.....................10%.....................20%......................30%.....................40%......................50%.....................60%.....................70%......................80%.....................90%......................100%

Welcome to Gradle 8.7!

Here are the highlights of this release:
 - Compiling and testing with Java 22
 - Cacheable Groovy script compilation
 - New methods in lazy collection properties

For more details see https://docs.gradle.org/8.7/release-notes.html

To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.7/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :gradle-plugin:pluginDescriptors
> Task :gradle-plugin:processResources
> Task :gradle-plugin:compileKotlin
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:classes
> Task :gradle-plugin:jar
> Task :gradle-plugin:inspectClassesForKotlinIC

> Configure project :react-native-vision-camera
[VisionCamera] Thank you for using VisionCamera ??
[VisionCamera] If you enjoy using VisionCamera, please consider sponsoring this project: https://github.com/sponsors/mrousavy
[VisionCamera] node_modules found at /app/node_modules
[VisionCamera] VisionCamera_enableFrameProcessors is set to true!
[VisionCamera] react-native-worklets-core found, Frame Processors are enabled!
[VisionCamera] VisionCamera_enableCodeScanner is set to true!
Checking the license for package NDK (Side by side) 25.1.8937393 in /opt/android/licenses
License for package NDK (Side by side) 25.1.8937393 accepted.
Preparing "Install NDK (Side by side) 25.1.8937393 v.25.1.8937393".
"Install NDK (Side by side) 25.1.8937393 v.25.1.8937393" ready.
Installing NDK (Side by side) 25.1.8937393 in /opt/android/ndk/25.1.8937393
"Install NDK (Side by side) 25.1.8937393 v.25.1.8937393" complete.
"Install NDK (Side by side) 25.1.8937393 v.25.1.8937393" finished.

> Task :app:clean UP-TO-DATE
> Task :react-native-community_blur:clean UP-TO-DATE
> Task :react-native-vision-camera:deleteCmakeCache
> Task :react-native-vision-camera:externalNativeBuildCleanDebug
> Task :react-native-vision-camera:externalNativeBuildCleanRelease
> Task :react-native-vision-camera:clean UP-TO-DATE
> Task :react-native-worklets-core:deleteCmakeCache
> Task :react-native-worklets-core:externalNativeBuildCleanDebug
> Task :react-native-worklets-core:externalNativeBuildCleanRelease
> Task :react-native-worklets-core:clean

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 3m 3s
15 actionable tasks: 12 executed, 3 up-to-date
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.7/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :gradle-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:classes UP-TO-DATE
> Task :gradle-plugin:jar UP-TO-DATE
> Task :gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE

> Configure project :react-native-vision-camera
[VisionCamera] Thank you for using VisionCamera ??
[VisionCamera] If you enjoy using VisionCamera, please consider sponsoring this project: https://github.com/sponsors/mrousavy
[VisionCamera] node_modules found at /app/node_modules
[VisionCamera] VisionCamera_enableFrameProcessors is set to true!
[VisionCamera] react-native-worklets-core found, Frame Processors are enabled!
[VisionCamera] VisionCamera_enableCodeScanner is set to true!
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable

> Task :app:generateCodegenSchemaFromJavaScript SKIPPED
> Task :app:generateCodegenArtifactsFromSchema SKIPPED
> Task :app:generatePackageList
> Task :app:preBuild
> Task :app:preDebugBuild
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:checkKotlinGradlePluginConfigurationErrors
> Task :app:generateDebugBuildConfig
> Task :react-native-community_blur:preBuild UP-TO-DATE
> Task :react-native-community_blur:preDebugBuild UP-TO-DATE
> Task :react-native-community_blur:writeDebugAarMetadata
> Task :react-native-vision-camera:prepareHeaders
> Task :react-native-vision-camera:preBuild
> Task :react-native-vision-camera:preDebugBuild
> Task :react-native-vision-camera:writeDebugAarMetadata
> Task :react-native-worklets-core:prepareHeaders
> Task :react-native-worklets-core:preBuild
> Task :react-native-worklets-core:preDebugBuild
> Task :react-native-worklets-core:writeDebugAarMetadata
> Task :app:generateDebugResValues
> Task :react-native-community_blur:generateDebugResValues
> Task :react-native-community_blur:generateDebugResources
> Task :react-native-community_blur:packageDebugResources
> Task :react-native-vision-camera:generateDebugResValues
> Task :react-native-vision-camera:generateDebugResources
> Task :react-native-vision-camera:packageDebugResources
> Task :react-native-worklets-core:generateDebugResValues
> Task :react-native-worklets-core:generateDebugResources
> Task :app:checkDebugAarMetadata
> Task :react-native-worklets-core:packageDebugResources
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources
> Task :app:packageDebugResources
> Task :app:mergeDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :react-native-community_blur:extractDeepLinksDebug
> Task :react-native-vision-camera:extractDeepLinksDebug
> Task :app:parseDebugLocalResources
> Task :react-native-worklets-core:extractDeepLinksDebug
> Task :react-native-vision-camera:processDebugManifest

> Task :react-native-community_blur:processDebugManifest
package="com.reactnativecommunity.blurview" found in source AndroidManifest.xml: /app/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.reactnativecommunity.blurview" from the source AndroidManifest.xml: /app/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.

> Task :react-native-worklets-core:processDebugManifest
package="com.worklets" found in source AndroidManifest.xml: /app/node_modules/react-native-worklets-core/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.worklets" from the source AndroidManifest.xml: /app/node_modules/react-native-worklets-core/android/src/main/AndroidManifest.xml.

> Task :react-native-community_blur:compileDebugLibraryResources

> Task :app:processDebugMainManifest
/app/android/app/src/debug/AndroidManifest.xml Warning:
	uses-feature#android.hardware.camera.autofocus@tools:required was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present
/app/android/app/src/debug/AndroidManifest.xml Warning:
	uses-feature#0x00030000@tools:required was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present

> Task :app:processDebugManifest
> Task :react-native-community_blur:parseDebugLocalResources
> Task :react-native-vision-camera:compileDebugLibraryResources
> Task :react-native-worklets-core:compileDebugLibraryResources
> Task :react-native-vision-camera:parseDebugLocalResources
> Task :app:processDebugManifestForPackage
> Task :react-native-worklets-core:parseDebugLocalResources
> Task :react-native-community_blur:generateDebugRFile
> Task :react-native-community_blur:generateDebugBuildConfig
> Task :react-native-vision-camera:generateDebugRFile
> Task :react-native-vision-camera:checkKotlinGradlePluginConfigurationErrors
> Task :react-native-worklets-core:generateDebugRFile
> Task :react-native-vision-camera:generateDebugBuildConfig
> Task :react-native-community_blur:javaPreCompileDebug
> Task :app:processDebugResources
> Task :react-native-community_blur:compileDebugJavaWithJavac
> Task :react-native-worklets-core:generateDebugBuildConfig
> Task :react-native-worklets-core:javaPreCompileDebug
> Task :react-native-vision-camera:javaPreCompileDebug
> Task :react-native-community_blur:bundleLibCompileToJarDebug
> Task :app:javaPreCompileDebug

> Task :react-native-worklets-core:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :react-native-worklets-core:bundleLibCompileToJarDebug
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :react-native-community_blur:mergeDebugShaders
> Task :react-native-community_blur:compileDebugShaders NO-SOURCE
> Task :react-native-community_blur:generateDebugAssets UP-TO-DATE
> Task :react-native-community_blur:packageDebugAssets
> Task :react-native-vision-camera:mergeDebugShaders
> Task :react-native-vision-camera:compileDebugShaders NO-SOURCE
> Task :react-native-vision-camera:generateDebugAssets UP-TO-DATE
> Task :react-native-vision-camera:packageDebugAssets
> Task :react-native-worklets-core:mergeDebugShaders
> Task :react-native-worklets-core:compileDebugShaders NO-SOURCE
> Task :react-native-worklets-core:generateDebugAssets UP-TO-DATE
> Task :react-native-worklets-core:packageDebugAssets
> Task :app:mergeDebugAssets
> Task :react-native-community_blur:bundleLibRuntimeToJarDebug
> Task :react-native-worklets-core:bundleLibRuntimeToJarDebug
> Task :app:compressDebugAssets
> Task :app:desugarDebugFileDependencies
> Task :react-native-community_blur:processDebugJavaRes NO-SOURCE
> Task :react-native-worklets-core:processDebugJavaRes NO-SOURCE
> Task :react-native-community_blur:bundleLibRuntimeToDirDebug
> Task :react-native-worklets-core:bundleLibRuntimeToDirDebug
> Task :app:mergeDebugJniLibFolders
> Task :react-native-community_blur:mergeDebugJniLibFolders
> Task :react-native-community_blur:mergeDebugNativeLibs NO-SOURCE
> Task :app:checkDebugDuplicateClasses
> Task :react-native-community_blur:copyDebugJniLibsProjectOnly
> Task :react-native-vision-camera:compileDebugKotlin
> Task :app:mergeExtDexDebug

> Task :react-native-vision-camera:compileDebugKotlin
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/MetadataProvider.kt:44:25 'requestSingleUpdate(String, LocationListener, Looper?): Unit' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:71:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:96:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:121:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt:13:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt:37:2 'ReactModule' is deprecated. Deprecated in Java

> Task :react-native-vision-camera:compileDebugJavaWithJavac
> Task :react-native-vision-camera:processDebugJavaRes
> Task :react-native-vision-camera:bundleLibCompileToJarDebug
> Task :react-native-vision-camera:bundleLibRuntimeToJarDebug
> Task :react-native-vision-camera:bundleLibRuntimeToDirDebug

> Task :react-native-worklets-core:configureCMakeDebug[arm64-v8a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :app:mergeLibDexDebug
> Task :app:compileDebugKotlin
> Task :react-native-worklets-core:buildCMakeDebug[arm64-v8a]
> Task :app:compileDebugJavaWithJavac
> Task :app:dexBuilderDebug
> Task :app:processDebugJavaRes
> Task :app:mergeDebugGlobalSynthetics
> Task :app:mergeProjectDexDebug

> Task :react-native-worklets-core:configureCMakeDebug[armeabi-v7a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :app:mergeDebugJavaResource

> Task :react-native-worklets-core:buildCMakeDebug[armeabi-v7a]
C/C++: ninja: Entering directory `/app/node_modules/react-native-worklets-core/android/.cxx/Debug/30q1bv63/armeabi-v7a'
C/C++: In file included from /app/node_modules/react-native-worklets-core/cpp/WKTJsiWorkletContext.cpp:15:
C/C++: /app/node_modules/react-native-worklets-core/android/../cpp/decorators/WKTJsiSetImmediateDecorator.h:85:53: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
C/C++:                   printf("ctx %lu: setImmediate\n", context->getContextId());
C/C++:                               ~~~                   ^~~~~~~~~~~~~~~~~~~~~~~
C/C++:                               %zu
C/C++: 1 warning generated.

> Task :react-native-worklets-core:configureCMakeDebug[x86]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeDebug[x86]
C/C++: ninja: Entering directory `/app/node_modules/react-native-worklets-core/android/.cxx/Debug/30q1bv63/x86'
C/C++: In file included from /app/node_modules/react-native-worklets-core/cpp/WKTJsiWorkletContext.cpp:15:
C/C++: /app/node_modules/react-native-worklets-core/android/../cpp/decorators/WKTJsiSetImmediateDecorator.h:85:53: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
C/C++:                   printf("ctx %lu: setImmediate\n", context->getContextId());
C/C++:                               ~~~                   ^~~~~~~~~~~~~~~~~~~~~~~
C/C++:                               %zu
C/C++: 1 warning generated.

> Task :react-native-worklets-core:configureCMakeDebug[x86_64]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeDebug[x86_64]
> Task :react-native-worklets-core:externalNativeBuildDebug
> Task :react-native-worklets-core:generateJsonModelDebug
> Task :react-native-worklets-core:prefabDebugConfigurePackage

> Task :react-native-vision-camera:configureCMakeDebug[arm64-v8a]
C/C++: VisionCamera: Frame Processors: ON!
C/C++: VisionCamera: Linking react-native-worklets...
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:prefabDebugPackage
> Task :react-native-vision-camera:buildCMakeDebug[arm64-v8a]

> Task :react-native-vision-camera:configureCMakeDebug[armeabi-v7a]
C/C++: VisionCamera: Frame Processors: ON!
C/C++: VisionCamera: Linking react-native-worklets...
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeDebug[armeabi-v7a]

> Task :react-native-vision-camera:configureCMakeDebug[x86]
C/C++: VisionCamera: Frame Processors: ON!
C/C++: VisionCamera: Linking react-native-worklets...
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeDebug[x86]

> Task :react-native-vision-camera:configureCMakeDebug[x86_64]
C/C++: VisionCamera: Frame Processors: ON!
C/C++: VisionCamera: Linking react-native-worklets...
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeDebug[x86_64]
> Task :react-native-vision-camera:mergeDebugJniLibFolders
> Task :react-native-worklets-core:mergeDebugJniLibFolders
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :react-native-community_blur:stripDebugDebugSymbols NO-SOURCE
> Task :react-native-community_blur:copyDebugJniLibsProjectAndLocalJars
> Task :react-native-vision-camera:mergeDebugNativeLibs
> Task :react-native-worklets-core:mergeDebugNativeLibs
> Task :react-native-community_blur:extractDebugAnnotations
> Task :react-native-community_blur:extractDeepLinksForAarDebug
> Task :react-native-community_blur:mergeDebugGeneratedProguardFiles
> Task :react-native-community_blur:mergeDebugConsumerProguardFiles
> Task :react-native-community_blur:prepareDebugArtProfile
> Task :react-native-community_blur:prepareLintJarForPublish
> Task :react-native-community_blur:mergeDebugJavaResource
> Task :react-native-community_blur:syncDebugLibJars
> Task :react-native-community_blur:bundleDebugAar
> Task :react-native-community_blur:assembleDebug
> Task :react-native-vision-camera:extractDebugAnnotations
> Task :react-native-worklets-core:copyDebugJniLibsProjectOnly
> Task :react-native-vision-camera:copyDebugJniLibsProjectOnly
> Task :react-native-vision-camera:stripDebugDebugSymbols
> Task :react-native-vision-camera:extractDeepLinksForAarDebug
> Task :react-native-vision-camera:mergeDebugGeneratedProguardFiles
> Task :react-native-vision-camera:mergeDebugConsumerProguardFiles
> Task :react-native-vision-camera:copyDebugJniLibsProjectAndLocalJars
> Task :react-native-vision-camera:externalNativeBuildDebug
> Task :react-native-vision-camera:generateJsonModelDebug
> Task :react-native-vision-camera:prefabDebugConfigurePackage
> Task :react-native-vision-camera:prefabDebugPackage
> Task :react-native-vision-camera:prepareDebugArtProfile
> Task :react-native-vision-camera:prepareLintJarForPublish
> Task :react-native-vision-camera:mergeDebugJavaResource
> Task :react-native-worklets-core:extractDebugAnnotations
> Task :react-native-worklets-core:stripDebugDebugSymbols
> Task :react-native-vision-camera:syncDebugLibJars
> Task :app:mergeDebugNativeLibs
> Task :react-native-vision-camera:bundleDebugAar
> Task :react-native-vision-camera:assembleDebug
> Task :react-native-worklets-core:extractDeepLinksForAarDebug
> Task :react-native-worklets-core:mergeDebugGeneratedProguardFiles
> Task :react-native-worklets-core:mergeDebugConsumerProguardFiles
> Task :react-native-worklets-core:prepareDebugArtProfile
> Task :react-native-worklets-core:mergeDebugJavaResource
> Task :react-native-worklets-core:prepareLintJarForPublish
> Task :react-native-worklets-core:syncDebugLibJars
> Task :react-native-worklets-core:copyDebugJniLibsProjectAndLocalJars
> Task :app:stripDebugDebugSymbols
> Task :react-native-worklets-core:bundleDebugAar
> Task :react-native-worklets-core:assembleDebug
> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:assembleDebug

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 4m 12s
162 actionable tasks: 157 executed, 5 up-to-date

> docker run --rm -v /home/ubuntu/storage/extracted/MemerGamer-GrocARy/GrocARy-40dcdc04ce813703b939cf8d7b4eff7a5520cb9c:/source:ro -v /home/ubuntu/BachelorsThesis/scripts/RN/output/MemerGamer-GrocARy:/output -v /home/ubuntu/.npm:/root/.npm react-android:22-jdk17 bash -c 
                set -e

                cp -r /source/. /app &&                 cd /app && 
                # ---- install deps (yarn or npm) ----
                if [ -f yarn.lock ]; then
                    yarn install;
                else
                    npm install --ignore-scripts;
                fi && 
                # ---- stub missing parent package.json (monorepo metro configs) ----
                [ ! -f ../package.json ] && cp package.json ../package.json 2>/dev/null || true && 
                # ---- patch toReversed (Node <20 compat) ----
                find node_modules -name "loadConfig.js" -path "*/metro-config/*" -exec sed -i 's/\.toReversed()/.slice().reverse()/g' {} \; 2>/dev/null || true && 
                # ---- patch missing expo/AppEntry ----
                if grep -q '"main".*expo/AppEntry' package.json 2>/dev/null &&                    [ ! -f node_modules/expo/AppEntry.js ] && [ ! -f node_modules/expo/AppEntry.ts ]; then                     node -e "const fs=require('fs'); const p=JSON.parse(fs.readFileSync('package.json','utf8')); if(fs.existsSync('index.js')){p.main='index.js'; fs.writeFileSync('package.json',JSON.stringify(p,null,2));}" 2>/dev/null || true;                 fi && 
                # ---- patch broken metro config (ESM-only, null-returning, or monorepo-only) ----
                # NOTE: do NOT replace configs that merely use expo/metro-config — those carry
                # Expo-specific resolver paths (watchFolders, extraNodeModules) needed for
                # packages like @react-native-masked-view/masked-view to resolve.
                if grep -q 'react-native-monorepo-config' metro.config.js 2>/dev/null ||                    ! node -e "const c=require('./metro.config.js'); if(!c||typeof c!=='object') process.exit(1);" 2>/dev/null; then                     if [ -d node_modules/@react-native/metro-config ]; then                         printf 'const {getDefaultConfig, mergeConfig} = require("@react-native/metro-config");
module.exports = mergeConfig(getDefaultConfig(__dirname), {});
' > metro.config.js;                     else                         printf 'const {getDefaultConfig} = require("metro-config");
module.exports = getDefaultConfig(__dirname);
' > metro.config.js;                     fi;                 fi && 
                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----
                if [ ! -f google-services.json ]; then                     python3 -c "import json; open('google-services.json','w').write(json.dumps({'project_info':{'project_number':'000000000000','project_id':'stub','storage_bucket':'stub.appspot.com'},'client':[{'client_info':{'mobilesdk_app_id':'1:000000000000:android:0000000000000000','android_client_info':{'package_name':'com.stub'}},'oauth_client':[],'api_key':[{'current_key':'stub'}],'services':{'appinvite_service':{'other_platform_oauth_client':[]}}}],'configuration_version':'1'}))" 2>/dev/null || true;                 fi && 
                # ---- detect expo ----
                if grep -q '"expo"' package.json && [ ! -d android ]; then
                    echo "Expo project detected";
                    CI=1 npx --yes expo prebuild --platform android
                fi && 
                # ---- fix expo/metro-config: serializer + Flow transformIgnorePatterns ----
                # Runs AFTER prebuild because prebuild generates metro.config.js for managed-workflow
                # projects — patching before prebuild would be overwritten by the generated file.
                # Fix 1: remove customSerializer that returns JS string instead of JSON
                #   ("var __BUND..." → "Serializer did not return expected format").
                # Fix 2: add transformIgnorePatterns so expo/src/Expo.ts goes through Babel
                #   (default pattern excludes all node_modules → raw Flow types → SyntaxError).
                if [ -f metro.config.js ] && [ -d node_modules/expo ] &&                    ( grep -q 'expo/metro-config\|@expo/metro-config' metro.config.js 2>/dev/null ||                      ! grep -q 'transformIgnorePatterns' metro.config.js 2>/dev/null ); then                     cp metro.config.js metro.config.orig.js &&                     printf 'const c=require("./metro.config.orig.js");const r=Object.assign({},c);if(r.serializer){r.serializer=Object.assign({},r.serializer);delete r.serializer.customSerializer;}r.transformer=Object.assign({},r.transformer||{});if(!r.transformer.transformIgnorePatterns){r.transformer.transformIgnorePatterns=["node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|react-clone-referenced-element|@react-navigation|native-base)/)"];}module.exports=r;\n' > metro.config.js;                 fi && 
                # ---- stub missing metro watchFolders paths ----
                mkdir -p /src 2>/dev/null || true && 
                # ---- fix babel configs that use react-native-builder-bob ----
                # builder-bob is a library-dev tool; its getConfig() throws "Couldn't determine the source
                # directory" when built outside the library's own workspace. Replace with a standard preset.
                if grep -ql 'react-native-builder-bob' babel.config.js babel.config.json .babelrc .babelrc.js 2>/dev/null; then                     if [ -d node_modules/babel-preset-expo ]; then                         printf 'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};
' > babel.config.js;                     elif [ -d node_modules/@react-native/babel-preset ]; then                         printf 'module.exports={presets:["module:@react-native/babel-preset"]};' > babel.config.js;                     else                         printf 'module.exports={presets:["module:metro-react-native-babel-preset"]};' > babel.config.js;                     fi;                 fi && 
                # ---- ensure TypeScript babel support (fixes 'interface' SyntaxError in metro bundling) ----
                if [ -d node_modules/babel-preset-expo ]; then                     grep -ql "expo\|typescript" babel.config.js .babelrc .babelrc.js babel.config.json 2>/dev/null ||                     printf 'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};
' > babel.config.js;                 fi && 
                # ---- stub missing-asset-registry-path (Metro virtual module not resolved in release) ----
                # Metro normally aliases this to @react-native/assets-registry/registry at bundle time.
                # When that alias is missing, any PNG asset in node_modules triggers "Unable to resolve module".
                if [ ! -d node_modules/missing-asset-registry-path ]; then                     mkdir -p node_modules/missing-asset-registry-path &&                     if [ -f node_modules/@react-native/assets-registry/registry.js ]; then                         printf 'module.exports=require("@react-native/assets-registry/registry");' > node_modules/missing-asset-registry-path/index.js;                     else                         printf 'module.exports={registerAsset:function(){return 0;},getAssetByID:function(){return null;}};' > node_modules/missing-asset-registry-path/index.js;                     fi;                 fi && 
                # ---- stub @react-native-masked-view/masked-view if missing ----
                # Required by @react-navigation/elements but often not installed as a direct dependency.
                if [ ! -d node_modules/@react-native-masked-view/masked-view ]; then                     mkdir -p node_modules/@react-native-masked-view/masked-view &&                     printf '{"name":"@react-native-masked-view/masked-view","version":"0.1.11","main":"index.js"}' > node_modules/@react-native-masked-view/masked-view/package.json &&                     printf 'const React=require("react");const {View}=require("react-native");function MaskedView(p){return React.createElement(View,p.style?{style:p.style}:{},p.children);}module.exports=MaskedView;module.exports.default=MaskedView;' > node_modules/@react-native-masked-view/masked-view/index.js;                 fi && 
                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && 
                chmod +x gradlew && 
                # ---- inject fallback repositories via Gradle init script ----
                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo 'gradle.beforeProject {project ->' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.buildscript.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '}' >> $GRADLE_USER_HOME/init.d/repos.gradle && 
                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----
                sed -i 's/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\/.bin\/react-native config")/' settings.gradle 2>/dev/null || true && 
                # ---- disable Sentry source map upload (no credentials in CI) ----
                export SENTRY_DISABLE_AUTO_UPLOAD=true &&                 echo "sentryUploadEnabled=false" >> gradle.properties 2>/dev/null || true && 
                # ---- enable ABI splits ----
                if grep -q 'splits' app/build.gradle 2>/dev/null; then                     sed -i 's/enable false/enable true/' app/build.gradle || true;                 else                     sed -i '/^android[[:space:]]*{/a\    splits {\n        abi {\n            reset()\n            enable true\n            universalApk false\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\n        }\n    }' app/build.gradle || true;                 fi && 
                # ---- enable R8 ----
                sed -i 's/enableProguardInReleaseBuilds = false/enableProguardInReleaseBuilds = true/' app/build.gradle || true && 
                # ---- sign release with debug key ----
                sed -i '/buildTypes/,/}/s/release {/release {
            signingConfig signingConfigs.debug/' app/build.gradle || true && 
                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----
                ./gradlew :app:dependencies --configuration releaseCompileClasspath --no-daemon > /dev/null 2>&1 || true && 
                # ---- build release apk ----
                ./gradlew assembleRelease --no-daemon || exit 1 &&                     
                APK_PATH="app/build/outputs/apk/release"

                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then
                    echo "ERROR: APK not generated"
                    exit 1
                fi

                # ---- copy output ----
                cp app/build/outputs/apk/release/*.apk /output/r8/

                # ---- copy TPL metadata ----
                [ -f ../package.json ] && cp ../package.json /output/r8/ || true
                [ -f ../package-lock.json ] && cp ../package-lock.json /output/r8/ || true
                [ -f ../yarn.lock ] && cp ../yarn.lock /output/r8/ || true
                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/r8/ || true
                [ -f app/build.gradle ] && cp app/build.gradle /output/r8/android-build.gradle || true
                [ -f build.gradle ] && cp build.gradle /output/r8/root-build.gradle || true
                [ -f build.gradle.kts ] && cp build.gradle.kts /output/r8/root-build.gradle.kts || true
                [ -f settings.gradle ] && cp settings.gradle /output/r8/ || true
                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/r8/ || true
                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/r8/ || true
                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true
                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true
                mkdir -p /output/r8/libs
                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true
                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true
                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true
                    
npm warn deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported

added 940 packages, and audited 941 packages in 26s

141 packages are looking for funding
  run `npm fund` for details

40 vulnerabilities (4 low, 14 moderate, 20 high, 2 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
sed: -e expression #1, char 37: unterminated `s' command
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.7/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :gradle-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:classes UP-TO-DATE
> Task :gradle-plugin:jar UP-TO-DATE
> Task :gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE

> Configure project :react-native-vision-camera
[VisionCamera] Thank you for using VisionCamera ??
[VisionCamera] If you enjoy using VisionCamera, please consider sponsoring this project: https://github.com/sponsors/mrousavy
[VisionCamera] node_modules found at /app/node_modules
[VisionCamera] VisionCamera_enableFrameProcessors is set to false!
[VisionCamera] react-native-worklets-core found, Frame Processors are disabled!
[VisionCamera] VisionCamera_enableCodeScanner is set to true!
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable

> Task :app:buildKotlinToolingMetadata
> Task :app:checkKotlinGradlePluginConfigurationErrors
> Task :app:generateCodegenSchemaFromJavaScript SKIPPED
> Task :app:generateCodegenArtifactsFromSchema SKIPPED
> Task :app:generatePackageList
> Task :app:preBuild
> Task :app:preReleaseBuild
> Task :app:generateReleaseBuildConfig
> Task :react-native-community_blur:preBuild UP-TO-DATE
> Task :react-native-community_blur:preReleaseBuild UP-TO-DATE
> Task :react-native-community_blur:writeReleaseAarMetadata
> Task :react-native-vision-camera:prepareHeaders
> Task :react-native-vision-camera:preBuild
> Task :react-native-vision-camera:preReleaseBuild
> Task :react-native-vision-camera:writeReleaseAarMetadata
> Task :react-native-worklets-core:prepareHeaders
> Task :react-native-worklets-core:preBuild
> Task :react-native-worklets-core:preReleaseBuild
> Task :react-native-worklets-core:writeReleaseAarMetadata

> Task :app:createBundleReleaseJsAndAssets
debug Reading Metro config from /app/metro.config.js
warning: the transform cache was reset.
                Welcome to Metro v0.80.5
              Fast - Scalable - Integrated


info Writing bundle output to:, /app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
info Writing sourcemap output to:, /app/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 5 asset files
info Done copying assets
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:2600:18: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
          typeof DebuggerInternal !== 'undefined' &&
                 ^~~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:6258:7: warning: the variable "setTimeout" was not declared in function "logCapturedError"
      setTimeout(function () {
      ^~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:4227:108: warning: the variable "nativeFabricUIManager" was not declared in function "onChange"
...lInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.sta...
                              ^~~~~~~~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:4839:21: warning: the variable "clearTimeout" was not declared in anonymous function " 114#"
    cancelTimeout = clearTimeout;
                    ^~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:8589:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in anonymous function " 114#"
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:10958:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
    setImmediate(function () {
    ^~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15242:12: warning: the variable "fetch" was not declared in anonymous function " 351#"
    fetch: fetch,
           ^~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15243:14: warning: the variable "Headers" was not declared in anonymous function " 351#"
    Headers: Headers,
             ^~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15244:14: warning: the variable "Request" was not declared in anonymous function " 351#"
    Request: Request,
             ^~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15245:15: warning: the variable "Response" was not declared in anonymous function " 351#"
    Response: Response
              ^~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15402:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
      var reader = new FileReader();
                       ^~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15453:36: warning: the variable "Blob" was not declared in anonymous function " 362#"
        } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
                                   ^~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15455:40: warning: the variable "FormData" was not declared in anonymous function " 362#"
        } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
                                       ^~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15457:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 362#"
...e if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body...
                                 ^~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15576:26: warning: the variable "AbortController" was not declared in anonymous function " 368#"
          var ctrl = new AbortController();
                         ^~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15710:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 372#"
        var xhr = new XMLHttpRequest();
                      ^~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15255:71: warning: the variable "self" was not declared in anonymous function " 354#"
...undefined' && globalThis || typeof self !== 'undefined' && self ||
                                      ^~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25856:27: warning: the variable "performance" was not declared in anonymous function " 676#"
  if ("object" === typeof performance && "function" === typeof performance.no...
                          ^~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25879:26: warning: the variable "navigator" was not declared in anonymous function " 676#"
  "undefined" !== typeof navigator && undefined !== navigator.scheduling && u...
                         ^~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:25989:37: warning: the variable "MessageChannel" was not declared in anonymous function " 676#"
  };else if ("undefined" !== typeof MessageChannel) {
                                    ^~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:26004:34: warning: the variable "nativeRuntimeScheduler" was not declared in anonymous function " 676#"
... = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler....
                             ^~~~~~~~~~~~~~~~~~~~~~
/app/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:35297:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
...    this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
                              ^~~~~~~~~~~~~~~~~~~~~

> Task :app:checkReleaseAarMetadata
> Task :app:generateReleaseResValues
> Task :react-native-community_blur:generateReleaseResValues
> Task :react-native-community_blur:generateReleaseResources
> Task :react-native-community_blur:packageReleaseResources
> Task :react-native-vision-camera:generateReleaseResValues
> Task :react-native-vision-camera:generateReleaseResources
> Task :react-native-vision-camera:packageReleaseResources
> Task :react-native-worklets-core:generateReleaseResValues
> Task :react-native-worklets-core:generateReleaseResources
> Task :react-native-worklets-core:packageReleaseResources
> Task :app:mapReleaseSourceSetPaths
> Task :app:generateReleaseResources
> Task :app:packageReleaseResources
> Task :app:mergeReleaseResources
> Task :app:createReleaseCompatibleScreenManifests
> Task :app:extractDeepLinksRelease
> Task :react-native-community_blur:extractDeepLinksRelease
> Task :react-native-vision-camera:extractDeepLinksRelease
> Task :app:parseReleaseLocalResources
> Task :react-native-worklets-core:extractDeepLinksRelease

> Task :react-native-community_blur:processReleaseManifest
package="com.reactnativecommunity.blurview" found in source AndroidManifest.xml: /app/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.reactnativecommunity.blurview" from the source AndroidManifest.xml: /app/node_modules/@react-native-community/blur/android/src/main/AndroidManifest.xml.

> Task :react-native-worklets-core:processReleaseManifest
package="com.worklets" found in source AndroidManifest.xml: /app/node_modules/react-native-worklets-core/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.worklets" from the source AndroidManifest.xml: /app/node_modules/react-native-worklets-core/android/src/main/AndroidManifest.xml.

> Task :react-native-vision-camera:processReleaseManifest
> Task :react-native-community_blur:compileReleaseLibraryResources

> Task :app:processReleaseMainManifest
/app/android/app/src/main/AndroidManifest.xml:14:5-119 Warning:
	uses-feature#android.hardware.camera.autofocus@tools:required was tagged at AndroidManifest.xml:14 to replace other declarations but no other declaration present
/app/android/app/src/main/AndroidManifest.xml:16:5-124 Warning:
	uses-feature#0x00030000@tools:required was tagged at AndroidManifest.xml:16 to replace other declarations but no other declaration present

> Task :app:processReleaseManifest
> Task :react-native-community_blur:parseReleaseLocalResources
> Task :react-native-vision-camera:compileReleaseLibraryResources
> Task :app:processReleaseManifestForPackage
> Task :react-native-worklets-core:compileReleaseLibraryResources
> Task :react-native-vision-camera:parseReleaseLocalResources
> Task :react-native-worklets-core:parseReleaseLocalResources
> Task :react-native-worklets-core:generateReleaseRFile
> Task :react-native-community_blur:generateReleaseRFile
> Task :react-native-vision-camera:generateReleaseRFile
> Task :react-native-community_blur:generateReleaseBuildConfig
> Task :react-native-vision-camera:checkKotlinGradlePluginConfigurationErrors
> Task :react-native-vision-camera:generateReleaseBuildConfig
> Task :react-native-community_blur:javaPreCompileRelease
> Task :app:processReleaseResources
> Task :react-native-community_blur:compileReleaseJavaWithJavac
> Task :react-native-vision-camera:javaPreCompileRelease
> Task :react-native-worklets-core:generateReleaseBuildConfig
> Task :react-native-worklets-core:javaPreCompileRelease
> Task :app:javaPreCompileRelease
> Task :react-native-community_blur:bundleLibCompileToJarRelease

> Task :react-native-worklets-core:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :react-native-worklets-core:bundleLibCompileToJarRelease
> Task :app:extractProguardFiles
> Task :react-native-community_blur:processReleaseJavaRes NO-SOURCE
> Task :react-native-community_blur:bundleLibRuntimeToJarRelease
> Task :react-native-community_blur:extractProguardFiles
> Task :react-native-community_blur:createFullJarRelease
> Task :react-native-vision-camera:compileReleaseKotlin

> Task :react-native-community_blur:generateReleaseLintModel
Generating lint files for backported methods only (compile API B)

> Task :react-native-community_blur:prepareLintJarForPublish
> Task :react-native-vision-camera:extractProguardFiles
> Task :react-native-vision-camera:prepareLintJarForPublish
> Task :react-native-worklets-core:processReleaseJavaRes NO-SOURCE
> Task :react-native-worklets-core:bundleLibRuntimeToJarRelease
> Task :react-native-worklets-core:extractProguardFiles
> Task :react-native-worklets-core:createFullJarRelease
> Task :react-native-worklets-core:generateReleaseLintModel
> Task :react-native-worklets-core:prepareLintJarForPublish

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[arm64-v8a]
C/C++: VisionCamera: Frame Processors: OFF!
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeRelWithDebInfo[arm64-v8a]

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[armeabi-v7a]
C/C++: VisionCamera: Frame Processors: OFF!
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeRelWithDebInfo[armeabi-v7a]

> Task :react-native-vision-camera:compileReleaseKotlin
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/MetadataProvider.kt:44:25 'requestSingleUpdate(String, LocationListener, Looper?): Unit' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:71:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:96:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/utils/CamcorderProfileUtils.kt:121:42 'get(Int, Int): CamcorderProfile!' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt:13:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///app/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/react/CameraViewModule.kt:37:2 'ReactModule' is deprecated. Deprecated in Java

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[x86]
C/C++: VisionCamera: Frame Processors: OFF!
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:compileReleaseJavaWithJavac
> Task :react-native-vision-camera:bundleLibCompileToJarRelease
> Task :react-native-vision-camera:processReleaseJavaRes
> Task :react-native-vision-camera:bundleLibRuntimeToJarRelease
> Task :react-native-vision-camera:createFullJarRelease
> Task :react-native-vision-camera:generateReleaseLintModel
> Task :app:compileReleaseKotlin
> Task :react-native-vision-camera:buildCMakeRelWithDebInfo[x86]
> Task :app:compileReleaseJavaWithJavac
> Task :app:generateReleaseLintVitalReportModel

> Task :react-native-vision-camera:configureCMakeRelWithDebInfo[x86_64]
C/C++: VisionCamera: Frame Processors: OFF!
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:buildCMakeRelWithDebInfo[x86_64]
> Task :react-native-vision-camera:mergeReleaseJniLibFolders
> Task :react-native-vision-camera:extractDeepLinksForAarRelease
> Task :react-native-vision-camera:mergeReleaseNativeLibs
> Task :react-native-vision-camera:extractReleaseAnnotations
> Task :react-native-vision-camera:mergeReleaseGeneratedProguardFiles
> Task :react-native-vision-camera:mergeReleaseConsumerProguardFiles
> Task :react-native-vision-camera:mergeReleaseShaders
> Task :react-native-vision-camera:compileReleaseShaders NO-SOURCE
> Task :react-native-vision-camera:generateReleaseAssets UP-TO-DATE
> Task :react-native-vision-camera:packageReleaseAssets
> Task :react-native-vision-camera:stripReleaseDebugSymbols
> Task :react-native-vision-camera:externalNativeBuildRelease
> Task :react-native-vision-camera:generateJsonModelRelease
> Task :react-native-vision-camera:prefabReleaseConfigurePackage
> Task :react-native-vision-camera:copyReleaseJniLibsProjectAndLocalJars
> Task :react-native-vision-camera:prefabReleasePackage
> Task :react-native-vision-camera:prepareReleaseArtProfile
> Task :react-native-community_blur:mergeReleaseJniLibFolders
> Task :react-native-community_blur:mergeReleaseNativeLibs NO-SOURCE
> Task :react-native-community_blur:stripReleaseDebugSymbols NO-SOURCE
> Task :react-native-community_blur:copyReleaseJniLibsProjectAndLocalJars
> Task :react-native-community_blur:extractDeepLinksForAarRelease
> Task :react-native-community_blur:extractReleaseAnnotations
> Task :react-native-community_blur:mergeReleaseGeneratedProguardFiles
> Task :react-native-community_blur:mergeReleaseConsumerProguardFiles
> Task :react-native-community_blur:mergeReleaseShaders
> Task :react-native-community_blur:compileReleaseShaders NO-SOURCE
> Task :react-native-community_blur:generateReleaseAssets UP-TO-DATE
> Task :react-native-community_blur:packageReleaseAssets
> Task :react-native-community_blur:prepareReleaseArtProfile
> Task :react-native-community_blur:mergeReleaseJavaResource
> Task :react-native-vision-camera:mergeReleaseJavaResource

> Task :react-native-worklets-core:configureCMakeRelWithDebInfo[arm64-v8a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-vision-camera:syncReleaseLibJars
> Task :react-native-vision-camera:bundleReleaseLocalLintAar
> Task :react-native-community_blur:syncReleaseLibJars
> Task :react-native-community_blur:bundleReleaseLocalLintAar
> Task :react-native-worklets-core:buildCMakeRelWithDebInfo[arm64-v8a]

> Task :react-native-worklets-core:configureCMakeRelWithDebInfo[armeabi-v7a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeRelWithDebInfo[armeabi-v7a]
C/C++: ninja: Entering directory `/app/node_modules/react-native-worklets-core/android/.cxx/RelWithDebInfo/5i6no474/armeabi-v7a'
C/C++: In file included from /app/node_modules/react-native-worklets-core/cpp/WKTJsiWorkletContext.cpp:15:
C/C++: /app/node_modules/react-native-worklets-core/android/../cpp/decorators/WKTJsiSetImmediateDecorator.h:85:53: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
C/C++:                   printf("ctx %lu: setImmediate\n", context->getContextId());
C/C++:                               ~~~                   ^~~~~~~~~~~~~~~~~~~~~~~
C/C++:                               %zu
C/C++: 1 warning generated.

> Task :react-native-worklets-core:configureCMakeRelWithDebInfo[x86]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeRelWithDebInfo[x86]
C/C++: ninja: Entering directory `/app/node_modules/react-native-worklets-core/android/.cxx/RelWithDebInfo/5i6no474/x86'
C/C++: In file included from /app/node_modules/react-native-worklets-core/cpp/WKTJsiWorkletContext.cpp:15:
C/C++: /app/node_modules/react-native-worklets-core/android/../cpp/decorators/WKTJsiSetImmediateDecorator.h:85:53: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
C/C++:                   printf("ctx %lu: setImmediate\n", context->getContextId());
C/C++:                               ~~~                   ^~~~~~~~~~~~~~~~~~~~~~~
C/C++:                               %zu
C/C++: 1 warning generated.

> Task :react-native-worklets-core:configureCMakeRelWithDebInfo[x86_64]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-worklets-core:buildCMakeRelWithDebInfo[x86_64]
> Task :react-native-worklets-core:mergeReleaseJniLibFolders
> Task :react-native-worklets-core:extractDeepLinksForAarRelease
> Task :react-native-worklets-core:extractReleaseAnnotations
> Task :react-native-worklets-core:mergeReleaseGeneratedProguardFiles
> Task :react-native-worklets-core:mergeReleaseConsumerProguardFiles
> Task :react-native-worklets-core:mergeReleaseShaders
> Task :react-native-worklets-core:compileReleaseShaders NO-SOURCE
> Task :react-native-worklets-core:generateReleaseAssets UP-TO-DATE
> Task :react-native-worklets-core:packageReleaseAssets
> Task :react-native-worklets-core:mergeReleaseNativeLibs
> Task :react-native-worklets-core:externalNativeBuildRelease
> Task :react-native-worklets-core:generateJsonModelRelease
> Task :react-native-worklets-core:prefabReleaseConfigurePackage
> Task :react-native-worklets-core:stripReleaseDebugSymbols
> Task :react-native-worklets-core:prefabReleasePackage
> Task :react-native-worklets-core:prepareReleaseArtProfile
> Task :react-native-worklets-core:mergeReleaseJavaResource
> Task :react-native-worklets-core:copyReleaseJniLibsProjectAndLocalJars
> Task :react-native-worklets-core:syncReleaseLibJars
> Task :react-native-worklets-core:bundleReleaseLocalLintAar
> Task :react-native-community_blur:writeReleaseLintModelMetadata
> Task :react-native-vision-camera:writeReleaseLintModelMetadata
> Task :react-native-worklets-core:writeReleaseLintModelMetadata
> Task :react-native-community_blur:generateReleaseLintVitalModel
> Task :react-native-vision-camera:generateReleaseLintVitalModel
> Task :react-native-worklets-core:generateReleaseLintVitalModel
> Task :app:mergeReleaseJniLibFolders
> Task :react-native-community_blur:copyReleaseJniLibsProjectOnly
> Task :react-native-vision-camera:exportReleaseConsumerProguardFiles
> Task :react-native-community_blur:exportReleaseConsumerProguardFiles
> Task :react-native-worklets-core:exportReleaseConsumerProguardFiles
> Task :react-native-vision-camera:copyReleaseJniLibsProjectOnly
> Task :react-native-worklets-core:copyReleaseJniLibsProjectOnly
> Task :app:checkReleaseDuplicateClasses
> Task :app:mergeReleaseGeneratedProguardFiles
> Task :app:mergeReleaseArtProfile
> Task :app:processReleaseJavaRes
> Task :app:mergeReleaseNativeLibs
> Task :app:mergeReleaseShaders
> Task :app:expandReleaseArtProfileWildcards
> Task :app:compileReleaseShaders NO-SOURCE
> Task :app:generateReleaseAssets UP-TO-DATE
> Task :app:mergeReleaseJavaResource
> Task :app:mergeReleaseAssets
> Task :app:stripReleaseDebugSymbols
> Task :react-native-worklets-core:lintVitalAnalyzeRelease
> Task :react-native-community_blur:lintVitalAnalyzeRelease
> Task :app:extractReleaseVersionControlInfo
> Task :app:compressReleaseAssets
> Task :app:extractReleaseNativeSymbolTables
> Task :app:collectReleaseDependencies
> Task :app:mergeReleaseNativeDebugMetadata
> Task :app:sdkReleaseDependencyData
> Task :app:validateSigningRelease
> Task :app:writeReleaseAppMetadata
> Task :app:writeReleaseSigningConfigVersions
> Task :react-native-community_blur:bundleReleaseAar
> Task :react-native-community_blur:mapReleaseSourceSetPaths
> Task :react-native-community_blur:mergeReleaseResources
> Task :react-native-vision-camera:bundleReleaseAar
> Task :react-native-vision-camera:mapReleaseSourceSetPaths
> Task :react-native-community_blur:verifyReleaseResources
> Task :react-native-vision-camera:mergeReleaseResources
> Task :react-native-community_blur:assembleRelease
> Task :react-native-vision-camera:verifyReleaseResources
> Task :react-native-worklets-core:bundleReleaseAar
> Task :react-native-vision-camera:assembleRelease
> Task :react-native-worklets-core:mapReleaseSourceSetPaths
> Task :react-native-worklets-core:mergeReleaseResources
> Task :app:optimizeReleaseResources
> Task :react-native-worklets-core:verifyReleaseResources
> Task :react-native-worklets-core:assembleRelease
> Task :react-native-vision-camera:lintVitalAnalyzeRelease
> Task :app:minifyReleaseWithR8
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /app/android/app/build/outputs/mapping/release/missing_rules.txt.
ERROR: R8: Missing class com.google.common.logging.Vr$VREvent$Cyclops$Share$Type (referenced from: com.google.common.logging.Vr$VREvent$Cyclops$Share$Type com.google.common.logging.nano.Vr$VREvent$Cyclops$Share.type and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$CameraFirmwareUpdate$UpdateOutcome (referenced from: com.google.common.logging.Vr$VREvent$Eva$CameraFirmwareUpdate$UpdateOutcome com.google.common.logging.nano.Vr$VREvent$Eva$CameraFirmwareUpdate.outcome and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$ExportMedia$Type (referenced from: com.google.common.logging.Vr$VREvent$Eva$ExportMedia$Type com.google.common.logging.nano.Vr$VREvent$Eva$ExportMedia.exportMediaType and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$FileTransfer$FileType (referenced from: com.google.common.logging.Vr$VREvent$Eva$FileTransfer$FileType com.google.common.logging.nano.Vr$VREvent$Eva$FileTransfer.fileType and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$FileTransfer$Outcome (referenced from: com.google.common.logging.Vr$VREvent$Eva$FileTransfer$Outcome com.google.common.logging.nano.Vr$VREvent$Eva$FileTransfer.outcome and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$FileTransfer$TransferInterface (referenced from: com.google.common.logging.Vr$VREvent$Eva$FileTransfer$TransferInterface com.google.common.logging.nano.Vr$VREvent$Eva$FileTransfer.transferInterface and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$Pairing$Outcome (referenced from: com.google.common.logging.Vr$VREvent$Eva$Pairing$Outcome com.google.common.logging.nano.Vr$VREvent$Eva$Pairing.outcome and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$SelectionAction$ActionEntryPoint (referenced from: com.google.common.logging.Vr$VREvent$Eva$SelectionAction$ActionEntryPoint com.google.common.logging.nano.Vr$VREvent$Eva$SelectionAction.entryPoint and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$SelectionAction$ActionOutcome (referenced from: com.google.common.logging.Vr$VREvent$Eva$SelectionAction$ActionOutcome com.google.common.logging.nano.Vr$VREvent$Eva$SelectionAction.outcome and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$View$MediaType (referenced from: com.google.common.logging.Vr$VREvent$Eva$View$MediaType com.google.common.logging.nano.Vr$VREvent$Eva$Delete.mediaType and 7 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$View$TriggerAction (referenced from: com.google.common.logging.Vr$VREvent$Eva$View$TriggerAction com.google.common.logging.nano.Vr$VREvent$Eva$View.triggerAction and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$View$ViewSource (referenced from: com.google.common.logging.Vr$VREvent$Eva$View$ViewSource com.google.common.logging.nano.Vr$VREvent$Eva$Delete.source and 7 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$View$ViewType (referenced from: com.google.common.logging.Vr$VREvent$Eva$View$ViewType com.google.common.logging.nano.Vr$VREvent$Eva$View.viewType and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Eva$WigglegramGeneration$Status (referenced from: com.google.common.logging.Vr$VREvent$Eva$WigglegramGeneration$Status com.google.common.logging.nano.Vr$VREvent$Eva$WigglegramGeneration.generationStatus and 3 other contexts)
Missing class com.google.common.logging.Vr$VREvent$Vr180Creator$VideoQuality (referenced from: com.google.common.logging.Vr$VREvent$Vr180Creator$VideoQuality com.google.common.logging.nano.Vr$VREvent$Vr180Creator$VideoConvert.videoQuality and 7 other contexts)
Missing class com.google.protobuf.CodedOutputStream (referenced from: int com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.computeSerializedSize())
Missing class com.google.protobuf.GeneratedMessageLite (referenced from: com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.mergeFrom(com.google.protobuf.nano.CodedInputByteBufferNano))
Missing class com.google.protobuf.MessageLite (referenced from: int com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.computeSerializedSize() and 1 other context)
Missing class com.google.protobuf.Parser (referenced from: com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.mergeFrom(com.google.protobuf.nano.CodedInputByteBufferNano))
Missing class com.google.protobuf.nano.NanoEnumValue (referenced from: java.lang.Integer com.google.common.logging.nano.Vr$VREvent$AudioStats.renderingMode and 179 other contexts)
Missing class logs.proto.wireless.performance.mobile.MemoryMetric$AndroidMemoryStats (referenced from: logs.proto.wireless.performance.mobile.MemoryMetric$AndroidMemoryStats com.google.common.logging.nano.Vr$VREvent$VrCore$DashboardEvent.worldAppMemoryStats and 1 other context)

> Task :app:minifyReleaseWithR8 FAILED
> Task :app:lintVitalAnalyzeRelease

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:minifyReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
   > Compilation failed to complete

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
199 actionable tasks: 194 executed, 5 up-to-date
> Get more help at https://help.gradle.org.

BUILD FAILED in 4m 41s

> echo Build failed with Node 22 and jdk version 17 with the following error: Command '['docker', 'run', '--rm', '-v', '/home/ubuntu/storage/extracted/MemerGamer-GrocARy/GrocARy-40dcdc04ce813703b939cf8d7b4eff7a5520cb9c:/source:ro', '-v', '/home/ubuntu/BachelorsThesis/scripts/RN/output/MemerGamer-GrocARy:/output', '-v', '/home/ubuntu/.npm:/root/.npm', 'react-android:22-jdk17', 'bash', '-c', '\n                set -e\n\n                cp -r /source/. /app &&                 cd /app && \n                # ---- install deps (yarn or npm) ----\n                if [ -f yarn.lock ]; then\n                    yarn install;\n                else\n                    npm install --ignore-scripts;\n                fi && \n                # ---- stub missing parent package.json (monorepo metro configs) ----\n                [ ! -f ../package.json ] && cp package.json ../package.json 2>/dev/null || true && \n                # ---- patch toReversed (Node <20 compat) ----\n                find node_modules -name "loadConfig.js" -path "*/metro-config/*" -exec sed -i \'s/\\.toReversed()/.slice().reverse()/g\' {} \\; 2>/dev/null || true && \n                # ---- patch missing expo/AppEntry ----\n                if grep -q \'"main".*expo/AppEntry\' package.json 2>/dev/null &&                    [ ! -f node_modules/expo/AppEntry.js ] && [ ! -f node_modules/expo/AppEntry.ts ]; then                     node -e "const fs=require(\'fs\'); const p=JSON.parse(fs.readFileSync(\'package.json\',\'utf8\')); if(fs.existsSync(\'index.js\')){p.main=\'index.js\'; fs.writeFileSync(\'package.json\',JSON.stringify(p,null,2));}" 2>/dev/null || true;                 fi && \n                # ---- patch broken metro config (ESM-only, null-returning, or monorepo-only) ----\n                # NOTE: do NOT replace configs that merely use expo/metro-config — those carry\n                # Expo-specific resolver paths (watchFolders, extraNodeModules) needed for\n                # packages like @react-native-masked-view/masked-view to resolve.\n                if grep -q \'react-native-monorepo-config\' metro.config.js 2>/dev/null ||                    ! node -e "const c=require(\'./metro.config.js\'); if(!c||typeof c!==\'object\') process.exit(1);" 2>/dev/null; then                     if [ -d node_modules/@react-native/metro-config ]; then                         printf \'const {getDefaultConfig, mergeConfig} = require("@react-native/metro-config");\nmodule.exports = mergeConfig(getDefaultConfig(__dirname), {});\n\' > metro.config.js;                     else                         printf \'const {getDefaultConfig} = require("metro-config");\nmodule.exports = getDefaultConfig(__dirname);\n\' > metro.config.js;                     fi;                 fi && \n                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----\n                if [ ! -f google-services.json ]; then                     python3 -c "import json; open(\'google-services.json\',\'w\').write(json.dumps({\'project_info\':{\'project_number\':\'000000000000\',\'project_id\':\'stub\',\'storage_bucket\':\'stub.appspot.com\'},\'client\':[{\'client_info\':{\'mobilesdk_app_id\':\'1:000000000000:android:0000000000000000\',\'android_client_info\':{\'package_name\':\'com.stub\'}},\'oauth_client\':[],\'api_key\':[{\'current_key\':\'stub\'}],\'services\':{\'appinvite_service\':{\'other_platform_oauth_client\':[]}}}],\'configuration_version\':\'1\'}))" 2>/dev/null || true;                 fi && \n                # ---- detect expo ----\n                if grep -q \'"expo"\' package.json && [ ! -d android ]; then\n                    echo "Expo project detected";\n                    CI=1 npx --yes expo prebuild --platform android\n                fi && \n                # ---- fix expo/metro-config: serializer + Flow transformIgnorePatterns ----\n                # Runs AFTER prebuild because prebuild generates metro.config.js for managed-workflow\n                # projects — patching before prebuild would be overwritten by the generated file.\n                # Fix 1: remove customSerializer that returns JS string instead of JSON\n                #   ("var __BUND..." → "Serializer did not return expected format").\n                # Fix 2: add transformIgnorePatterns so expo/src/Expo.ts goes through Babel\n                #   (default pattern excludes all node_modules → raw Flow types → SyntaxError).\n                if [ -f metro.config.js ] && [ -d node_modules/expo ] &&                    ( grep -q \'expo/metro-config\\|@expo/metro-config\' metro.config.js 2>/dev/null ||                      ! grep -q \'transformIgnorePatterns\' metro.config.js 2>/dev/null ); then                     cp metro.config.js metro.config.orig.js &&                     printf \'const c=require("./metro.config.orig.js");const r=Object.assign({},c);if(r.serializer){r.serializer=Object.assign({},r.serializer);delete r.serializer.customSerializer;}r.transformer=Object.assign({},r.transformer||{});if(!r.transformer.transformIgnorePatterns){r.transformer.transformIgnorePatterns=["node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|react-clone-referenced-element|@react-navigation|native-base)/)"];}module.exports=r;\\n\' > metro.config.js;                 fi && \n                # ---- stub missing metro watchFolders paths ----\n                mkdir -p /src 2>/dev/null || true && \n                # ---- fix babel configs that use react-native-builder-bob ----\n                # builder-bob is a library-dev tool; its getConfig() throws "Couldn\'t determine the source\n                # directory" when built outside the library\'s own workspace. Replace with a standard preset.\n                if grep -ql \'react-native-builder-bob\' babel.config.js babel.config.json .babelrc .babelrc.js 2>/dev/null; then                     if [ -d node_modules/babel-preset-expo ]; then                         printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                     elif [ -d node_modules/@react-native/babel-preset ]; then                         printf \'module.exports={presets:["module:@react-native/babel-preset"]};\' > babel.config.js;                     else                         printf \'module.exports={presets:["module:metro-react-native-babel-preset"]};\' > babel.config.js;                     fi;                 fi && \n                # ---- ensure TypeScript babel support (fixes \'interface\' SyntaxError in metro bundling) ----\n                if [ -d node_modules/babel-preset-expo ]; then                     grep -ql "expo\\|typescript" babel.config.js .babelrc .babelrc.js babel.config.json 2>/dev/null ||                     printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                 fi && \n                # ---- stub missing-asset-registry-path (Metro virtual module not resolved in release) ----\n                # Metro normally aliases this to @react-native/assets-registry/registry at bundle time.\n                # When that alias is missing, any PNG asset in node_modules triggers "Unable to resolve module".\n                if [ ! -d node_modules/missing-asset-registry-path ]; then                     mkdir -p node_modules/missing-asset-registry-path &&                     if [ -f node_modules/@react-native/assets-registry/registry.js ]; then                         printf \'module.exports=require("@react-native/assets-registry/registry");\' > node_modules/missing-asset-registry-path/index.js;                     else                         printf \'module.exports={registerAsset:function(){return 0;},getAssetByID:function(){return null;}};\' > node_modules/missing-asset-registry-path/index.js;                     fi;                 fi && \n                # ---- stub @react-native-masked-view/masked-view if missing ----\n                # Required by @react-navigation/elements but often not installed as a direct dependency.\n                if [ ! -d node_modules/@react-native-masked-view/masked-view ]; then                     mkdir -p node_modules/@react-native-masked-view/masked-view &&                     printf \'{"name":"@react-native-masked-view/masked-view","version":"0.1.11","main":"index.js"}\' > node_modules/@react-native-masked-view/masked-view/package.json &&                     printf \'const React=require("react");const {View}=require("react-native");function MaskedView(p){return React.createElement(View,p.style?{style:p.style}:{},p.children);}module.exports=MaskedView;module.exports.default=MaskedView;\' > node_modules/@react-native-masked-view/masked-view/index.js;                 fi && \n                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && \n                chmod +x gradlew && \n                # ---- inject fallback repositories via Gradle init script ----\n                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo \'gradle.beforeProject {project ->\' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.buildscript.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'}\' >> $GRADLE_USER_HOME/init.d/repos.gradle && \n                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----\n                sed -i \'s/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\\/.bin\\/react-native config")/\' settings.gradle 2>/dev/null || true && \n                # ---- disable Sentry source map upload (no credentials in CI) ----\n                export SENTRY_DISABLE_AUTO_UPLOAD=true &&                 echo "sentryUploadEnabled=false" >> gradle.properties 2>/dev/null || true && \n                # ---- enable ABI splits ----\n                if grep -q \'splits\' app/build.gradle 2>/dev/null; then                     sed -i \'s/enable false/enable true/\' app/build.gradle || true;                 else                     sed -i \'/^android[[:space:]]*{/a\\    splits {\\n        abi {\\n            reset()\\n            enable true\\n            universalApk false\\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\\n        }\\n    }\' app/build.gradle || true;                 fi && \n                # ---- enable R8 ----\n                sed -i \'s/enableProguardInReleaseBuilds = false/enableProguardInReleaseBuilds = true/\' app/build.gradle || true && \n                # ---- sign release with debug key ----\n                sed -i \'/buildTypes/,/}/s/release {/release {\n            signingConfig signingConfigs.debug/\' app/build.gradle || true && \n                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----\n                ./gradlew :app:dependencies --configuration releaseCompileClasspath --no-daemon > /dev/null 2>&1 || true && \n                # ---- build release apk ----\n                ./gradlew assembleRelease --no-daemon || exit 1 &&                     \n                APK_PATH="app/build/outputs/apk/release"\n\n                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then\n                    echo "ERROR: APK not generated"\n                    exit 1\n                fi\n\n                # ---- copy output ----\n                cp app/build/outputs/apk/release/*.apk /output/r8/\n\n                # ---- copy TPL metadata ----\n                [ -f ../package.json ] && cp ../package.json /output/r8/ || true\n                [ -f ../package-lock.json ] && cp ../package-lock.json /output/r8/ || true\n                [ -f ../yarn.lock ] && cp ../yarn.lock /output/r8/ || true\n                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/r8/ || true\n                [ -f app/build.gradle ] && cp app/build.gradle /output/r8/android-build.gradle || true\n                [ -f build.gradle ] && cp build.gradle /output/r8/root-build.gradle || true\n                [ -f build.gradle.kts ] && cp build.gradle.kts /output/r8/root-build.gradle.kts || true\n                [ -f settings.gradle ] && cp settings.gradle /output/r8/ || true\n                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/r8/ || true\n                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/r8/ || true\n                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                mkdir -p /output/r8/libs\n                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                    ']' returned non-zero exit status 1.
Build failed with Node 22 and jdk version 17 with the following error: Command '['docker', 'run', '--rm', '-v', '/home/ubuntu/storage/extracted/MemerGamer-GrocARy/GrocARy-40dcdc04ce813703b939cf8d7b4eff7a5520cb9c:/source:ro', '-v', '/home/ubuntu/BachelorsThesis/scripts/RN/output/MemerGamer-GrocARy:/output', '-v', '/home/ubuntu/.npm:/root/.npm', 'react-android:22-jdk17', 'bash', '-c', '\n                set -e\n\n                cp -r /source/. /app &&                 cd /app && \n                # ---- install deps (yarn or npm) ----\n                if [ -f yarn.lock ]; then\n                    yarn install;\n                else\n                    npm install --ignore-scripts;\n                fi && \n                # ---- stub missing parent package.json (monorepo metro configs) ----\n                [ ! -f ../package.json ] && cp package.json ../package.json 2>/dev/null || true && \n                # ---- patch toReversed (Node <20 compat) ----\n                find node_modules -name "loadConfig.js" -path "*/metro-config/*" -exec sed -i \'s/\\.toReversed()/.slice().reverse()/g\' {} \\; 2>/dev/null || true && \n                # ---- patch missing expo/AppEntry ----\n                if grep -q \'"main".*expo/AppEntry\' package.json 2>/dev/null &&                    [ ! -f node_modules/expo/AppEntry.js ] && [ ! -f node_modules/expo/AppEntry.ts ]; then                     node -e "const fs=require(\'fs\'); const p=JSON.parse(fs.readFileSync(\'package.json\',\'utf8\')); if(fs.existsSync(\'index.js\')){p.main=\'index.js\'; fs.writeFileSync(\'package.json\',JSON.stringify(p,null,2));}" 2>/dev/null || true;                 fi && \n                # ---- patch broken metro config (ESM-only, null-returning, or monorepo-only) ----\n                # NOTE: do NOT replace configs that merely use expo/metro-config — those carry\n                # Expo-specific resolver paths (watchFolders, extraNodeModules) needed for\n                # packages like @react-native-masked-view/masked-view to resolve.\n                if grep -q \'react-native-monorepo-config\' metro.config.js 2>/dev/null ||                    ! node -e "const c=require(\'./metro.config.js\'); if(!c||typeof c!==\'object\') process.exit(1);" 2>/dev/null; then                     if [ -d node_modules/@react-native/metro-config ]; then                         printf \'const {getDefaultConfig, mergeConfig} = require("@react-native/metro-config");\nmodule.exports = mergeConfig(getDefaultConfig(__dirname), {});\n\' > metro.config.js;                     else                         printf \'const {getDefaultConfig} = require("metro-config");\nmodule.exports = getDefaultConfig(__dirname);\n\' > metro.config.js;                     fi;                 fi && \n                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----\n                if [ ! -f google-services.json ]; then                     python3 -c "import json; open(\'google-services.json\',\'w\').write(json.dumps({\'project_info\':{\'project_number\':\'000000000000\',\'project_id\':\'stub\',\'storage_bucket\':\'stub.appspot.com\'},\'client\':[{\'client_info\':{\'mobilesdk_app_id\':\'1:000000000000:android:0000000000000000\',\'android_client_info\':{\'package_name\':\'com.stub\'}},\'oauth_client\':[],\'api_key\':[{\'current_key\':\'stub\'}],\'services\':{\'appinvite_service\':{\'other_platform_oauth_client\':[]}}}],\'configuration_version\':\'1\'}))" 2>/dev/null || true;                 fi && \n                # ---- detect expo ----\n                if grep -q \'"expo"\' package.json && [ ! -d android ]; then\n                    echo "Expo project detected";\n                    CI=1 npx --yes expo prebuild --platform android\n                fi && \n                # ---- fix expo/metro-config: serializer + Flow transformIgnorePatterns ----\n                # Runs AFTER prebuild because prebuild generates metro.config.js for managed-workflow\n                # projects — patching before prebuild would be overwritten by the generated file.\n                # Fix 1: remove customSerializer that returns JS string instead of JSON\n                #   ("var __BUND..." → "Serializer did not return expected format").\n                # Fix 2: add transformIgnorePatterns so expo/src/Expo.ts goes through Babel\n                #   (default pattern excludes all node_modules → raw Flow types → SyntaxError).\n                if [ -f metro.config.js ] && [ -d node_modules/expo ] &&                    ( grep -q \'expo/metro-config\\|@expo/metro-config\' metro.config.js 2>/dev/null ||                      ! grep -q \'transformIgnorePatterns\' metro.config.js 2>/dev/null ); then                     cp metro.config.js metro.config.orig.js &&                     printf \'const c=require("./metro.config.orig.js");const r=Object.assign({},c);if(r.serializer){r.serializer=Object.assign({},r.serializer);delete r.serializer.customSerializer;}r.transformer=Object.assign({},r.transformer||{});if(!r.transformer.transformIgnorePatterns){r.transformer.transformIgnorePatterns=["node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|react-clone-referenced-element|@react-navigation|native-base)/)"];}module.exports=r;\\n\' > metro.config.js;                 fi && \n                # ---- stub missing metro watchFolders paths ----\n                mkdir -p /src 2>/dev/null || true && \n                # ---- fix babel configs that use react-native-builder-bob ----\n                # builder-bob is a library-dev tool; its getConfig() throws "Couldn\'t determine the source\n                # directory" when built outside the library\'s own workspace. Replace with a standard preset.\n                if grep -ql \'react-native-builder-bob\' babel.config.js babel.config.json .babelrc .babelrc.js 2>/dev/null; then                     if [ -d node_modules/babel-preset-expo ]; then                         printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                     elif [ -d node_modules/@react-native/babel-preset ]; then                         printf \'module.exports={presets:["module:@react-native/babel-preset"]};\' > babel.config.js;                     else                         printf \'module.exports={presets:["module:metro-react-native-babel-preset"]};\' > babel.config.js;                     fi;                 fi && \n                # ---- ensure TypeScript babel support (fixes \'interface\' SyntaxError in metro bundling) ----\n                if [ -d node_modules/babel-preset-expo ]; then                     grep -ql "expo\\|typescript" babel.config.js .babelrc .babelrc.js babel.config.json 2>/dev/null ||                     printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                 fi && \n                # ---- stub missing-asset-registry-path (Metro virtual module not resolved in release) ----\n                # Metro normally aliases this to @react-native/assets-registry/registry at bundle time.\n                # When that alias is missing, any PNG asset in node_modules triggers "Unable to resolve module".\n                if [ ! -d node_modules/missing-asset-registry-path ]; then                     mkdir -p node_modules/missing-asset-registry-path &&                     if [ -f node_modules/@react-native/assets-registry/registry.js ]; then                         printf \'module.exports=require("@react-native/assets-registry/registry");\' > node_modules/missing-asset-registry-path/index.js;                     else                         printf \'module.exports={registerAsset:function(){return 0;},getAssetByID:function(){return null;}};\' > node_modules/missing-asset-registry-path/index.js;                     fi;                 fi && \n                # ---- stub @react-native-masked-view/masked-view if missing ----\n                # Required by @react-navigation/elements but often not installed as a direct dependency.\n                if [ ! -d node_modules/@react-native-masked-view/masked-view ]; then                     mkdir -p node_modules/@react-native-masked-view/masked-view &&                     printf \'{"name":"@react-native-masked-view/masked-view","version":"0.1.11","main":"index.js"}\' > node_modules/@react-native-masked-view/masked-view/package.json &&                     printf \'const React=require("react");const {View}=require("react-native");function MaskedView(p){return React.createElement(View,p.style?{style:p.style}:{},p.children);}module.exports=MaskedView;module.exports.default=MaskedView;\' > node_modules/@react-native-masked-view/masked-view/index.js;                 fi && \n                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && \n                chmod +x gradlew && \n                # ---- inject fallback repositories via Gradle init script ----\n                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo \'gradle.beforeProject {project ->\' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.buildscript.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'}\' >> $GRADLE_USER_HOME/init.d/repos.gradle && \n                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----\n                sed -i \'s/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\\/.bin\\/react-native config")/\' settings.gradle 2>/dev/null || true && \n                # ---- disable Sentry source map upload (no credentials in CI) ----\n                export SENTRY_DISABLE_AUTO_UPLOAD=true &&                 echo "sentryUploadEnabled=false" >> gradle.properties 2>/dev/null || true && \n                # ---- enable ABI splits ----\n                if grep -q \'splits\' app/build.gradle 2>/dev/null; then                     sed -i \'s/enable false/enable true/\' app/build.gradle || true;                 else                     sed -i \'/^android[[:space:]]*{/a\\    splits {\\n        abi {\\n            reset()\\n            enable true\\n            universalApk false\\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\\n        }\\n    }\' app/build.gradle || true;                 fi && \n                # ---- enable R8 ----\n                sed -i \'s/enableProguardInReleaseBuilds = false/enableProguardInReleaseBuilds = true/\' app/build.gradle || true && \n                # ---- sign release with debug key ----\n                sed -i \'/buildTypes/,/}/s/release {/release {\n            signingConfig signingConfigs.debug/\' app/build.gradle || true && \n                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----\n                ./gradlew :app:dependencies --configuration releaseCompileClasspath --no-daemon > /dev/null 2>&1 || true && \n                # ---- build release apk ----\n                ./gradlew assembleRelease --no-daemon || exit 1 &&                     \n                APK_PATH="app/build/outputs/apk/release"\n\n                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then\n                    echo "ERROR: APK not generated"\n                    exit 1\n                fi\n\n                # ---- copy output ----\n                cp app/build/outputs/apk/release/*.apk /output/r8/\n\n                # ---- copy TPL metadata ----\n                [ -f ../package.json ] && cp ../package.json /output/r8/ || true\n                [ -f ../package-lock.json ] && cp ../package-lock.json /output/r8/ || true\n                [ -f ../yarn.lock ] && cp ../yarn.lock /output/r8/ || true\n                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/r8/ || true\n                [ -f app/build.gradle ] && cp app/build.gradle /output/r8/android-build.gradle || true\n                [ -f build.gradle ] && cp build.gradle /output/r8/root-build.gradle || true\n                [ -f build.gradle.kts ] && cp build.gradle.kts /output/r8/root-build.gradle.kts || true\n                [ -f settings.gradle ] && cp settings.gradle /output/r8/ || true\n                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/r8/ || true\n                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/r8/ || true\n                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                mkdir -p /output/r8/libs\n                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                    ']' returned non-zero exit status 1.
