Skip to content

Commit

Permalink
Generate APK sets with bundletool
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeso committed May 9, 2024
1 parent afbccf0 commit 0fde06b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@

- Remove encrypted Dependency Info Block

### Note
### Notes

- Sign release builds from keystore.properties file
- Generate APK sets with bundletool

## [1.8.5](https://github.com/ldeso/blitz/releases/tag/v1.8.5) – 2024-05-02

Expand Down
17 changes: 17 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import java.util.Properties
plugins {
kotlin("android") version libs.versions.kotlin
alias(libs.plugins.android.application)
alias(libs.plugins.bundletool)
}

android {
Expand Down Expand Up @@ -67,12 +68,28 @@ android {
generateLocaleConfig = true
}

bundle {
language {
enableSplit = false
}
}

dependenciesInfo {
includeInApk = false
includeInBundle = false
}
}

bundletool {
signingConfig {
val releaseSigningConfig = android.signingConfigs["release"]
storeFile = releaseSigningConfig.storeFile
storePassword = releaseSigningConfig.storePassword
keyAlias = releaseSigningConfig.keyAlias
keyPassword = releaseSigningConfig.keyPassword
}
}

dependencies {
implementation(platform(libs.androidx.compose.bom))
implementation(libs.androidx.activity.compose)
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ androidxComposeBom = "2024.05.00"
androidxComposeCompiler = "1.5.13"
androidxLifecycle = "2.7.0"
androidxWindowManager = "1.2.0"
bundletoolPlugin = "0.2.4"
jdk = "17"
kotlin = "1.9.23"
kotlinxCoroutines = "1.8.0"
Expand All @@ -24,3 +25,4 @@ kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-cor

[plugins]
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
bundletool = { id = "app.accrescent.tools.bundletool", version.ref = "bundletoolPlugin" }

0 comments on commit 0fde06b

Please sign in to comment.