Skip to content

Commit

Permalink
refactor : subdomain 대신 domain 통으로 가져오기
Browse files Browse the repository at this point in the history
  • Loading branch information
HamBP committed Oct 10, 2024
1 parent 6074d0d commit 401541a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion presentation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,21 @@ android {
consumerProguardFiles("consumer-rules.pro")
buildConfigField("String", "PACKAGE_NAME", "\"${libs.versions.packageName.get()}\"")
buildConfigField("String", "VERSION_NAME", "\"${libs.versions.versionName.get()}\"")
buildConfigField("String", "DEV_SUBDOMAIN", getLocalProperty("DEV_SUBDOMAIN"))
}

buildTypes {
debug {
buildConfigField("String", "TOSS_CLIENT_KEY", getLocalProperty("DEV_TOSS_CLIENT_KEY"))
buildConfigField("String", "TOSS_SECRET_KEY", getLocalProperty("DEV_TOSS_SECRET_KEY"))
buildConfigField("String", "DOMAIN", getLocalProperty("DEV_DOMAIN"))
}
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")

buildConfigField("String", "TOSS_CLIENT_KEY", getLocalProperty("PROD_TOSS_CLIENT_KEY"))
buildConfigField("String", "TOSS_SECRET_KEY", getLocalProperty("PROD_TOSS_SECRET_KEY"))
buildConfigField("String", "DOMAIN", getLocalProperty("PROD_DOMAIN"))
}
}
compileOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ fun sendMessage(
dateText: String,
buttonText: String
) {
val subDomain = if (BuildConfig.DEBUG) BuildConfig.DEV_SUBDOMAIN else ""
val giftUrl = "https://${subDomain}boolti.in/gift/$giftUuid"
val domain = BuildConfig.DOMAIN
val giftUrl = "https://${domain}/gift/$giftUuid"

val defaultFeed = FeedTemplate(
content = Content(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ fun ShowRegistrationScreen(
Timber.d("선택한 파일 uri 목록 : $uris")
filePathCallback?.onReceiveValue(uris.toTypedArray())
}
val subDomain = if (BuildConfig.DEBUG) BuildConfig.DEV_SUBDOMAIN else ""
val url = "https://${subDomain}boolti.in/show/add"
val domain = BuildConfig.DOMAIN
val url = "https://${domain}/show/add"

LaunchedEffect(Unit) {
CookieManager.getInstance().removeAllCookies(null)
Expand Down

0 comments on commit 401541a

Please sign in to comment.