feat: app 签名

This commit is contained in:
2025-11-21 14:18:22 +08:00
parent ae8209e025
commit 4712855f6c
6 changed files with 34 additions and 29 deletions
+7 -7
View File
@@ -6,8 +6,7 @@ plugins {
alias(libs.plugins.kotlin.android)
}
val keystores: Map<String, Properties?> =
mapOf("release" to loadKeystoreProperties("keystore.properties"))
val keystores: Properties? = loadKeystoreProperties("keystore.properties")
android {
namespace = "com.yuanxuan.rokid"
@@ -25,13 +24,13 @@ android {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
keystores["release"]?.let { proerties ->
keystores?.let {
signingConfigs {
create("release") {
storeFile = rootProject.file(proerties["storeFile"] as String)
storePassword = proerties["storePassword"] as String
keyAlias = proerties["keyAlias"] as String
keyPassword = proerties["keyPassword"] as String
storeFile = rootProject.file(it["storeFile"] as String)
storePassword = it["storePassword"] as String
keyAlias = it["keyAlias"] as String
keyPassword = it["keyPassword"] as String
}
}
}
@@ -58,6 +57,7 @@ android {
}
buildFeatures {
viewBinding = true
buildConfig = true
}
}