From db691c0ceb4ed0ed113a464476c5020a71c26396 Mon Sep 17 00:00:00 2001 From: Jarrod Norwell Date: Thu, 7 Mar 2024 03:14:28 +0800 Subject: [PATCH] android: updated to latest dependencies again and fixed more deprecations --- src/android/app/build.gradle.kts | 28 +++++++++---------- src/android/build.gradle.kts | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 4 +-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts index 66847c5..3c19b51 100644 --- a/src/android/app/build.gradle.kts +++ b/src/android/app/build.gradle.kts @@ -2,9 +2,8 @@ // SPDX-License-Identifier: GPL-3.0-or-later import android.annotation.SuppressLint -import kotlin.collections.setOf -import org.jlleitschuh.gradle.ktlint.reporter.ReporterType import com.github.triplet.gradle.androidpublisher.ReleaseStatus +import org.jlleitschuh.gradle.ktlint.reporter.ReporterType plugins { id("com.android.application") @@ -26,9 +25,9 @@ val autoVersion = (((System.currentTimeMillis() / 1000) - 1451606400) / 10).toIn @Suppress("UnstableApiUsage") android { namespace = "org.yuzu.yuzu_emu" + compileSdk = 34 - compileSdkVersion = "android-34" - ndkVersion = "26.1.10909125" + ndkVersion = "26.2.11394342" buildFeatures { viewBinding = true @@ -163,6 +162,7 @@ android { path = file("../../../CMakeLists.txt") } } + buildToolsVersion = "34.0.0" defaultConfig { externalNativeBuild { @@ -186,7 +186,7 @@ android { } tasks.create("ktlintReset") { - delete(File(buildDir.path + File.separator + "intermediates/ktLint")) + delete(File(layout.buildDirectory.asFile.toString() + File.separator + "intermediates/ktLint")) } val showFormatHelp = { @@ -203,13 +203,13 @@ ktlint { version.set("0.47.1") android.set(true) ignoreFailures.set(false) - disabledRules.set( - setOf( - "no-wildcard-imports", - "package-name", - "import-ordering" - ) - ) + //disabledRules.set( + // setOf( + // "no-wildcard-imports", + // "package-name", + // "import-ordering" + // ) + //) reporters { reporter(ReporterType.CHECKSTYLE) } @@ -234,7 +234,7 @@ dependencies { implementation("com.google.android.material:material:1.11.0") implementation("androidx.preference:preference-ktx:1.2.1") implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0") - implementation("io.coil-kt:coil:2.2.2") + implementation("io.coil-kt:coil:2.6.0") implementation("androidx.core:core-splashscreen:1.0.1") implementation("androidx.window:window:1.2.0") implementation("androidx.constraintlayout:constraintlayout:2.1.4") @@ -242,7 +242,7 @@ dependencies { implementation("androidx.navigation:navigation-fragment-ktx:2.7.7") implementation("androidx.navigation:navigation-ui-ktx:2.7.7") implementation("info.debatty:java-string-similarity:2.0.0") - implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0") + implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3") } fun runGitCommand(command: List): String { diff --git a/src/android/build.gradle.kts b/src/android/build.gradle.kts index e83ddf9..681582e 100644 --- a/src/android/build.gradle.kts +++ b/src/android/build.gradle.kts @@ -9,7 +9,7 @@ plugins { } tasks.register("clean").configure { - delete(rootProject.buildDir) + delete(rootProject.layout.buildDirectory.asFile.toString()) } buildscript { diff --git a/src/android/gradle/wrapper/gradle-wrapper.properties b/src/android/gradle/wrapper/gradle-wrapper.properties index 42b415f..4f2dd7f 100644 --- a/src/android/gradle/wrapper/gradle-wrapper.properties +++ b/src/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sun Feb 21 18:16:59 EST 2021 +#Thu Mar 07 02:52:25 AWST 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip