11@file:Suppress(" INLINE_FROM_HIGHER_PLATFORM" )
22
3- import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
43import com.google.devtools.ksp.gradle.KspExtension
4+ import com.ninecraft.booket.convention.getLocalProperty
55import org.gradle.kotlin.dsl.configure
66import java.util.Properties
77
@@ -32,6 +32,7 @@ android {
3232 getByName(" debug" ) {
3333 isDebuggable = true
3434 applicationIdSuffix = " .dev"
35+ buildConfigField(" String" , " GOOGLE_WEB_CLIENT_ID" , getLocalProperty(" DEBUG_GOOGLE_WEB_CLIENT_ID" ))
3536 manifestPlaceholders + = mapOf (
3637 " appName" to " @string/app_name_dev" ,
3738 )
@@ -42,6 +43,7 @@ android {
4243 isMinifyEnabled = true
4344 isShrinkResources = true
4445 signingConfig = signingConfigs.getByName(" release" )
46+ buildConfigField(" String" , " GOOGLE_WEB_CLIENT_ID" , getLocalProperty(" RELEASE_GOOGLE_WEB_CLIENT_ID" ))
4547 manifestPlaceholders + = mapOf (
4648 " appName" to " @string/app_name" ,
4749 )
@@ -53,8 +55,8 @@ android {
5355 }
5456
5557 defaultConfig {
56- buildConfigField(" String" , " KAKAO_NATIVE_APP_KEY" , getApiKey (" KAKAO_NATIVE_APP_KEY" ))
57- manifestPlaceholders[" KAKAO_NATIVE_APP_KEY" ] = getApiKey (" KAKAO_NATIVE_APP_KEY" ).trim(' "' )
58+ buildConfigField(" String" , " KAKAO_NATIVE_APP_KEY" , getLocalProperty (" KAKAO_NATIVE_APP_KEY" ))
59+ manifestPlaceholders[" KAKAO_NATIVE_APP_KEY" ] = getLocalProperty (" KAKAO_NATIVE_APP_KEY" ).trim(' "' )
5860 }
5961
6062 buildFeatures {
@@ -109,7 +111,3 @@ dependencies {
109111 api(libs.circuit.codegen.annotation)
110112 ksp(libs.circuit.codegen.ksp)
111113}
112-
113- fun getApiKey (propertyKey : String ): String {
114- return gradleLocalProperties(rootDir, providers).getProperty(propertyKey)
115- }
0 commit comments