SIGN IN SIGN UP

fix(android): add CMake task dependency to prevent race condition (#3165)

## Summary

- Add `afterEvaluate` block in `android/build.gradle` to ensure
`buildCMake*` tasks depend on `react-native-nitro-modules`'
corresponding CMake tasks
- Prevents intermittent linker error where `libNitroModules.so` is not
yet built when IAP's CMake runs

## Context

When building with Gradle parallel execution, IAP's
`buildCMakeDebug[arm64-v8a]` can run before `react-native-nitro-modules`
finishes producing `libNitroModules.so`, causing a linker failure. This
was a latent race condition that became more visible after the
nitro-modules 0.35.0 upgrade (JNI initialization pattern change).

Investigated upstream nitro 0.35.0 — no CMake/Gradle build order changes
were made, confirming this is a pre-existing issue.

Closes #3163

## Test plan

- [x] Android build succeeds with `--parallel` flag
- [x] No regression on iOS build (android-only change, no iOS impact)

🤖 Generated with [Claude Code](https://claude.ai/code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
H
Hyo committed
e3e3816233c856cb6f71d387992ded1624ef450c
Parent: 5591ae8
Committed by GitHub <noreply@github.com> on 3/10/2026, 8:18:35 PM