Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: use FindJNI to locate required headers #86

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ project(swift-firebase
if(ANDROID)
enable_language(C)
include(FindJava)
include(FindJNI)
include(UseJava)
endif()

Expand Down
3 changes: 2 additions & 1 deletion Sources/FirebaseAndroid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ add_library(FirebaseAndroidJNI SHARED
target_include_directories(FirebaseAndroidJNI PUBLIC
include)
target_link_libraries(FirebaseAndroidJNI PRIVATE
log)
log
JNI::JNI)

add_jar(SwiftFirebase
Native.java
Expand Down
Loading