Skip to content

Commit 1b088dc

Browse files
Debug: Android versions
Debug: Android versions Relates-To: MINOR Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com>
1 parent c08da4f commit 1b088dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/android/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -ex
22
#
3-
# Copyright (C) 2019-2024 HERE Europe B.V.
3+
# Copyright (C) 2019-2026 HERE Europe B.V.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -19,15 +19,15 @@
1919

2020
#
2121
# This script will compile Data SDK for C++
22-
# with ANDROID_PLATFORM=android-28 and -DANDROID_ABI=arm64-v8a
22+
# with ANDROID_PLATFORM=android-21 and -DANDROID_ABI=arm64-v8a
2323
# by using Android NDK 21.
2424
#
2525

2626
# Install required NDK version (output disabled as it causes issues during page loading)
2727
env
2828
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --list
2929
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;21.3.6528147" --sdk_root=${ANDROID_HOME} >/dev/null
30-
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-28" >/dev/null
30+
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-21" >/dev/null
3131
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --list
3232
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/21.3.6528147
3333
env
@@ -38,7 +38,7 @@ ls -la $ANDROID_NDK_HOME/platforms
3838
mkdir -p build && cd build
3939
cmake .. -DCMAKE_TOOLCHAIN_FILE="$ANDROID_HOME/ndk/21.3.6528147/build/cmake/android.toolchain.cmake" \
4040
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
41-
-DANDROID_PLATFORM=android-28 \
41+
-DANDROID_PLATFORM=android-21 \
4242
-DANDROID_ABI=arm64-v8a \
4343
-DANDROID_NDK="$ANDROID_HOME/ndk/21.3.6528147" \
4444
-DOLP_SDK_ENABLE_TESTING=NO \

0 commit comments

Comments
 (0)