Skip to content

Commit a75385a

Browse files
committed
FirebaseAndroid: prefer the CMAKE_ANDROID_API variable value
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.
1 parent 5b52c77 commit a75385a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FirebaseAndroid/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ target_link_libraries(FirebaseAndroidJNI PRIVATE
1010
add_jar(SwiftFirebase
1111
Native.java
1212
INCLUDE_JARS
13-
$ENV{ANDROID_SDK_ROOT}/platforms/android-${ANDROID_NATIVE_API_LEVEL}/android.jar)
13+
$ENV{ANDROID_SDK_ROOT}/platforms/android-${CMAKE_ANDROID_API}/android.jar)

0 commit comments

Comments
 (0)