From c75ff8cb9aa9c0ccd43d532876400cf38efa3ea8 Mon Sep 17 00:00:00 2001 From: nk Date: Mon, 8 Jun 2026 14:26:02 +0300 Subject: [PATCH] =?UTF-8?q?build(app):=20=D1=80=D0=B5=D0=BB=D0=B8=D0=B7?= =?UTF-8?q?=D0=BD=D0=B0=D1=8F=20=D0=BF=D0=BE=D0=B4=D0=BF=D0=B8=D1=81=D1=8C?= =?UTF-8?q?=20=D0=B8=D0=B7=20keystore.properties=20(=D0=97=D0=B0=D0=B4?= =?UTF-8?q?=D0=B0=D1=87=D0=B0=206)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle.kts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a760c64..528586d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,3 +1,5 @@ +import java.util.Properties + plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.android) @@ -7,6 +9,12 @@ plugins { alias(libs.plugins.hilt) } +// Релизная подпись: пароли/путь к keystore — в keystore.properties (в .gitignore). +val keystorePropsFile = rootProject.file("keystore.properties") +val keystoreProps = Properties().apply { + if (keystorePropsFile.exists()) keystorePropsFile.inputStream().use { load(it) } +} + android { namespace = "com.radiola" compileSdk = 34 @@ -24,8 +32,20 @@ android { } } + signingConfigs { + create("release") { + if (keystorePropsFile.exists()) { + storeFile = rootProject.file(keystoreProps.getProperty("storeFile")) + storePassword = keystoreProps.getProperty("storePassword") + keyAlias = keystoreProps.getProperty("keyAlias") + keyPassword = keystoreProps.getProperty("keyPassword") + } + } + } + buildTypes { release { + signingConfig = signingConfigs.getByName("release") isMinifyEnabled = false proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"),