From b3f6763a3e4223049619f51c8c0c9eafc64d4273 Mon Sep 17 00:00:00 2001 From: dltkd1395 Date: Thu, 25 Jan 2024 00:10:51 +0900 Subject: [PATCH] =?UTF-8?q?chore(#316):=20signingConfigs=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AOS/app/build.gradle.kts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/AOS/app/build.gradle.kts b/AOS/app/build.gradle.kts index fc73ecc6..e369d42c 100644 --- a/AOS/app/build.gradle.kts +++ b/AOS/app/build.gradle.kts @@ -1,3 +1,4 @@ +import java.io.FileInputStream import java.util.Properties plugins { @@ -10,6 +11,10 @@ plugins { id("com.google.gms.google-services") } +val keystorePropertiesFile = rootProject.file("keystore.properties") +val keystoreProperties = Properties() +keystoreProperties.load(FileInputStream(keystorePropertiesFile)) + android { namespace = "boostcamp.and07.mindsync" compileSdk = 34 @@ -35,13 +40,22 @@ android { buildConfigField("String", "KAKAO_CLIENT_ID", "$kakaoClientId") manifestPlaceholders["KAKAO_CLIENT_ID"] = removeQuotationKakaoClientId } + signingConfigs { + create("release") { + keyAlias = keystoreProperties["keyAlias"] as String + keyPassword = keystoreProperties["keyPassword"] as String + storeFile = file(keystoreProperties["storeFile"] as String) + storePassword = keystoreProperties["storePassword"] as String + } + } buildTypes { - release { + getByName("release") { isMinifyEnabled = false proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro", ) + signingConfig = signingConfigs.getByName("release") } } buildFeatures {