Skip to content

Commit

Permalink
fix: Fix missing includes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed May 17, 2024
1 parent 25ce228 commit e4cd40a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package/android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@ target_include_directories(

# Add Hermes (from com.facebook.react:hermes-android)
find_package(hermes-engine REQUIRED CONFIG)
# Add React core libraries (JSI, ...)
find_package(ReactAndroid REQUIRED CONFIG)
# Add fbjni (from React core)
find_package(fbjni REQUIRED CONFIG)

# Link everything together
target_link_libraries(
${PACKAGE_NAME}
ReactAndroid::jsi # <-- JSI core
fbjni::fbjni # <-- fbjni
react_codegen_RNWorkletsSpec # <-- Generated Specs from CodeGen
hermes-engine::libhermes # <-- Hermes Prefab
)
Expand Down
2 changes: 2 additions & 0 deletions package/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ android {

externalNativeBuild {
cmake {
arguments "-DANDROID_STL=c++_shared",
"-DANDROID_TOOLCHAIN=clang"
cppFlags "-O2 -frtti -fexceptions -Wall -fstack-protector-all"
}
}
Expand Down
2 changes: 1 addition & 1 deletion package/cpp/NativeWorkletsModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class NativeWorkletsModule : public NativeWorkletsCxxSpec<NativeWorkletsModule>
~NativeWorkletsModule();

jsi::Object createWorkletsApi(jsi::Runtime& runtime);

private:
std::shared_ptr<CallInvoker> _jsCallInvoker;
};
Expand Down

0 comments on commit e4cd40a

Please sign in to comment.