diff --git a/CMakeLists.txt b/CMakeLists.txt index 01a2013..87a42eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ project(swift-firebase if(ANDROID) enable_language(C) include(FindJava) + include(FindJNI) include(UseJava) endif() diff --git a/Sources/FirebaseAndroid/CMakeLists.txt b/Sources/FirebaseAndroid/CMakeLists.txt index 675b54f..bf551c1 100644 --- a/Sources/FirebaseAndroid/CMakeLists.txt +++ b/Sources/FirebaseAndroid/CMakeLists.txt @@ -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