Skip to content

Commit 150df5e

Browse files
committed
app(deps): 更新项目依赖
- 更新 agp 依赖到 9.2.1 - 更新 gradle 依赖到 9.5.0 - 迁移混淆规则文件
1 parent bd728cf commit 150df5e

26 files changed

Lines changed: 116 additions & 169 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ build/
88
.externalNativeBuild
99
.cxx
1010
local.properties
11-
/app/release
11+
/app/release/*
12+
!/app/release/keepRules
1213
/app/beta
1314
/app/canary
1415
/app/debug

app/build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,14 @@ android {
129129
}
130130

131131
val applyBase: ApplicationBuildType.() -> Unit = {
132-
isMinifyEnabled = true
133-
// noinspection NotShrinkingResources
134-
isShrinkResources = false
135-
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
132+
optimization.enable = true
136133
buildConfigField("String", "GIT_CODE", "\"$gitVersionCode\"")
137134
}
138135

139136
release {
140137
applyBase()
141138
configSigning()
142139
buildConfigField("String", "GIT_HASH", "\"$gitHash\"")
143-
proguardFiles("proguard-log.pro")
144140
versionNameSuffix = "-$dateSuffix"
145141
}
146142

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Add project specific R8 rules here.
2+
# AGP will combine all keep rule files in src/main/keepRules to pass to R8
3+
#
4+
# For more details, see
5+
# https://d.android.com/r/tools/r8/keep-rules
6+
7+
# If your project uses WebView with JS, uncomment the following
8+
# and specify the fully qualified class name to the JavaScript interface
9+
# class:
10+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
11+
# public *;
12+
#}
113
# --- Kotlin / Java ---
214
-assumenosideeffects class kotlin.jvm.internal.Intrinsics {
315
public static void check*(...);

app/src/main/res/raw/keep.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources xmlns:tools="http://schemas.android.com/tools"
3+
tools:keep="@drawable/statusbar_signal_*"
4+
tools:shrinkMode="strict" />

gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ android.nonTransitiveRClass=true
2222
android.enableAppCompileTimeRClass=true
2323
android.enableBuildConfigAsBytecode=true
2424
org.gradle.caching=true
25+
android.r8.gradual.support=true
26+
android.r8.maxWorkers=4
27+
# Android 17
28+
android.suppressUnsupportedCompileSdk=37.0

gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[versions]
22
# Build tools
3-
agp = "9.1.0"
3+
agp = "9.2.1"
44
lsparanoid = "0.6.0"
55
autoService = "1.1.1"
66

77
# AndroidX
8-
annotation = "1.9.1"
8+
annotation = "1.10.0"
99
constraintlayout = "2.2.1"
1010
coordinatorlayout = "1.3.0"
1111
core = "1.18.0"
@@ -18,15 +18,15 @@ viewpager2 = "1.1.0"
1818
miuix = "1.0.12.5"
1919

2020
# Xposed & Hooks
21-
xposed-api = "101.0.0"
21+
xposed-api = "101.0.1"
2222
xposed-service = "101.0.0"
2323
dexkit = "2.1.0"
2424
ezxhelper = "3.1.1-rc1"
2525
hiddenapibypass = "6.1"
2626

2727
# Third-party
2828
expansions = "1.0.0"
29-
gson = "2.13.2"
29+
gson = "2.14.0"
3030
hyperfocusapi = "2.0"
3131
appiconloader = "1.5.0"
3232
lunarcalendar = "latest.release"

gradle/wrapper/gradle-wrapper.jar

2.23 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
44
networkTimeout=10000
5+
retries=0
6+
retryBackOffMs=500
57
validateDistributionUrl=true
68
zipStoreBase=GRADLE_USER_HOME
79
zipStorePath=wrapper/dists

gradlew

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)