ammarahm-ed / react-native-mmkv-storage

An ultra fast (0.0002s read/write), small & encrypted mobile key-value storage framework for React Native written in C++ using JSI
https://rnmmkv.now.sh
MIT License
1.59k stars 111 forks source link

[Bug] Build not running on android after new architecture enabled by default on 0.76. Target "rnmmkv" links to target "ReactAndroid::turbomodulejsijni" but the C/C++: target was not found. #364

Open alexkey89 opened 1 day ago

alexkey89 commented 1 day ago

Describe the bug After upgrading to react native 0.76 with new architecture on the build fails

To Reproduce Steps to reproduce the behavior:

> Task :react-native-mmkv-storage:configureCMakeRelWithDebInfo[arm64-v8a] FAILED C/C++: CMake Error at CMakeLists.txt:11 (add_library): C/C++: Target "rnmmkv" links to target "ReactAndroid::turbomodulejsijni" but the C/C++: target was not found. Perhaps a find_package() call is missing for an C/C++: IMPORTED target, or an ALIAS target is missing? C/C++: CMake Error at CMakeLists.txt:11 (add_library): C/C++: Target "rnmmkv" links to target "ReactAndroid::react_nativemodule_core" but C/C++: the target was not found. Perhaps a find_package() call is missing for an C/C++: IMPORTED target, or an ALIAS target is missing? C/C++: CMake Generate step failed. Build files cannot be regenerated correctly.

Expected behavior The build should run without issues and produce the APK.

Platform Information:

alexkey89 commented 1 day ago

any chance of quick fixing this? @ammarahm-ed

ammarahm-ed commented 1 day ago

any chance of quick fixing this? @ammarahm-ed

I will check what I can do to fix this.

alexkey89 commented 1 day ago

@ammarahm-ed much appreciated! I also tried to modify the CMakeLists.txt but couldn't get it to work.. I'm not familiar with it.