Update build.gradle.kts

v1.0.1
This commit is contained in:
amurcanov 2026-03-25 05:04:11 +03:00 committed by GitHub
parent b67f45e497
commit 604095a1e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 8 deletions

View File

@ -4,11 +4,11 @@ plugins {
} }
android { android {
namespace = "com.example.tgwsproxy" namespace = "com.amurcanov.tgwsproxy"
compileSdk = 34 compileSdk = 34
defaultConfig { defaultConfig {
applicationId = "com.example.tgwsproxy" applicationId = "com.amurcanov.tgwsproxy"
minSdk = 26 minSdk = 26
targetSdk = 34 targetSdk = 34
versionCode = 1 versionCode = 1
@ -25,17 +25,21 @@ android {
} }
signingConfigs { signingConfigs {
create("release") { val keystoreFile = file("amurcanov.jks")
storeFile = file("release.jks") if (keystoreFile.exists()) {
storePassword = "password" create("release") {
keyAlias = "release" storeFile = keystoreFile
keyPassword = "password" // Берем пароли из локальных переменных среды или файла
storePassword = System.getenv("KEYSTORE_PASSWORD") ?: "flowseal-fork"
keyAlias = "amurcanov"
keyPassword = System.getenv("KEY_PASSWORD") ?: "flowseal-fork"
}
} }
} }
buildTypes { buildTypes {
release { release {
signingConfig = signingConfigs.getByName("release") signingConfig = signingConfigs.findByName("release")
isMinifyEnabled = true isMinifyEnabled = true
isShrinkResources = true isShrinkResources = true
proguardFiles( proguardFiles(