Skip to content

Commit 2e651f8

Browse files
committed
feat(app):update app version to 2.7
1 parent 0faaf07 commit 2e651f8

File tree

3 files changed

+19
-22
lines changed

3 files changed

+19
-22
lines changed

app/build.gradle.kts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ android {
1717
applicationId = BuildVersionConfig.applicationId
1818
minSdk = BuildVersionConfig.minSdk
1919
targetSdk = BuildVersionConfig.targetSdk
20-
versionCode = 26
21-
versionName = "2.6"
20+
versionCode = 27
21+
versionName = "2.7"
2222

2323
ndk {
2424
//只支持arm64 v8a的lib so库,因为qq只支持arm64 v8a
@@ -84,6 +84,21 @@ android {
8484
}
8585
}
8686

87+
/**
88+
* 自定义构建好的文件名
89+
*/
90+
androidComponents {
91+
onVariants { variant ->
92+
variant.outputs.forEach {
93+
val output = it as? com.android.build.api.variant.impl.VariantOutputImpl
94+
if (output == null) {
95+
return@forEach
96+
}
97+
output.outputFileName.set("Tim小助手_${output.versionName.get()}-${variant.buildType}.apk")
98+
}
99+
}
100+
}
101+
87102
fun getGitVersion(): String {
88103
return try {
89104
val process = ProcessBuilder("git", "rev-parse", "--short", "HEAD").start()

gradle/libs.versions.toml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
[versions]
22
# plugins
33
agp = "8.13.0"
4-
kotlin = "2.2.20"
4+
kotlin = "2.2.21"
55
ksp = "2.2.20-2.0.4"
66
protobuf = "0.9.5"
77

8-
# kotlin
9-
coreKtx = "1.17.0"
10-
coroutine = "1.10.2"
11-
activityKtx = "1.11.0"
12-
fragmentKtx = "1.8.9"
13-
lifecycleViewmodelKtx = "2.9.4"
14-
lifecycleLivedataKtx = "2.9.4"
158

169
#必备
1710
appcompat = "1.7.1"
@@ -34,15 +27,9 @@ xphelper = "2.8"
3427
[libraries]
3528

3629
# kotlin
37-
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
3830
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
3931
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" }
4032

41-
kotlinx-coroutines-android = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "coroutine" }
42-
androidx-lifecycle-viewmodel-ktx = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version.ref = "lifecycleViewmodelKtx" }
43-
androidx-lifecycle-livedata-ktx = { group = "androidx.lifecycle", name = "lifecycle-livedata-ktx", version.ref = "lifecycleLivedataKtx" }
44-
androidx-activity-ktx = { group = "androidx.activity", name = "activity-ktx", version.ref = "activityKtx" }
45-
androidx-fragment-ktx = { group = "androidx.fragment", name = "fragment-ktx", version.ref = "fragmentKtx" }
4633

4734
#必备
4835
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
@@ -52,16 +39,12 @@ fastkv = { group = 'io.github.billywei01', name = 'fastkv', version.ref = "fastk
5239
fastjson2 = { module = "com.alibaba.fastjson2:fastjson2", version.ref = "fastjson2" }
5340
fastjson2-kotlin = { module = "com.alibaba.fastjson2:fastjson2-kotlin", version.ref = "fastjson2" }
5441
okhttp3 = { group = "com.squareup.okhttp3", name = "okhttp", version.ref = "okhttp" }
55-
squareup-retrofit-converter-gson = { group = "com.squareup.retrofit2", name = "converter-gson", version.ref = "retrofit2" }
5642

5743
retrofit2 = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit2" }
5844
glide = { module = "com.github.bumptech.glide:glide", version.ref = "glide" }
5945
base-recyclerview-helper = { module = "io.github.cymchad:BaseRecyclerViewAdapterHelper4", version.ref = "base-recyclerview-helper" }
6046

6147
suzhelan-dialogx = { module = "com.github.suzhelan.DialogX:DialogX", version.ref = "dialogx" }#使用言子楪世改过的dialogx,可以在宿主使用
62-
suzhelan-dialogx-iosstyle = { module = "com.github.suzhelan.DialogX:DialogXIOSStyle", version.ref = "dialogx" }
63-
suzhelan-dialogx-kongzuestyle = { module = "com.github.suzhelan.DialogX:DialogXKongzueStyle", version.ref = "dialogx" }
64-
suzhelan-dialogx-miuistyle = { module = "com.github.suzhelan.DialogX:DialogXMIUIStyle", version.ref = "dialogx" }
6548
suzhelan-dialogx-materialstyle = { module = "com.github.suzhelan.DialogX:DialogXMaterialYou", version.ref = "dialogx" }
6649

6750
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" }
@@ -71,7 +54,6 @@ protobuf-java = { module = "com.google.protobuf:protobuf-java", version.ref = "p
7154
#xposed api
7255
xphelper = { module = "com.github.suzhelan:XpHelper", version.ref = "xphelper" }
7356
xposed-api = { module = "de.robv.android.xposed:api", version = "82" }
74-
dexkit = { module = "org.luckypray:dexkit", version = "2.0.2" }
7557

7658
#注解扫描器
7759
ksp = { module = "com.google.devtools.ksp:symbol-processing-api", version.ref = "ksp" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Wed Nov 13 16:07:56 CST 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)