From 1667852ba0a4d68289c2823e18be4513e3e7ab4f Mon Sep 17 00:00:00 2001 From: Light summer <93428659+lightsummer233@users.noreply.github.com> Date: Sun, 12 May 2024 10:36:17 +0800 Subject: [PATCH] =?UTF-8?q?[skip=20post]=20=E4=B8=A2=E6=8E=89=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E4=B8=9C=E8=A5=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle.kts | 12 ++++-------- build.gradle.kts | 8 ++------ config.gradle.kts | 14 -------------- gradle.properties | 3 ++- hidden-api/build.gradle.kts | 6 +++--- settings.gradle.kts | 9 +++------ 6 files changed, 14 insertions(+), 38 deletions(-) delete mode 100644 config.gradle.kts diff --git a/app/build.gradle.kts b/app/build.gradle.kts index d54b7cff0a..77e6d11050 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -9,7 +9,8 @@ import java.util.* plugins { alias(libs.plugins.androidApplication) alias(libs.plugins.kotlinAndroid) - id("org.lsposed.lsparanoid") version "0.6.0" + id("org.lsposed.lsparanoid") + // id("org.lsposed.lsplugin.resopt") } lsparanoid { @@ -83,15 +84,10 @@ android { val buildTime = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Date()) buildConfigField("String", "BUILD_TIME", "\"$buildTime\"") - } - splits { - abi { - isEnable = true - reset() + ndk { //noinspection ChromeOsAbiSupport - include("arm64-v8a") - isUniversalApk = false + abiFilters += "arm64-v8a" } } diff --git a/build.gradle.kts b/build.gradle.kts index 57c7202d71..4a71703bc3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,10 +2,6 @@ plugins { alias(libs.plugins.androidApplication) apply false alias(libs.plugins.androidLibrary) apply false alias(libs.plugins.kotlinAndroid) apply false + id("org.lsposed.lsparanoid") version "0.6.0" apply false + // id("org.lsposed.lsplugin.resopt") version "1.6" apply false } - -tasks.register("clean") { - delete(rootProject.layout.buildDirectory) -} - -apply(from = "config.gradle.kts") diff --git a/config.gradle.kts b/config.gradle.kts deleted file mode 100644 index a965027f29..0000000000 --- a/config.gradle.kts +++ /dev/null @@ -1,14 +0,0 @@ -/*ext { - CompileSdkVersion = 32 // 用于编译的SDK版本 - - ApplicationId = "com.sevtinge.hyperceiler" //包名 - MinSdkVersion = 30 // 最低支持Android版本 - TargetSdkVersion = 32 // 目标版本 - VersionCode = 1006 //版本号 - VersionName = "1.0.0.6" - isMinifyEnabled = false //是否混淆 - - appReleaseDir = "D:\\apk\\" - appReleaseTime = new Date().format("yyyyMMddHHmm") -}*/ - diff --git a/gradle.properties b/gradle.properties index 63ef10a572..c2be3e99c8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,4 +19,5 @@ android.useAndroidX=true # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library android.nonTransitiveRClass=true -android.suppressUnsupportedCompileSdk=34 +android.enableAppCompileTimeRClass=true +android.enableBuildConfigAsBytecode=true diff --git a/hidden-api/build.gradle.kts b/hidden-api/build.gradle.kts index 890695ac3a..8aacf190d2 100644 --- a/hidden-api/build.gradle.kts +++ b/hidden-api/build.gradle.kts @@ -4,10 +4,10 @@ plugins { } android { - compileSdk = 34 namespace = "com.android.internal" + compileSdk = 34 buildTypes { - getByName("release") { + release { isMinifyEnabled = false setProguardFiles(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")) } @@ -19,7 +19,7 @@ android { isMinifyEnabled = false setProguardFiles(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")) } - getByName("debug") { + debug { isMinifyEnabled = false setProguardFiles(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")) } diff --git a/settings.gradle.kts b/settings.gradle.kts index 729fbecbfe..567a7f74db 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,12 +1,11 @@ +@file:Suppress("UnstableApiUsage") + pluginManagement { repositories { gradlePluginPortal() google() mavenCentral() } - plugins { - id("org.lsposed.lsparanoid") version "0.6.0" - } } dependencyResolutionManagement { @@ -14,9 +13,7 @@ dependencyResolutionManagement { repositories { google() mavenCentral() - maven { - url = uri("https://api.xposed.info") - } + maven("https://api.xposed.info") maven("https://jitpack.io") }