summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Lothian <mike@fireburn.co.uk>2025-05-11 13:13:38 +0100
committerMike Lothian <mike@fireburn.co.uk>2025-05-11 14:54:45 +0100
commit36d60f5166e10661fbe7d41e8076c5c029b03132 (patch)
tree2386fe28bfcfe5266e848b2e877fa4da2530edcf /src
parentc69ef17cdd425b7d6c6a7f487d973d7a7f79c457 (diff)
Update build.gradle.kts
Diffstat (limited to 'src')
-rw-r--r--src/android/app/build.gradle.kts17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts
index 7cfb287c8..962ca139b 100644
--- a/src/android/app/build.gradle.kts
+++ b/src/android/app/build.gradle.kts
@@ -27,8 +27,8 @@ val autoVersion = (((System.currentTimeMillis() / 1000) - 1451606400) / 10).toIn
android {
namespace = "org.yuzu.yuzu_emu"
- compileSdkVersion = "android-34"
- ndkVersion = "28.0.12674087"
+ compileSdkVersion = "android-35"
+ ndkVersion = "29.0.13113456 rc1"
buildFeatures {
viewBinding = true
@@ -56,7 +56,7 @@ android {
// TODO If this is ever modified, change application_id in strings.xml
applicationId = "org.yuzu.yuzu_emu"
minSdk = 30
- targetSdk = 34
+ targetSdk = 35
versionName = getGitVersion()
versionCode = if (System.getenv("AUTO_VERSIONED") == "true") {
@@ -105,6 +105,8 @@ android {
resValue("string", "app_name_suffixed", "yuzu")
isMinifyEnabled = true
+ isShrinkResources = true
+ isJniDebuggable = false
isDebuggable = false
proguardFiles(
getDefaultProguardFile("proguard-android.txt"),
@@ -115,13 +117,12 @@ android {
// builds a release build that doesn't need signing
// Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
register("relWithDebInfo") {
- isDefault = true
resValue("string", "app_name_suffixed", "yuzu Debug Release")
signingConfig = signingConfigs.getByName("default")
isMinifyEnabled = true
isDebuggable = true
proguardFiles(
- getDefaultProguardFile("proguard-android.txt"),
+ getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
versionNameSuffix = "-relWithDebInfo"
@@ -151,7 +152,7 @@ android {
externalNativeBuild {
cmake {
- version = "3.22.1"
+ version = "4.0.1"
path = file("../../../CMakeLists.txt")
}
}
@@ -168,7 +169,9 @@ android {
"-DYUZU_USE_BUNDLED_VCPKG=ON",
"-DYUZU_USE_BUNDLED_FFMPEG=ON",
"-DYUZU_ENABLE_LTO=ON",
- "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
+ "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
+ "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
+ "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
)
cFlags(