From bc378fd0d613dbfc5c9c585ff5fe0fef3480a048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 13 May 2024 01:58:22 +0200 Subject: [PATCH] Android: Compile using the newest SDK, update targetVersion to 34 --- android/build.gradle | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 157ca6ca14..01bd6f8b2f 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -11,6 +11,7 @@ androidGitVersion { } dependencies { + // 1.2.0 is the newest version we can use that won't complain about minSdk version. def appcompat_version = "1.2.0" implementation "androidx.appcompat:appcompat:$appcompat_version" @@ -21,7 +22,7 @@ dependencies { } android { - flavorDimensions "variant" + flavorDimensions += "variant" namespace 'org.ppsspp.ppsspp' signingConfigs { debug { @@ -45,10 +46,20 @@ android { } } - compileSdk 33 + compileSdk 34 ndkVersion "21.4.7075529" defaultConfig { + /* + configurations.all { + resolutionStrategy { + // Newer versions are not compatible with our minsdk. Should find a way to exclude it entirely + // since we have no use for this transitive dependency. + force 'androidx.emoji2:emoji2-views-helper:1.0.0' + } + } + */ + applicationId 'org.ppsspp.ppsspp' if (androidGitVersion.name() != "unknown" && androidGitVersion.code() >= 14000000) { // Start using automatic Android version numbers from version 1.4. @@ -63,7 +74,7 @@ android { new File("versioncode.txt").write(androidGitVersion.code().toString()) minSdk 9 - targetSdk 33 + targetSdk 34 if (project.hasProperty("ANDROID_VERSION_CODE") && project.hasProperty("ANDROID_VERSION_NAME")) { versionCode ANDROID_VERSION_CODE versionName ANDROID_VERSION_NAME