Skip to content

Commit db87fba

Browse files
authored
Merge pull request #157 from NUmeroAndDev/renovate/jetpack-compose
Update Jetpack Compose to v1.7.0-beta07
2 parents f9b0072 + 3bbf156 commit db87fba

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kotlin = "2.0.10"
44
ksp = "2.0.10-1.0.24"
55

66
lifecycle = "2.8.4"
7-
compose = "1.7.0-beta01"
7+
compose = "1.7.0-beta07"
88
material3 = "1.3.0-beta01"
99
material3Adaptive = "1.0.0-beta04"
1010
glance = "1.0.0"

ui/src/main/java/jp/numero/dagashiapp/ui/component/MarkdownText.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import androidx.compose.ui.graphics.Color
1010
import androidx.compose.ui.text.AnnotatedString
1111
import androidx.compose.ui.text.LinkAnnotation
1212
import androidx.compose.ui.text.SpanStyle
13+
import androidx.compose.ui.text.TextLinkStyles
1314
import androidx.compose.ui.text.TextStyle
1415
import androidx.compose.ui.text.buildAnnotatedString
1516
import androidx.compose.ui.text.withLink
@@ -75,7 +76,9 @@ private fun AnnotatedString.Builder.appendFromParsedTree(
7576
withLink(
7677
LinkAnnotation.Url(
7778
url = makeXssSafeDestination(linkValue).toString(),
78-
style = SpanStyle(color = linkColor)
79+
styles = TextLinkStyles(
80+
style = SpanStyle(color = linkColor)
81+
),
7982
)
8083
) {
8184
append(
@@ -102,7 +105,9 @@ private fun AnnotatedString.Builder.appendFromParsedTree(
102105
withLink(
103106
LinkAnnotation.Url(
104107
url = makeXssSafeDestination(value).toString(),
105-
style = SpanStyle(color = linkColor)
108+
styles = TextLinkStyles(
109+
style = SpanStyle(color = linkColor)
110+
),
106111
)
107112
) {
108113
append(value)

0 commit comments

Comments
 (0)