add signing stuff
This commit is contained in:
parent
4596f9c81c
commit
6334428d64
1 changed files with 11 additions and 0 deletions
|
@ -8,6 +8,15 @@ android {
|
||||||
namespace = "com.henryhiles.qweather"
|
namespace = "com.henryhiles.qweather"
|
||||||
compileSdk = 33
|
compileSdk = 33
|
||||||
|
|
||||||
|
signingConfigs {
|
||||||
|
create("release") {
|
||||||
|
storeFile = file("${rootDir}/keystore.jks")
|
||||||
|
keyPassword = System.getenv("KEY_PASSWORD")
|
||||||
|
keyAlias = "key0"
|
||||||
|
storePassword = System.getenv("STORE_PASSWORD")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "com.henryhiles.qweather"
|
applicationId = "com.henryhiles.qweather"
|
||||||
minSdk = 30
|
minSdk = 30
|
||||||
|
@ -24,6 +33,8 @@ android {
|
||||||
buildTypes {
|
buildTypes {
|
||||||
named("release") {
|
named("release") {
|
||||||
isMinifyEnabled = true
|
isMinifyEnabled = true
|
||||||
|
isShrinkResources = true
|
||||||
|
signingConfig = signingConfigs.getByName("release")
|
||||||
setProguardFiles(
|
setProguardFiles(
|
||||||
listOf(
|
listOf(
|
||||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||||
|
|
Reference in a new issue