From c074460f605ab7f9aff91af6a6772f2648733b4c Mon Sep 17 00:00:00 2001 From: SachinVin Date: Sun, 11 Jun 2023 17:58:18 +0530 Subject: [PATCH] android: Bump to gradle 8.0 --- .github/workflows/ci.yml | 2 +- src/android/app/build.gradle | 3 ++- src/android/build.gradle | 2 +- src/android/gradle.properties | 3 +++ src/android/gradle/wrapper/gradle-wrapper.properties | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5e3d7c89..54040b8e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -198,7 +198,7 @@ jobs: sudo apt-get update -y sudo apt-get install ccache glslang-dev glslang-tools apksigner -y - name: Build - run: ./.ci/android/build.sh + run: JAVA_HOME=$JAVA_HOME_17_X64 ./.ci/android/build.sh - name: Copy and sign artifacts env: ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }} diff --git a/src/android/app/build.gradle b/src/android/app/build.gradle index 53d67aa00..1010c40e4 100644 --- a/src/android/app/build.gradle +++ b/src/android/app/build.gradle @@ -10,7 +10,7 @@ def buildType def abiFilter = "arm64-v8a" //, "x86" android { - compileSdkVersion 32 + compileSdkVersion 33 ndkVersion "25.1.8937393" compileOptions { @@ -100,6 +100,7 @@ android { path "../../../CMakeLists.txt" } } + namespace 'org.citra.citra_emu' defaultConfig { externalNativeBuild { diff --git a/src/android/build.gradle b/src/android/build.gradle index 0290f416d..cfece1062 100644 --- a/src/android/build.gradle +++ b/src/android/build.gradle @@ -8,7 +8,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:7.4.2' + classpath 'com.android.tools.build:gradle:8.0.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/src/android/gradle.properties b/src/android/gradle.properties index cbb503141..01f4d78b6 100644 --- a/src/android/gradle.properties +++ b/src/android/gradle.properties @@ -14,3 +14,6 @@ org.gradle.jvmargs=-Xmx1536m # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true android.native.buildOutput=verbose +android.defaults.buildfeatures.buildconfig=true +android.nonTransitiveRClass=false +android.nonFinalResIds=false diff --git a/src/android/gradle/wrapper/gradle-wrapper.properties b/src/android/gradle/wrapper/gradle-wrapper.properties index bd08889e5..fbd7c4f4f 100644 --- a/src/android/gradle/wrapper/gradle-wrapper.properties +++ b/src/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip