File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
app/src/main/java/team/aliens/dms/android/app Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import team.aliens.dms.android.feature.editpassword.navigation.EditPasswordNavGr
34
34
import team.aliens.dms.android.feature.signup.SignUpViewModel
35
35
import team.aliens.dms.android.feature.signup.TermsUrl
36
36
import team.aliens.dms.android.feature.signup.navigation.SignUpNavGraph
37
+ import team.aliens.dms.android.network.BuildConfig
37
38
38
39
@Composable
39
40
fun DmsApp (
@@ -61,7 +62,7 @@ fun DmsApp(
61
62
hiltViewModel<SignUpViewModel >(parentEntry)
62
63
}
63
64
64
- dependency(TermsScreenDestination ) { TermsUrl (value = " https://webview.dms-dsm.com/policy/privacy " ) }
65
+ dependency(TermsScreenDestination ) { TermsUrl (value = BuildConfig . TERMS_URL ) }
65
66
66
67
dependency(EditPasswordNavGraph ) {
67
68
val parentEntry = remember(navBackStackEntry) {
Original file line number Diff line number Diff line change @@ -28,11 +28,18 @@ android {
28
28
" proguard-rules.pro" ,
29
29
)
30
30
31
+ // TODO: move to :app
31
32
buildConfigField(
32
33
type = " String" ,
33
34
name = " BASE_URL" ,
34
35
value = localProperty(" PROD_BASE_URL" ),
35
36
)
37
+
38
+ buildConfigField(
39
+ type = " String" ,
40
+ name = " TERMS_URL" ,
41
+ value = localProperty(" TERMS_URL" ),
42
+ )
36
43
}
37
44
38
45
debug {
@@ -41,6 +48,11 @@ android {
41
48
name = " BASE_URL" ,
42
49
value = localProperty(" DEV_BASE_URL" ),
43
50
)
51
+ buildConfigField(
52
+ type = " String" ,
53
+ name = " TERMS_URL" ,
54
+ value = localProperty(" TERMS_URL" ),
55
+ )
44
56
}
45
57
}
46
58
You can’t perform that action at this time.
0 commit comments