Skip to content

Commit

Permalink
#91 앱 서명키 처리 코드 app모듈내 gradle 설정 파일에 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pknujsp committed Jun 10, 2023
1 parent c320631 commit d8c07c9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.konan.properties.Properties

plugins {
id("mediproject.android.application")
id("mediproject.android.hilt")
Expand All @@ -7,6 +9,17 @@ plugins {
}

android {
signingConfigs {
val properties = Properties()
properties.load(project.rootProject.file("/apikey.properties").bufferedReader())
create("release") {
storeFile = project.rootProject.file(properties["SIGNED_STORE_FILE"] as String)
storePassword = properties["SIGNED_STORE_PASSWORD"] as String
keyAlias = properties["SIGNED_KEY_ALIAS"] as String
keyPassword = properties["SIGNED_KEY_PASSWORD"] as String
}
}

defaultConfig {
applicationId = "com.android.mediproject"
versionCode = 1
Expand All @@ -28,6 +41,7 @@ android {
"proguard-okhttp3.pro",
"proguard-room.pro",
"proguard-retrofit2.pro")
signingConfig = signingConfigs.getByName("release")
}
}
}
Expand Down

0 comments on commit d8c07c9

Please sign in to comment.