Skip to content

Commit

Permalink
FirebaseAndroid: prefer the CMAKE_ANDROID_API variable value
Browse files Browse the repository at this point in the history
This switches us to use the documented `CMAKE_ANDROID_API` variable
rather than the `ANDROID_NATIVE_API_LEVEL` which is an Android toolchain
configuration variable. Hopefully this simplifies building
swift-firebase for Android.
  • Loading branch information
compnerd committed Jun 13, 2024
1 parent 9e5eb07 commit 1d91bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/FirebaseAndroid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ target_link_libraries(FirebaseAndroidJNI PRIVATE
add_jar(SwiftFirebase
Native.java
INCLUDE_JARS
$ENV{ANDROID_SDK_ROOT}/platforms/android-${ANDROID_NATIVE_API_LEVEL}/android.jar)
$ENV{ANDROID_SDK_ROOT}/platforms/android-${CMAKE_ANDROID_API}/android.jar)

0 comments on commit 1d91bd2

Please sign in to comment.