Skip to content

Commit

Permalink
๐Ÿ›๏ธ add debug log apikey in build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
SageHabitus committed Sep 4, 2024
1 parent f63d969 commit 9e7f4d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ android {
ext["KAKAO_API_KEY"] = kakaoApiKey

val escapedKakaoApiKey = "\"${kakaoApiKey.replace("\"", "\\\"")}\""
buildConfigField("String", "KAKAO_API_KEY", escapedKakaoApiKey) // ์ˆ˜์ •๋œ ๋ถ€๋ถ„
buildConfigField("String", "KAKAO_API_KEY", escapedKakaoApiKey)
println("KAKAO_API_KEY: ${System.getenv("KAKAO_API_KEY") ?: "No key found"}")
} else {
println("KAKAO_API_KEY: ${System.getenv("KAKAO_API_KEY") ?: "No key found"}")
val kakaoApiKey = System.getenv("KAKAO_API_KEY")
if (!kakaoApiKey.isNullOrBlank()) {
buildConfigField("String", "KAKAO_API_KEY", "\"$kakaoApiKey\"")
Expand Down

0 comments on commit 9e7f4d9

Please sign in to comment.