위치 선택 지도를 구글 지도로 · Figma 구성 맞춤

This commit is contained in:
Sn-Kinos
2026-10-06 10:35:20 +09:00
parent 5269b987e0
commit 4e8d989f29
18 changed files with 401 additions and 244 deletions
+8
View File
@@ -25,6 +25,13 @@ val kakaoProperties = Properties().apply {
if (f.exists()) f.inputStream().use { load(it) }
}
// 구글 지도 API 키 — `android/local.properties` 의 `MAPS_API_KEY=<키>`(gitignore). 없으면 빈 값으로
// 빌드되고 지도만 비어 보인다(크래시 없음).
val localProperties = Properties().apply {
val f = rootProject.file("local.properties")
if (f.exists()) f.inputStream().use { load(it) }
}
/// 이번 실행이 릴리스 산출물(assembleRelease · bundleRelease 등)을 요구하는가.
val wantsRelease = gradle.startParameter.taskNames.any { it.contains("Release", ignoreCase = true) }
@@ -64,6 +71,7 @@ android {
// AndroidManifest 의 카카오 로그인 리다이렉트 스킴 `kakao{네이티브 앱 키}`.
manifestPlaceholders["kakaoNativeAppKey"] =
kakaoProperties.getProperty("FANUZU_KAKAO_NATIVE_APP_KEY", "")
manifestPlaceholders["mapsApiKey"] = localProperties.getProperty("MAPS_API_KEY", "")
}
signingConfigs {
@@ -83,6 +83,10 @@
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713" />
<!-- 구글 지도 API 키 — android/local.properties 의 MAPS_API_KEY(저장소 밖). 없으면 지도만 빈다. -->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="${mapsApiKey}" />
<!-- FCM 알림 표시 기본값 — Android 가 유일한 실동작 플랫폼이다(iOS 는 APNs 키
대기). 둘 다 없으면 백그라운드 알림이 「Miscellaneous」 채널로 흘러가고
흰 사각형 아이콘으로 뜬다. 사용자가 채널을 끄면 5개 구분 설정과 무관하게