From bf1d808fceba67dd18145ad3e67d814874cb2deb Mon Sep 17 00:00:00 2001 From: chaehyun <80222352+chaehyuns@users.noreply.github.com> Date: Wed, 24 Jul 2024 17:21:37 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20buildConfigField=20null=20=EC=B2=B4?= =?UTF-8?q?=ED=81=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/build.gradle.kts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 48d9b73af..1fee7b97c 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -36,12 +36,9 @@ android { val baseUrl = properties.getProperty("base_url") val token = properties.getProperty("token") - if (baseUrl != null && token != null) { - buildConfigField("String", "BASE_URL", baseUrl) - buildConfigField("String", "TOKEN", token) - } else { - throw IllegalStateException("base_url or token is missing in local.properties") - } + + buildConfigField("String", "BASE_URL", baseUrl ?: "") + buildConfigField("String", "TOKEN", token ?: "") } buildTypes {