Skip to content

Commit

Permalink
feat: add releaseNoMinify buildType
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Jul 5, 2024
1 parent 274f0e7 commit 990d6ce
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/Build-Apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
name: 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
with:
name: debug
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/Build-Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
name: 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
with:
name: debug
Expand Down
5 changes: 5 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ android {
)
)
}
create("releaseNoMinify") {
initWith(getByName("release"))
isMinifyEnabled = false
isShrinkResources = false
}
debug {
versionNameSuffix = vnSuffix
applicationIdSuffix = ".debug"
Expand Down
3 changes: 3 additions & 0 deletions hidden_api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ android {
release {
isMinifyEnabled = false
}
create("releaseNoMinify") {
isMinifyEnabled = false
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
Expand Down

0 comments on commit 990d6ce

Please sign in to comment.