Browse Source

Bump NDK version (#5115)

pull/5121/head
Anders Jenbo 4 years ago committed by GitHub
parent
commit
bb76b5fbcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      .github/workflows/Android.yml
  2. 5
      CMake/platforms/android.cmake
  3. 5
      android-project/app/build.gradle
  4. 4
      android-project/gradle/wrapper/gradle-wrapper.properties

5
.github/workflows/Android.yml

@ -26,11 +26,6 @@ jobs:
distribution: 'adopt' distribution: 'adopt'
cache: gradle cache: gradle
# CMake version 3.21.3 causes gradle to throw a NullPointerException during the build
# Removing it will cause gradle to fall back on 3.18.1 installed by the Android SDK
- name: Create Build Environment
run: rm /usr/local/bin/cmake
- name: Cache CMake build folder - name: Cache CMake build folder
uses: actions/cache@v2 uses: actions/cache@v2
with: with:

5
CMake/platforms/android.cmake

@ -25,8 +25,3 @@ set(UBSAN OFF)
# Disable in-game options to exit the game. # Disable in-game options to exit the game.
set(NOEXIT ON) set(NOEXIT ON)
if(CMAKE_BUILD_TYPE STREQUAL "Release")
# Work around a linker bug in clang: https://github.com/android/ndk/issues/721
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -flto=full")
endif()

5
android-project/app/build.gradle

@ -7,6 +7,9 @@ if (buildAsApplication) {
} }
android { android {
//ndkVersion '25.0.8775105'
//ndkVersion '24.0.8215888'
ndkVersion '23.2.8568313'
compileSdkVersion 32 compileSdkVersion 32
defaultConfig { defaultConfig {
if (buildAsApplication) { if (buildAsApplication) {
@ -40,7 +43,7 @@ android {
externalNativeBuild { externalNativeBuild {
cmake { cmake {
path '../../CMakeLists.txt' path '../../CMakeLists.txt'
version "3.13.0+" version "3.22.1+"
} }
} }

4
android-project/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,6 +1,6 @@
#Thu Nov 11 18:20:34 PST 2021 #Mon Jul 25 04:46:02 CEST 2022
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME

Loading…
Cancel
Save