facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.56k stars 24.37k forks source link

Custom C/C++ failed with more errors in: autolinking.cpp and react-native-safe-area-context #47904

Open ObscurusGrassator opened 1 week ago

ObscurusGrassator commented 1 week ago

Description

In old architecture this work ok.

In new architecture I (by instruction of https://github.com/facebook/react-native/issues/47352#issuecomment-2455303986) add `include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake) line to CMakeLists.txt and copy OnLoad.cpp file from node_module to directory with CMakeLists.txt.

Steps to reproduce

  1. npx @react-native-community/cli@latest init Demo --install-pods false
  2. Adding steps from: https://github.com/ObscurusGrassator/openWakeWord-cpp/blob/AndroidImplementation Path to CMakeLists.txt: JJAssistant / android / app / src / main / срр / openWakeWord-cpp / src / android / CMakeLists.txt
  3. react-native start --reset-cache --verbose

React Native Version

0.76.3

Affected Platforms

Runtime - Android, Build - MacOS

Areas

Bridgeless - The New Initialization Flow

Output of npx react-native info

System:
  OS: macOS 14.7
  CPU: (12) arm64 Apple M2 Max
  Memory: 1.14 GB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.17.0
    path: ~/.nvm/versions/node/v20.17.0/bin/node
  Yarn:
    version: 1.22.19
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v20.17.0/bin/npm
  Watchman:
    version: 2024.04.08.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK:
    API Levels:
      - "34"
      - "35"
    Build Tools:
      - 34.0.0
      - 35.0.0
    System Images:
      - android-34 | AOSP ATD ARM 64 v8a
      - android-34 | ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
      - android-34 | Google Play ARM 64 v8a
      - android-35 | AOSP ATD ARM 64
      - android-35 | ARM 64 v8a
      - android-35 | Google APIs ARM 64 v8a
      - android-35 | Google Play ARM 64 v8a
      - android-35 | Pre-Release 16 KB Page Size Google Play ARM 64 v8a
      - android-35 | Pre-Release 16 KB Page Size Google APIs ARM 64 v8a
      - android-35 | Google APIs ATD ARM 64
    Android NDK: Not Found
IDEs:
  Android Studio: 2023.1 AI-231.9392.1.2311.11330709
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.6
    path: /usr/bin/javac
  Ruby:
    version: 2.7.8
    path: /opt/homebrew/opt/ruby@2.7/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.2
    wanted: 15.1.2
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.3
    wanted: 0.76.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

/android/app/build.gradle:

...
android {
    ndkVersion rootProject.ext.ndkVersion
    buildToolsVersion rootProject.ext.buildToolsVersion
    compileSdk rootProject.ext.compileSdkVersion

    defaultConfig {
        applicationId "com.jjassistant"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        ....
        ndk {
            ldLibs "log"
        }
        externalNativeBuild {
            cmake {
                arguments "-DANDROID_ARM_NEON=TRUE", "-DANDROID_TOOLCHAIN=clang"
                cFlags "-D__STDC_FORMAT_MACROS"
                cppFlags "-fexceptions", "-frtti" //, "-std=c++17"
            }
        }
    }
    externalNativeBuild {
        cmake {
            path "src/main/cpp/openWakeWord-cpp/src/android/CMakeLists.txt"
        }
    }
...

Stacktrace or Logs

> Task :app:buildCMakeDebug[arm64-v8a]
C/C++: ninja: Entering directory `/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/.cxx/Debug/5i53s494/arm64-v8a'
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:39:19: warning: unused parameter 'stream' [-Wunused-parameter]
C/C++:     AAudioStream *stream,
C/C++:                   ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:40:11: warning: unused parameter 'userData' [-Wunused-parameter]
C/C++:     void *userData,
C/C++:           ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:103:21: warning: unused variable 'result' [-Wunused-variable]
C/C++:     aaudio_result_t result = AAudio_createStreamBuilder(&builder);
C/C++:                     ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:72:26: warning: unused parameter 'instance' [-Wunused-parameter]
C/C++:     JNIEnv *env, jobject instance, jobject assetManager,
C/C++:                          ^
C/C++: 4 warnings generated.
C/C++: /Applications/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android27 --sysroot=/Applications/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -Dappmodules_EXPORTS -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/android -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/react/renderer/components/rngesturehandler_codegen -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/react/renderer/components/rnreanimated -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/d55dca9fafa00060f71567318650afda/transformed/jetified-fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/1f2bd9a9b9fe3c3fd656b022ba409baa/transformed/jetified-react-android-0.76.3-debug/prefab/modules/jsi/include -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/1f2bd9a9b9fe3c3fd656b022ba409baa/transformed/jetified-react-android-0.76.3-debug/prefab/modules/reactnative/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fexceptions -frtti -Wall -Wextra -fno-limit-debug-info  -fPIC -Wall -Werror -Wno-error=cpp -fexceptions -frtti -std=c++20 -DLOG_TAG=\"ReactNative\" -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DFOLLY_HAVE_XSI_STRERROR_R=1 -MD -MT CMakeFiles/appmodules.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o -MF CMakeFiles/appmodules.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o.d -o CMakeFiles/appmodules.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o -c /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp:11:
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/./react/renderer/components/rngesturehandler_codegen/ComponentDescriptors.h:13:
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/./react/renderer/components/rngesturehandler_codegen/ShadowNodes.h:15:
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/./react/renderer/components/rngesturehandler_codegen/States.h:22:66: error: unused parameter 'previousState' [-Werror,-Wunused-parameter]
C/C++:   RNGestureHandlerButtonState(RNGestureHandlerButtonState const &previousState, folly::dynamic data){};
C/C++:                                                                  ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/./react/renderer/components/rngesturehandler_codegen/States.h:22:96: error: unused parameter 'data' [-Werror,-Wunused-parameter]
C/C++:   RNGestureHandlerButtonState(RNGestureHandlerButtonState const &previousState, folly::dynamic data){};
C/C++:                                                                                                ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/./react/renderer/components/rngesturehandler_codegen/States.h:34:70: error: unused parameter 'previousState' [-Werror,-Wunused-parameter]
C/C++:   RNGestureHandlerRootViewState(RNGestureHandlerRootViewState const &previousState, folly::dynamic data){};
C/C++:                                                                      ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/./react/renderer/components/rngesturehandler_codegen/States.h:34:100: error: unused parameter 'data' [-Werror,-Wunused-parameter]
C/C++:   RNGestureHandlerRootViewState(RNGestureHandlerRootViewState const &previousState, folly::dynamic data){};
C/C++:                                                                                                    ^
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp:13:
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/safeareacontext.h:6:
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewComponentDescriptor.h:3:
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewShadowNode.h:5:
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/Props.h:30:59: error: unused parameter 'context' [-Werror,-Wunused-parameter]
C/C++: static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNCSafeAreaViewMode &result) {
C/C++:                                                           ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/Props.h:71:70: error: unused parameter 'value' [-Werror,-Wunused-parameter]
C/C++: static inline std::string toString(const RNCSafeAreaViewEdgesStruct &value) {
C/C++:                                                                      ^
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp:13:
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/safeareacontext.h:6:
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewComponentDescriptor.h:3:
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewShadowNode.h:6:
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewState.h:39:35: error: unused parameter 'previousState' [-Werror,-Wunused-parameter]
C/C++:       RNCSafeAreaViewState const &previousState,
C/C++:                                   ^
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp:14:
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/ComponentDescriptors.h:13:
C/C++: In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/ShadowNodes.h:15:
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/States.h:22:60: error: unused parameter 'previousState' [-Werror,-Wunused-parameter]
C/C++:   RNCSafeAreaProviderState(RNCSafeAreaProviderState const &previousState, folly::dynamic data){};
C/C++:                                                            ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/States.h:22:90: error: unused parameter 'data' [-Werror,-Wunused-parameter]
C/C++:   RNCSafeAreaProviderState(RNCSafeAreaProviderState const &previousState, folly::dynamic data){};
C/C++:                                                                                          ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp:35:78: error: unused parameter 'moduleName' [-Werror,-Wunused-parameter]
C/C++: std::shared_ptr<TurboModule> autolinking_cxxModuleProvider(const std::string moduleName, const std::shared_ptr<CallInvoker>& jsInvoker) {
C/C++:                                                                              ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp:35:126: error: unused parameter 'jsInvoker' [-Werror,-Wunused-parameter]
C/C++: std::shared_ptr<TurboModule> autolinking_cxxModuleProvider(const std::string moduleName, const std::shared_ptr<CallInvoker>& jsInvoker) {
C/C++:                                                                                                                              ^
C/C++: 11 errors generated.
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:16:69: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++: void RNCSafeAreaProviderEventEmitter::onInsetsChange(OnInsetsChange $event) const {
C/C++:                                                                     ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:17:34: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:   dispatchEvent("insetsChange", [$event=std::move($event)](jsi::Runtime &runtime) {
C/C++:                                  ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:17:51: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:   dispatchEvent("insetsChange", [$event=std::move($event)](jsi::Runtime &runtime) {
C/C++:                                                   ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:18:10: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:     auto $payload = jsi::Object(runtime);
C/C++:          ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:21:38: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:   insets.setProperty(runtime, "top", $event.insets.top);
C/C++:                                      ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:22:40: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:   insets.setProperty(runtime, "right", $event.insets.right);
C/C++:                                        ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:23:41: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:   insets.setProperty(runtime, "bottom", $event.insets.bottom);
C/C++:                                         ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:24:39: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:   insets.setProperty(runtime, "left", $event.insets.left);
C/C++:                                       ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:25:3: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:   $payload.setProperty(runtime, "insets", insets);
C/C++:   ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:29:35: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:   frame.setProperty(runtime, "x", $event.frame.x);
C/C++:                                   ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:30:35: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:   frame.setProperty(runtime, "y", $event.frame.y);
C/C++:                                   ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:31:39: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:   frame.setProperty(runtime, "width", $event.frame.width);
C/C++:                                       ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:32:40: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:   frame.setProperty(runtime, "height", $event.frame.height);
C/C++:                                        ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:33:3: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:   $payload.setProperty(runtime, "frame", frame);
C/C++:   ^
C/C++: /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:35:12: warning: '$' in identifier [-Wdollar-in-identifier-extension]
C/C++:     return $payload;
C/C++:            ^
C/C++: 15 warnings generated.

> Task :app:buildCMakeDebug[arm64-v8a] FAILED

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.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
239 actionable tasks: 16 executed, 223 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor 

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:buildCMakeDebug[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/.cxx/Debug/5i53s494/arm64-v8a'
  [0/2] Re-checking globbed directories...
  [1/29] Building CXX object rnreanimated_autolinked_build/CMakeFiles/react_codegen_rnreanimated.dir/react/renderer/components/rnreanimated/EventEmitters.cpp.o
  [2/29] Building CXX object rngesturehandler_codegen_autolinked_build/CMakeFiles/react_codegen_rngesturehandler_codegen.dir/react/renderer/components/rngesturehandler_codegen/States.cpp.o
  [3/29] Building CXX object rngesturehandler_codegen_autolinked_build/CMakeFiles/react_codegen_rngesturehandler_codegen.dir/react/renderer/components/rngesturehandler_codegen/EventEmitters.cpp.o
  [4/29] Building CXX object rnreanimated_autolinked_build/CMakeFiles/react_codegen_rnreanimated.dir/react/renderer/components/rnreanimated/ShadowNodes.cpp.o
  [5/29] Building CXX object rngesturehandler_codegen_autolinked_build/CMakeFiles/react_codegen_rngesturehandler_codegen.dir/react/renderer/components/rngesturehandler_codegen/ShadowNodes.cpp.o
  [6/29] Building CXX object rnreanimated_autolinked_build/CMakeFiles/react_codegen_rnreanimated.dir/react/renderer/components/rnreanimated/ComponentDescriptors.cpp.o
  [7/29] Building CXX object rngesturehandler_codegen_autolinked_build/CMakeFiles/react_codegen_rngesturehandler_codegen.dir/react/renderer/components/rngesturehandler_codegen/rngesturehandler_codegenJSI-generated.cpp.o
  [8/29] Building CXX object CMakeFiles/openWakeWord.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp.o
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:39:19: warning: unused parameter 'stream' [-Wunused-parameter]
      AAudioStream *stream,
                    ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:40:11: warning: unused parameter 'userData' [-Wunused-parameter]
      void *userData,
            ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:103:21: warning: unused variable 'result' [-Wunused-variable]
      aaudio_result_t result = AAudio_createStreamBuilder(&builder);
                      ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/main.cpp:72:26: warning: unused parameter 'instance' [-Wunused-parameter]
      JNIEnv *env, jobject instance, jobject assetManager,
                           ^
  4 warnings generated.
  [9/29] Building CXX object rnreanimated_autolinked_build/CMakeFiles/react_codegen_rnreanimated.dir/react/renderer/components/rnreanimated/Props.cpp.o
  [10/29] Building CXX object rngesturehandler_codegen_autolinked_build/CMakeFiles/react_codegen_rngesturehandler_codegen.dir/rngesturehandler_codegen-generated.cpp.o
  [11/29] Linking CXX shared library /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/intermediates/cxx/Debug/5i53s494/obj/arm64-v8a/libopenWakeWord.so
  [12/29] Building CXX object CMakeFiles/appmodules.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp.o
  [13/29] Building CXX object rnreanimated_autolinked_build/CMakeFiles/react_codegen_rnreanimated.dir/react/renderer/components/rnreanimated/States.cpp.o
  [14/29] Building CXX object CMakeFiles/appmodules.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o
  FAILED: CMakeFiles/appmodules.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o 
  /Applications/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android27 --sysroot=/Applications/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -Dappmodules_EXPORTS -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/src/main/cpp/openWakeWord-cpp/src/android -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/react/renderer/components/rngesturehandler_codegen -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/react/renderer/components/rnreanimated -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/. -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/d55dca9fafa00060f71567318650afda/transformed/jetified-fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/1f2bd9a9b9fe3c3fd656b022ba409baa/transformed/jetified-react-android-0.76.3-debug/prefab/modules/jsi/include -isystem /Users/xxx/.gradle/caches/8.10.2/transforms/1f2bd9a9b9fe3c3fd656b022ba409baa/transformed/jetified-react-android-0.76.3-debug/prefab/modules/reactnative/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fexceptions -frtti -Wall -Wextra -fno-limit-debug-info  -fPIC -Wall -Werror -Wno-error=cpp -fexceptions -frtti -std=c++20 -DLOG_TAG=\"ReactNative\" -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DFOLLY_HAVE_XSI_STRERROR_R=1 -MD -MT CMakeFiles/appmodules.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o -MF CMakeFiles/appmodules.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o.d -o CMakeFiles/appmodules.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o -c /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp:11:
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/./react/renderer/components/rngesturehandler_codegen/ComponentDescriptors.h:13:
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/./react/renderer/components/rngesturehandler_codegen/ShadowNodes.h:15:
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/./react/renderer/components/rngesturehandler_codegen/States.h:22:66: error: unused parameter 'previousState' [-Werror,-Wunused-parameter]
    RNGestureHandlerButtonState(RNGestureHandlerButtonState const &previousState, folly::dynamic data){};
                                                                   ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/./react/renderer/components/rngesturehandler_codegen/States.h:22:96: error: unused parameter 'data' [-Werror,-Wunused-parameter]
    RNGestureHandlerButtonState(RNGestureHandlerButtonState const &previousState, folly::dynamic data){};
                                                                                                 ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/./react/renderer/components/rngesturehandler_codegen/States.h:34:70: error: unused parameter 'previousState' [-Werror,-Wunused-parameter]
    RNGestureHandlerRootViewState(RNGestureHandlerRootViewState const &previousState, folly::dynamic data){};
                                                                       ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/./react/renderer/components/rngesturehandler_codegen/States.h:34:100: error: unused parameter 'data' [-Werror,-Wunused-parameter]
    RNGestureHandlerRootViewState(RNGestureHandlerRootViewState const &previousState, folly::dynamic data){};
                                                                                                     ^
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp:13:
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/safeareacontext.h:6:
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewComponentDescriptor.h:3:
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewShadowNode.h:5:
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/Props.h:30:59: error: unused parameter 'context' [-Werror,-Wunused-parameter]
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNCSafeAreaViewMode &result) {
                                                            ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/Props.h:71:70: error: unused parameter 'value' [-Werror,-Wunused-parameter]
  static inline std::string toString(const RNCSafeAreaViewEdgesStruct &value) {
                                                                       ^
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp:13:
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/safeareacontext.h:6:
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewComponentDescriptor.h:3:
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewShadowNode.h:6:
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../../common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewState.h:39:35: error: unused parameter 'previousState' [-Werror,-Wunused-parameter]
        RNCSafeAreaViewState const &previousState,
                                    ^
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp:14:
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/ComponentDescriptors.h:13:
  In file included from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/ShadowNodes.h:15:
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/States.h:22:60: error: unused parameter 'previousState' [-Werror,-Wunused-parameter]
    RNCSafeAreaProviderState(RNCSafeAreaProviderState const &previousState, folly::dynamic data){};
                                                             ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/safeareacontext/States.h:22:90: error: unused parameter 'data' [-Werror,-Wunused-parameter]
    RNCSafeAreaProviderState(RNCSafeAreaProviderState const &previousState, folly::dynamic data){};
                                                                                           ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp:35:78: error: unused parameter 'moduleName' [-Werror,-Wunused-parameter]
  std::shared_ptr<TurboModule> autolinking_cxxModuleProvider(const std::string moduleName, const std::shared_ptr<CallInvoker>& jsInvoker) {
                                                                               ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp:35:126: error: unused parameter 'jsInvoker' [-Werror,-Wunused-parameter]
  std::shared_ptr<TurboModule> autolinking_cxxModuleProvider(const std::string moduleName, const std::shared_ptr<CallInvoker>& jsInvoker) {
                                                                                                                               ^
  11 errors generated.
  [15/29] Building CXX object rngesturehandler_codegen_autolinked_build/CMakeFiles/react_codegen_rngesturehandler_codegen.dir/react/renderer/components/rngesturehandler_codegen/ComponentDescriptors.cpp.o
  [16/29] Building CXX object rngesturehandler_codegen_autolinked_build/CMakeFiles/react_codegen_rngesturehandler_codegen.dir/react/renderer/components/rngesturehandler_codegen/Props.cpp.o
  [17/29] Building CXX object rnreanimated_autolinked_build/CMakeFiles/react_codegen_rnreanimated.dir/react/renderer/components/rnreanimated/rnreanimatedJSI-generated.cpp.o
  [18/29] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/States.cpp.o
  [19/29] Building CXX object rnreanimated_autolinked_build/CMakeFiles/react_codegen_rnreanimated.dir/rnreanimated-generated.cpp.o
  [20/29] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp.o
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:16:69: warning: '$' in identifier [-Wdollar-in-identifier-extension]
  void RNCSafeAreaProviderEventEmitter::onInsetsChange(OnInsetsChange $event) const {
                                                                      ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:17:34: warning: '$' in identifier [-Wdollar-in-identifier-extension]
    dispatchEvent("insetsChange", [$event=std::move($event)](jsi::Runtime &runtime) {
                                   ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:17:51: warning: '$' in identifier [-Wdollar-in-identifier-extension]
    dispatchEvent("insetsChange", [$event=std::move($event)](jsi::Runtime &runtime) {
                                                    ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:18:10: warning: '$' in identifier [-Wdollar-in-identifier-extension]
      auto $payload = jsi::Object(runtime);
           ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:21:38: warning: '$' in identifier [-Wdollar-in-identifier-extension]
    insets.setProperty(runtime, "top", $event.insets.top);
                                       ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:22:40: warning: '$' in identifier [-Wdollar-in-identifier-extension]
    insets.setProperty(runtime, "right", $event.insets.right);
                                         ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:23:41: warning: '$' in identifier [-Wdollar-in-identifier-extension]
    insets.setProperty(runtime, "bottom", $event.insets.bottom);
                                          ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:24:39: warning: '$' in identifier [-Wdollar-in-identifier-extension]
    insets.setProperty(runtime, "left", $event.insets.left);
                                        ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:25:3: warning: '$' in identifier [-Wdollar-in-identifier-extension]
    $payload.setProperty(runtime, "insets", insets);
    ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:29:35: warning: '$' in identifier [-Wdollar-in-identifier-extension]
    frame.setProperty(runtime, "x", $event.frame.x);
                                    ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:30:35: warning: '$' in identifier [-Wdollar-in-identifier-extension]
    frame.setProperty(runtime, "y", $event.frame.y);
                                    ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:31:39: warning: '$' in identifier [-Wdollar-in-identifier-extension]
    frame.setProperty(runtime, "width", $event.frame.width);
                                        ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:32:40: warning: '$' in identifier [-Wdollar-in-identifier-extension]
    frame.setProperty(runtime, "height", $event.frame.height);
                                         ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:33:3: warning: '$' in identifier [-Wdollar-in-identifier-extension]
    $payload.setProperty(runtime, "frame", frame);
    ^
  /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/EventEmitters.cpp:35:12: warning: '$' in identifier [-Wdollar-in-identifier-extension]
      return $payload;
             ^
  15 warnings generated.
  [21/29] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewState.cpp.o
  [22/29] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/ShadowNodes.cpp.o
  [23/29] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/safeareacontextJSI-generated.cpp.o
  [24/29] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/Props.cpp.o
  [25/29] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewShadowNode.cpp.o
  [26/29] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/safeareacontext-generated.cpp.o
  [27/29] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/react/renderer/components/safeareacontext/ComponentDescriptors.cpp.o
  ninja: build stopped: subcommand failed.

  C++ build system [build] failed while executing:
      /Applications/Android/sdk/cmake/3.22.1/bin/ninja \
        -C \
        /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app/.cxx/Debug/5i53s494/arm64-v8a \
        appmodules \
        openWakeWord \
        react_codegen_safeareacontext
    from /Users/xxx/xXx/Projekty/php/Projekty/MIKI4/JJAssistant/android/app

* 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 6s

Reproducer

a

Screenshots and Videos

No response

cortinico commented 6 hours ago

In new architecture I by instruction add `include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake) line to CMakeLists.txt and copy OnLoad.cpp file from node_module to directory with CMakeLists.txt.

Can you clarify what you're attempting to do here?

ObscurusGrassator commented 5 hours ago

I need to run user c++ code.

At first I had a problem with EarlyJsError, so I follow your https://github.com/facebook/react-native/issues/47352#issuecomment-2455303986 advice

In new architecture I by instruction add `include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake) line to CMakeLists.txt and copy OnLoad.cpp file from node_module to directory with CMakeLists.txt.

Now I don't have that problem anymore, but C++ still can't be compiled, and I get errors that seem to have nothing to do with my C++.