Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit be57014

Browse files
committed
[[ Android API 28 ]] Update to use android API 28
This patch changes our build scripts to use or default to android api 28. It also removes the builders' dependence on the sdk API version so we can use the same build containers for any sdk API and only have to update (and rebuild prebuilts) when the ndk changes.
1 parent 1d1e4b1 commit be57014

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
BUILDBOT_PLATFORM_TRIPLES = (
2727
'x86-linux-debian8',
2828
'x86_64-linux-debian8',
29-
'armv7-android-sdk26_ndk16r15',
30-
'arm64-android-sdk26_ndk16r15',
31-
'x86-android-sdk26_ndk16r15',
32-
'x86_64-android-sdk26_ndk16r15',
29+
'armv7-android-ndk16r15',
30+
'arm64-android-ndk16r15',
31+
'x86-android-ndk16r15',
32+
'x86_64-android-ndk16r15',
3333
'universal-mac-macosx10.9', # Minimum deployment target
3434
'universal-ios-iphoneos12.1',
3535
'universal-ios-iphoneos11.2',
@@ -611,7 +611,7 @@ def validate_android_tools(opts):
611611
opts['ANDROID_NDK_PLATFORM_VERSION'] = '16'
612612

613613
if opts['ANDROID_API_VERSION'] is None:
614-
opts['ANDROID_API_VERSION'] = '26'
614+
opts['ANDROID_API_VERSION'] = '28'
615615

616616
api_ver = opts['ANDROID_API_VERSION']
617617

config/android.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
'strip': '<!(echo ${STRIP:-strip})',
3333

3434
'android_ndk_path%': '<(android_ndk_path)',
35-
'android_subplatform%': 'sdk<(android_api_version)_ndk<(android_ndk_platform_version)<(android_ndk_version)',
35+
'android_subplatform%': 'ndk<(android_ndk_platform_version)<(android_ndk_version)',
3636

3737
'android_play_path': '<(android_sdk_path)/extras/google/m2repository/com/google/android/gms',
3838
},

docs/development/build-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ AR="${BINDIR}/${TRIPLE}-ar"
8282
# Android platform information
8383
ANDROID_NDK_VERSION=r15
8484
ANDROID_NDK_PLATFORM_VERSION=16
85-
ANDROID_API_VERSION=26
85+
ANDROID_API_VERSION=28
8686
ANDROID_PLATFORM=android-${ANDROID_API_VERSION}
8787
ANDROID_NDK=${TOOLCHAIN}/android-ndk-${ANDROID_NDK_VERSION}
8888
ANDROID_SDK=${TOOLCHAIN}/android-sdk-linux

prebuilt/fetch-libraries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ LIBS_emscripten=( Thirdparty ICU )
1717

1818
SUBPLATFORMS_ios=(iPhoneSimulator8.2 iPhoneSimulator9.2 iPhoneSimulator10.2 iPhoneSimulator11.2 iPhoneSimulator12.1 iPhoneOS9.2 iPhoneOS10.2 iPhoneOS11.2 iPhoneOS12.1)
1919
SUBPLATFORMS_win32=(v141_static_debug v141_static_release)
20-
SUBPLATFORMS_android=(sdk26_ndk16r15)
20+
SUBPLATFORMS_android=(ndk16r15)
2121

2222
# Fetch settings
2323
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)

prebuilt/scripts/android.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Android options
22
ANDROID_NDK=${ANDROID_NDK:-"${HOME}/android/toolchain/android-ndk"}
3-
ANDROID_PLATFORM=${ANDROID_PLATFORM:-android-26}
3+
ANDROID_PLATFORM=${ANDROID_PLATFORM:-android-28}
44
55
function configureAndroidToolchain {
66
ANDROID_ARCH=$1

0 commit comments

Comments
 (0)