mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 04:27:02 +05:30
build(app): add signing configuration
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
06549bad2c
commit
63172ad79b
1 changed files with 16 additions and 0 deletions
|
@ -4,6 +4,7 @@ plugins {
|
|||
id 'dagger.hilt.android.plugin'
|
||||
}
|
||||
|
||||
final def keystorePropertiesFile = rootProject.file("keystore.properties")
|
||||
android {
|
||||
defaultConfig {
|
||||
applicationId "dev.msfjarvis.lobsters"
|
||||
|
@ -25,6 +26,21 @@ android {
|
|||
kotlinCompilerVersion "${kotlin_version}"
|
||||
kotlinCompilerExtensionVersion "${compose_version}"
|
||||
}
|
||||
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
final def keystoreProperties = new Properties()
|
||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||
|
||||
signingConfigs {
|
||||
release {
|
||||
keyAlias keystoreProperties['keyAlias']
|
||||
keyPassword keystoreProperties['keyPassword']
|
||||
storeFile rootProject.file(keystoreProperties['storeFile'])
|
||||
storePassword keystoreProperties['storePassword']
|
||||
}
|
||||
}
|
||||
buildTypes.release.signingConfig = signingConfigs.release
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue