Skip to content

Commit d50b05b

Browse files
committed
[fix] 릴리즈 빌드 시 사이닝 옵션 추가
- .gitingore 추가
1 parent 42ecb80 commit d50b05b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ build/
66
# Local configuration file (sdk path, etc)
77
local.properties
88

9+
# Release Keystore
10+
RunnectKeystore.jks
11+
912
# google client id
1013
credentials.json
1114

app/build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ android {
4444
buildConfigField "String", "KAKAO_CHANNEL_ID", properties["KAKAO_CHANNEL_ID"]
4545
}
4646

47+
signingConfigs {
48+
release {
49+
// local.properties에서 키 정보 불러오기
50+
def localProperties = new Properties()
51+
def localPropertiesFile = rootProject.file('local.properties')
52+
if (localPropertiesFile.exists()) {
53+
localProperties.load(new FileInputStream(localPropertiesFile))
54+
}
55+
56+
keyAlias localProperties['KEY_ALIAS']
57+
keyPassword localProperties['KEY_PASSWORD']
58+
storeFile file('app/RunnectKeystore.jks')
59+
storePassword localProperties['KEYSTORE_PASSWORD']
60+
}
61+
}
62+
4763
buildFeatures {
4864
buildConfig = true
4965
}
@@ -52,6 +68,7 @@ android {
5268
release {
5369
minifyEnabled false
5470
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
71+
signingConfig signingConfigs.release
5572
}
5673
}
5774

0 commit comments

Comments
 (0)