add gitCommitNumber to versionCode and bump version to 0.1.3
This commit is contained in:
parent
a68bc64243
commit
6f31de389d
4 changed files with 40 additions and 52 deletions
|
|
@ -104,37 +104,44 @@ fun CharacterDetailUio.annotated(): AnnotatedCharacterDetailUio {
|
|||
val gender = stringResource(id = gender, short = true)
|
||||
val race = stringResource(id = race)
|
||||
|
||||
return AnnotatedCharacterDetailUio(
|
||||
name = AnnotatedString(
|
||||
text = name,
|
||||
spanStyles = highlightRegex?.annotatedSpan(
|
||||
input = name,
|
||||
spanStyle = highlight,
|
||||
) ?: emptyList()
|
||||
),
|
||||
diminutive = diminutive?.let { highlightRegex?.annotatedString(it, spanStyle = highlight) },
|
||||
gender = AnnotatedString(
|
||||
text = gender,
|
||||
spanStyles = when (highlightGender) {
|
||||
true -> listOf(AnnotatedString.Range(highlight, 0, gender.length))
|
||||
else -> emptyList()
|
||||
}
|
||||
),
|
||||
race = AnnotatedString(
|
||||
text = race,
|
||||
spanStyles = when (highlightRace) {
|
||||
true -> listOf(AnnotatedString.Range(highlight, 0, race.length))
|
||||
else -> emptyList()
|
||||
}
|
||||
),
|
||||
description = description?.let { description ->
|
||||
highlightRegex?.annotatedString(description, spanStyle = highlight)
|
||||
},
|
||||
history = history?.let { history ->
|
||||
highlightRegex?.annotatedString(history, spanStyle = highlight)
|
||||
},
|
||||
portrait = portrait,
|
||||
)
|
||||
return remember(search, race, highlightRace, gender, highlightGender) {
|
||||
AnnotatedCharacterDetailUio(
|
||||
name = AnnotatedString(
|
||||
text = name,
|
||||
spanStyles = highlightRegex?.annotatedSpan(
|
||||
input = name,
|
||||
spanStyle = highlight,
|
||||
) ?: emptyList()
|
||||
),
|
||||
diminutive = diminutive?.let {
|
||||
highlightRegex?.annotatedString(
|
||||
input = it,
|
||||
spanStyle = highlight
|
||||
)
|
||||
},
|
||||
gender = AnnotatedString(
|
||||
text = gender,
|
||||
spanStyles = when (highlightGender) {
|
||||
true -> listOf(AnnotatedString.Range(highlight, 0, gender.length))
|
||||
else -> emptyList()
|
||||
}
|
||||
),
|
||||
race = AnnotatedString(
|
||||
text = race,
|
||||
spanStyles = when (highlightRace) {
|
||||
true -> listOf(AnnotatedString.Range(highlight, 0, race.length))
|
||||
else -> emptyList()
|
||||
}
|
||||
),
|
||||
description = description?.let { description ->
|
||||
highlightRegex?.annotatedString(description, spanStyle = highlight)
|
||||
},
|
||||
history = history?.let { history ->
|
||||
highlightRegex?.annotatedString(history, spanStyle = highlight)
|
||||
},
|
||||
portrait = portrait,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ private fun SearchItemUio.annotate(): AnnotatedSearchItemUio {
|
|||
val gender = stringResource(id = gender, short = true)
|
||||
val race = stringResource(id = race)
|
||||
|
||||
return remember(search) {
|
||||
return remember(search, race, highlightRace, gender, highlightGender) {
|
||||
AnnotatedSearchItemUio(
|
||||
id = id,
|
||||
name = AnnotatedString(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue