Skip to content

Commit 90f6e23

Browse files
committed
♻️ :: terms
1 parent a67962d commit 90f6e23

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

app/src/main/java/team/aliens/dms/android/app/DmsApp.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import team.aliens.dms.android.feature.editpassword.navigation.EditPasswordNavGr
3434
import team.aliens.dms.android.feature.signup.SignUpViewModel
3535
import team.aliens.dms.android.feature.signup.TermsUrl
3636
import team.aliens.dms.android.feature.signup.navigation.SignUpNavGraph
37+
import team.aliens.dms.android.network.BuildConfig
3738

3839
@Composable
3940
fun DmsApp(
@@ -61,7 +62,7 @@ fun DmsApp(
6162
hiltViewModel<SignUpViewModel>(parentEntry)
6263
}
6364

64-
dependency(TermsScreenDestination) { TermsUrl(value = "https://webview.dms-dsm.com/policy/privacy") }
65+
dependency(TermsScreenDestination) { TermsUrl(value = BuildConfig.TERMS_URL) }
6566

6667
dependency(EditPasswordNavGraph) {
6768
val parentEntry = remember(navBackStackEntry) {

network/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,18 @@ android {
2828
"proguard-rules.pro",
2929
)
3030

31+
// TODO: move to :app
3132
buildConfigField(
3233
type = "String",
3334
name = "BASE_URL",
3435
value = localProperty("PROD_BASE_URL"),
3536
)
37+
38+
buildConfigField(
39+
type = "String",
40+
name = "TERMS_URL",
41+
value = localProperty("TERMS_URL"),
42+
)
3643
}
3744

3845
debug {
@@ -41,6 +48,11 @@ android {
4148
name = "BASE_URL",
4249
value = localProperty("DEV_BASE_URL"),
4350
)
51+
buildConfigField(
52+
type = "String",
53+
name = "TERMS_URL",
54+
value = localProperty("TERMS_URL"),
55+
)
4456
}
4557
}
4658

0 commit comments

Comments
 (0)