Skip to content

Commit

Permalink
Add ToS and Privacy policy
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Nov 26, 2024
1 parent 43992dd commit 5ff3610
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.style.TextDecoration
import androidx.compose.ui.text.withStyle
import ivy.IvyUrls

@Composable
fun IntroLegalText(
Expand All @@ -19,8 +20,10 @@ fun IntroLegalText(
withStyle(SpanStyle(MaterialTheme.colors.onBackground)) {
append("By continuing, you agree to our ")
}
// TODO: Update the URL to the correct terms of use URL
pushStringAnnotation(tag = "URL", annotation = "https://www.example.com/terms")
pushStringAnnotation(
tag = "URL",
annotation = IvyUrls.tos
)
withStyle(
style = SpanStyle(
textDecoration = TextDecoration.Underline,
Expand All @@ -33,8 +36,10 @@ fun IntroLegalText(
withStyle(SpanStyle(MaterialTheme.colors.onBackground)) {
append(" and ")
}
// TODO: Update the URL to the correct privacy policy URL
pushStringAnnotation(tag = "URL", annotation = "https://www.example.com/privacy")
pushStringAnnotation(
tag = "URL",
annotation = IvyUrls.privacy
)
withStyle(
style = SpanStyle(
textDecoration = TextDecoration.Underline,
Expand Down
6 changes: 6 additions & 0 deletions shared/src/commonMain/kotlin/ivy/IvyUrls.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package ivy

object IvyUrls {
const val tos = "https://github.com/Ivy-Apps/legal/blob/main/ivy-learn-tos.md"
const val privacy = "https://github.com/Ivy-Apps/legal/blob/main/ivy-learn-privacy.md"
}

0 comments on commit 5ff3610

Please sign in to comment.