Skip to content

Commit

Permalink
Fixup Android crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jhugman committed Oct 16, 2024
1 parent 8fa77c9 commit fc6dcaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/ubrn_cli/src/codegen/templates/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ include_directories(
${UNIFFI_BINDGEN_PATH}/cpp/includes
)

add_library(
${CMAKE_PROJECT_NAME} SHARED
add_library({{ self.config.project.cpp_filename() }} SHARED
{{ tm_dir }}/{{ self.config.project.cpp_filename() }}.cpp
{%- for m in self.config.modules %}
{{ bindings_dir }}/{{ m.cpp_filename() }}
Expand Down Expand Up @@ -63,7 +62,7 @@ find_package(fbjni REQUIRED CONFIG)
find_library(LOGCAT log)

target_link_libraries(
${CMAKE_PROJECT_NAME}
{{ self.config.project.cpp_filename() }}
fbjni::fbjni
ReactAndroid::jsi
ReactAndroid::turbomodulejsijni
Expand Down
1 change: 1 addition & 0 deletions scripts/test-turbo-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ check_lines() {
check_line_unchanged "./src/Native*" "getEnforcing"

check_line_unchanged "./android/CMakeLists.txt" "^project"
check_line_unchanged "./android/CMakeLists.txt" "^add_library.*SHARED"
check_line_unchanged "./android/build.gradle" "return rootProject"
check_line_unchanged "./android/build.gradle" "libraryName"
check_line_unchanged "./android/src/*/*Package*" "package"
Expand Down

0 comments on commit fc6dcaa

Please sign in to comment.