diff --git a/Sources/FirebaseAndroid/CMakeLists.txt b/Sources/FirebaseAndroid/CMakeLists.txt index 4fd4ff7..bb5567b 100644 --- a/Sources/FirebaseAndroid/CMakeLists.txt +++ b/Sources/FirebaseAndroid/CMakeLists.txt @@ -7,3 +7,7 @@ target_include_directories(FirebaseAndroidJNI PUBLIC target_link_libraries(FirebaseAndroidJNI PRIVATE log) +add_jar(SwiftFirebase + Native.java + INCLUDE_JARS + $ENV{ANDROID_SDK_ROOT}/platforms/android-${ANDROID_NATIVE_API_LEVEL}/android.jar) diff --git a/Sources/FirebaseAndroid/Native.java b/Sources/FirebaseAndroid/Native.java new file mode 100644 index 0000000..21f0895 --- /dev/null +++ b/Sources/FirebaseAndroid/Native.java @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: BSD-3-Clause + +package company.thebrowser; + +import android.app.Activity; + +public class Native +{ + public native boolean RegisterActivity(android.app.Activity activity); +}