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 {