fix: APK命名补充构建次数 vX.Y.Z-dav-{client}-{build}.apk
- archivesBaseName移除,改用applicationVariants动态命名 - versionCode: 6→7 - APK: v0.1.0-dav-android-7.apk
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
apply plugin: "com.android.application"
|
apply plugin: "com.android.application"
|
||||||
apply plugin: "org.jetbrains.kotlin.android"
|
apply plugin: "org.jetbrains.kotlin.android"
|
||||||
|
|
||||||
archivesBaseName = "v0.1.0-dav-android"
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace "dev.yuzu.gca"
|
namespace "dev.yuzu.gca"
|
||||||
compileSdk 35
|
compileSdk 35
|
||||||
@@ -11,7 +9,7 @@ android {
|
|||||||
applicationId "dev.yuzu.gca"
|
applicationId "dev.yuzu.gca"
|
||||||
minSdk 24
|
minSdk 24
|
||||||
targetSdk 35
|
targetSdk 35
|
||||||
versionCode 6
|
versionCode 7
|
||||||
versionName "0.1.0"
|
versionName "0.1.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,6 +24,12 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kotlinOptions { jvmTarget = "17" }
|
kotlinOptions { jvmTarget = "17" }
|
||||||
|
|
||||||
|
applicationVariants.all { variant ->
|
||||||
|
variant.outputs.all {
|
||||||
|
outputFileName = "v${variant.versionName}-dav-android-${variant.versionCode}.apk"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
Reference in New Issue
Block a user