You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(android): respect reactNativeArchitectures for ABI matching
The prefab-generated CMake config for react-native-nitro-modules was
header-only (INTERFACE IMPORTED) for ABIs where NitroModules.so wasn't
built, causing linker errors. Root cause: build.gradle hardcoded all 4
ABIs while the consuming app only built NitroModules for arm64-v8a.
- Use reactNativeArchitectures() to match the app's ABI config
- Align build.gradle with MMKV/NitroModules patterns (getExtOrDefault,
ndkVersion, gradle.properties defaults)
- Update fix-prefab.gradle to use reactNativeArchitectures()
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
// Touch the prefab_config.json files to ensure that in ExternalNativeJsonGenerator.kt we will re-trigger the prefab CLI to
33
+
// generate a libnameConfig.cmake file that will contain our native library (.so).
34
+
// See this condition: https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:build-system/gradle-core/src/main/java/com/android/build/gradle/tasks/ExternalNativeJsonGenerator.kt;l=207-219?q=createPrefabBuildSystemGlue
0 commit comments