We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c52938e commit 1ba7b83Copy full SHA for 1ba7b83
1 file changed
app/build.gradle.kts
@@ -20,11 +20,16 @@ android {
20
defaultConfig {
21
applicationId = "com.threegap.bitnagil"
22
23
- manifestPlaceholders["KAKAO_NATIVE_APP_KEY"] = properties["kakao.native.app.key"] as String
+ val kakaoNativeAppKey =
24
+ (properties["kakao.native.app.key"] as? String)
25
+ ?: System.getenv("KAKAO_NATIVE_APP_KEY")
26
+ ?: throw GradleException("KAKAO_NATIVE_APP_KEY 값이 없습니다.")
27
+
28
+ manifestPlaceholders["KAKAO_NATIVE_APP_KEY"] = kakaoNativeAppKey
29
buildConfigField(
30
type = "String",
31
name = "KAKAO_NATIVE_APP_KEY",
- value = "\"${properties["kakao.native.app.key"]}\"",
32
+ value = "\"$kakaoNativeAppKey\"",
33
)
34
}
35
0 commit comments