feat: add releaseNoMinify buildType

This commit is contained in:
lisonge 2024-07-05 19:46:25 +08:00
parent 274f0e7f29
commit 990d6ce4d3
4 changed files with 18 additions and 0 deletions

View File

@ -44,6 +44,11 @@ jobs:
name: release name: release
path: app/build/outputs/apk/release path: app/build/outputs/apk/release
- uses: actions/upload-artifact@v4
with:
name: releaseNoMinify
path: app/build/outputs/apk/releaseNoMinify
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: debug name: debug

View File

@ -37,6 +37,11 @@ jobs:
name: release name: release
path: app/build/outputs/apk/release path: app/build/outputs/apk/release
- uses: actions/upload-artifact@v4
with:
name: releaseNoMinify
path: app/build/outputs/apk/releaseNoMinify
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: debug name: debug

View File

@ -109,6 +109,11 @@ android {
) )
) )
} }
create("releaseNoMinify") {
initWith(getByName("release"))
isMinifyEnabled = false
isShrinkResources = false
}
debug { debug {
versionNameSuffix = vnSuffix versionNameSuffix = vnSuffix
applicationIdSuffix = ".debug" applicationIdSuffix = ".debug"

View File

@ -15,6 +15,9 @@ android {
release { release {
isMinifyEnabled = false isMinifyEnabled = false
} }
create("releaseNoMinify") {
isMinifyEnabled = false
}
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_17 sourceCompatibility = JavaVersion.VERSION_17