Skip to content

Commit

Permalink
chore(#316): signingConfigs 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
hegleB committed Jan 24, 2024
1 parent 4055da8 commit b3f6763
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion AOS/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import java.io.FileInputStream
import java.util.Properties

plugins {
Expand All @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit b3f6763

Please sign in to comment.