From 5f863b672ca154aab393d27e89c85c25bfde053e Mon Sep 17 00:00:00 2001 From: snake-4 <18491360+snake-4@users.noreply.github.com> Date: Sat, 22 Feb 2025 18:42:06 +0100 Subject: [PATCH] Updated NDK, AGP and Gradle --- build.gradle.kts | 10 ++++------ gradle/wrapper/gradle-wrapper.properties | 2 +- module/build.gradle.kts | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 0276eb7..854a401 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,16 +1,14 @@ import java.io.ByteArrayOutputStream plugins { - id("com.android.library") version "8.5.0" apply false + id("com.android.library") version "8.8.1" apply false } val commitHash: String by extra { - val stdout = ByteArrayOutputStream() - rootProject.exec { - commandLine("git", "rev-parse", "--short", "HEAD") - standardOutput = stdout + val result = providers.exec { + commandLine("git", "rev-parse", "--verify", "--short", "HEAD") } - stdout.toString().trim() + result.standardOutput.asText.get().trim() } val moduleId by extra("zygisk-assistant") diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 9355b41..e18bc25 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/module/build.gradle.kts b/module/build.gradle.kts index 640dbb8..b5e1bc6 100644 --- a/module/build.gradle.kts +++ b/module/build.gradle.kts @@ -14,7 +14,7 @@ val abiList: List by rootProject.extra android { namespace = "com.example.library" compileSdkVersion = "android-34" - ndkVersion = "27.0.12077973" + ndkVersion = "28.0.13004108" defaultConfig { minSdk = 21 externalNativeBuild {