Added debug keystore for debug builds

This commit is contained in:
Adolfo Santiago 2022-02-04 21:52:30 +01:00
parent 8d9c2800d8
commit c02af8f096
No known key found for this signature in database
GPG key ID: 244D6F9A317B4A65
2 changed files with 19 additions and 0 deletions

View file

@ -55,11 +55,22 @@ android {
) )
} }
signingConfigs {
getByName(DefaultConfig.DebugSign.signingDebug) {
storeFile = file("$rootDir/${DefaultConfig.DebugSign.keystoreFile}")
storePassword = DefaultConfig.DebugSign.keystorePassword
keyAlias = DefaultConfig.DebugSign.keyAlias
keyPassword = DefaultConfig.DebugSign.keyPassword
}
}
buildTypes { buildTypes {
getByName(BuildTypes.debug) { getByName(BuildTypes.debug) {
isDebuggable = true isDebuggable = true
isMinifyEnabled = false isMinifyEnabled = false
isShrinkResources = false isShrinkResources = false
signingConfig = signingConfigs.getByName(DefaultConfig.DebugSign.signingDebug)
} }
getByName(BuildTypes.release) { getByName(BuildTypes.release) {

View file

@ -31,6 +31,14 @@ object DefaultConfig {
const val encoding = "UTF-8" const val encoding = "UTF-8"
object DebugSign {
const val signingDebug = "debug"
const val keystoreFile = "debug.keystore"
const val keystorePassword = "android"
const val keyAlias = "androiddebugkey"
const val keyPassword = "android"
}
object Dev { object Dev {
const val applicationID = "su.xash.husky.dev" const val applicationID = "su.xash.husky.dev"