Skip to content

Commit c52938e

Browse files
committed
Refactor: local.properties 파일 처리 방식 변경
- GitHub Actions 워크플로우에 local.properties 파일 생성 단계 추가
1 parent 49e6c78 commit c52938e

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/develop_branch.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ jobs:
2929

3030
- name: Build with Gradle
3131
run: ./gradlew assembleDebug
32+
33+
- name: Generate local.properties
34+
env:
35+
KAKAO_NATIVE_APP_KEY: ${{ secrets.KAKAO_NATIVE_APP_KEY }}
36+
run: |
37+
echo "kakao.native.app.key=$KAKAO_NATIVE_APP_KEY" >> local.properties

app/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ android {
1111

1212
val properties =
1313
Properties().apply {
14-
load(rootProject.file("local.properties").inputStream())
14+
val propFile = rootProject.file("local.properties")
15+
if (propFile.exists()) {
16+
load(propFile.inputStream())
17+
}
1518
}
1619

1720
defaultConfig {

0 commit comments

Comments
 (0)