Skip to content

Commit

Permalink
Configure release build (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
julioromano authored Mar 14, 2023
1 parent c82f0a6 commit 30f6651
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/

# Secrets
.secrets/
28 changes: 13 additions & 15 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@ plugins {

android {
namespace = "net.marcoromano.tmdb.app"
// TODO: Uncomment after creating keystore.
// signingConfigs {
// create("release") {
// storeFile = file("app.keystore")
// storePassword = System.getenv("STORE_PASSWORD")
// keyAlias = System.getenv("KEY_ALIAS")
// keyPassword = System.getenv("KEY_PASSWORD")
// enableV1Signing = true
// enableV2Signing = true
// enableV3Signing = true
// enableV4Signing = true
// }
// }
signingConfigs {
create("release") {
storeFile = file(".secrets/keystore.jks")
storePassword = System.getenv("STORE_PASSWORD")
keyAlias = System.getenv("KEY_ALIAS")
keyPassword = System.getenv("KEY_PASSWORD")
enableV1Signing = false
enableV2Signing = true
enableV3Signing = true
enableV4Signing = true
}
}
buildToolsVersion = libs.versions.android.buildTools.get()
compileSdk = libs.versions.android.compileSdk.get().toInt()
defaultConfig {
Expand All @@ -47,8 +46,7 @@ android {
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro",
)
// TODO: Uncomment after creating keystore.
// signingConfig = signingConfigs.getByName("release")
signingConfig = signingConfigs.getByName("release")
}
}
compileOptions {
Expand Down

0 comments on commit 30f6651

Please sign in to comment.