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
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -18,6 +18,7 @@ gen/
|
|||
# Ignore gradle files
|
||||
.gradle/
|
||||
build/
|
||||
release/
|
||||
|
||||
# Local configuration file (sdk path, etc)
|
||||
local.properties
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
{
|
||||
"version": 3,
|
||||
"artifactType": {
|
||||
"type": "APK",
|
||||
"kind": "Directory"
|
||||
},
|
||||
"applicationId": "com.pixelized.rplexicon",
|
||||
"variantName": "release",
|
||||
"elements": [
|
||||
{
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"attributes": [],
|
||||
"versionCode": 3,
|
||||
"versionName": "0.1.2",
|
||||
"outputFile": "app-release.apk"
|
||||
}
|
||||
],
|
||||
"elementType": "File"
|
||||
}
|
||||
|
|
@ -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