Skip to content

fix(android): include fbjni in JNI adapter - #115

Open
ClemDelb wants to merge 1 commit into
patlux:masterfrom
ClemDelb:fix-android-fbjni-include
Open

fix(android): include fbjni in JNI adapter#115
ClemDelb wants to merge 1 commit into
patlux:masterfrom
ClemDelb:fix-android-fbjni-include

Conversation

@ClemDelb

@ClemDelb ClemDelb commented Jul 2, 2026

Copy link
Copy Markdown

What

Adds the missing fbjni/fbjni.h include in cpp-adapter.cpp.

Why

cpp-adapter.cpp uses facebook::jni::initialize(...), but does not include the fbjni header directly.

In some React Native / Android C++ build setups, this fails with:

error: use of undeclared identifier 'facebook'

Including <fbjni/fbjni.h> makes the dependency explicit and fixes the Android C++ build.

Validation

Tested in a React Native app by running:

./gradlew assembleDebug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant