Skip to content

Commit

Permalink
Update Android NDK, bump Android API level from 34 to 35, support 16K…
Browse files Browse the repository at this point in the history
… page sizes on Android
  • Loading branch information
CasualPokePlayer committed Nov 30, 2024
1 parent c77955c commit 52a2d26
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .ci/android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ mv $HOME/cmdline-tools $ANDROID_HOME/cmdline-tools/latest

# Install Android SDK and NDK
yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-34"
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "ndk;26.2.11394342"
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "cmake;3.22.1"
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-35"
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "ndk;27.2.12479018"
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "cmake;3.31.0"

export ANDROID_NDK_ROOT="$ANDROID_HOME/ndk/26.2.11394342"
export PATH=$ANDROID_HOME/cmake/3.22.1/bin:$PATH
Expand Down
6 changes: 3 additions & 3 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ plugins {

android {
namespace = "org.psr.gse"
compileSdk = 34
ndkVersion = "26.2.11394342" // current NDK LTS
compileSdk = 35
ndkVersion = "27.2.12479018" // current NDK LTS

defaultConfig {
applicationId = "org.psr.gsr" // kept as .gsr rather than .gse for backwards compatibility
minSdk = 21
targetSdk = 34
targetSdk = 35

versionName = getGitVersion()
versionCode = getBuildVersionCode()
Expand Down
1 change: 1 addition & 0 deletions externals/android/build_all.bat
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ cmake ..\..\%~1 ^
-DANDROID_ABI=%~3 ^
-DANDROID_PLATFORM=android-21 ^
-DANDROID_STL=c++_shared ^
-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON ^
-DCMAKE_BUILD_TYPE=Release ^
-DGSE_SHARED=ON ^
-G Ninja
Expand Down
1 change: 1 addition & 0 deletions externals/android/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ CMakeNinjaBuildAbi() {
-DANDROID_ABI=$3 \
-DANDROID_PLATFORM=android-21 \
-DANDROID_STL=c++_shared \
-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON \
-DCMAKE_BUILD_TYPE=Release \
-DGSE_SHARED=ON \
-G Ninja
Expand Down

0 comments on commit 52a2d26

Please sign in to comment.