Skip to content

Commit

Permalink
chore: buildConfigField null 체크
Browse files Browse the repository at this point in the history
  • Loading branch information
chaehyuns committed Jul 24, 2024
1 parent 88f5a90 commit bf1d808
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bf1d808

Please sign in to comment.