Skip to content

Commit

Permalink
Merge pull request ddnet#8837 from Robyt3/Android-Build-NDK-Version-Fix
Browse files Browse the repository at this point in the history
Remove unnecessary `ndkVersion` from Gradle build
  • Loading branch information
def- authored Aug 28, 2024
2 parents 5a66dc0 + 1dd56f1 commit cc1dc40
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions scripts/android/cmake_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ export MAKEFLAGS

ANDROID_NDK_VERSION="$(cd "$ANDROID_HOME/ndk" && find . -maxdepth 1 | sort -n | tail -1)"
ANDROID_NDK_VERSION="${ANDROID_NDK_VERSION:2}"
# ANDROID_NDK_VERSION must be exported for build.sh step
export ANDROID_NDK_VERSION
# ANDROID_NDK_HOME must be exported for cargo-ndk
export ANDROID_NDK_HOME="$ANDROID_HOME/ndk/$ANDROID_NDK_VERSION"

Expand Down
1 change: 0 additions & 1 deletion scripts/android/files/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ java {

android {
compileSdkVersion 34
ndkVersion "TW_NDK_VERSION"
defaultConfig {
applicationId "org.ddnet.client"
namespace("org.ddnet.client")
Expand Down
1 change: 0 additions & 1 deletion scripts/android/files/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ sed -i "s/TW_KEY_NAME/${TW_KEY_NAME_ESCAPED}/g" build.gradle
sed -i "s/TW_KEY_PW/${TW_KEY_PW_ESCAPED}/g" build.gradle
sed -i "s/TW_KEY_ALIAS/${TW_KEY_ALIAS_ESCAPED}/g" build.gradle

sed -i "s/TW_NDK_VERSION/${ANDROID_NDK_VERSION}/g" build.gradle
sed -i "s/TW_VERSION_CODE/${TW_VERSION_CODE}/g" build.gradle
sed -i "s/TW_VERSION_NAME/${TW_VERSION_NAME}/g" build.gradle

Expand Down

0 comments on commit cc1dc40

Please sign in to comment.