add gitCommitNumber to versionCode and bump version to 0.1.3

This commit is contained in:
Thomas Andres Gomez 2023-07-19 22:19:09 +02:00
parent a68bc64243
commit 6f31de389d
4 changed files with 40 additions and 52 deletions

1
.gitignore vendored
View file

@ -18,6 +18,7 @@ gen/
# Ignore gradle files
.gradle/
build/
release/
# Local configuration file (sdk path, etc)
local.properties

View file

@ -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"
}

View file

@ -104,7 +104,8 @@ fun CharacterDetailUio.annotated(): AnnotatedCharacterDetailUio {
val gender = stringResource(id = gender, short = true)
val race = stringResource(id = race)
return AnnotatedCharacterDetailUio(
return remember(search, race, highlightRace, gender, highlightGender) {
AnnotatedCharacterDetailUio(
name = AnnotatedString(
text = name,
spanStyles = highlightRegex?.annotatedSpan(
@ -112,7 +113,12 @@ fun CharacterDetailUio.annotated(): AnnotatedCharacterDetailUio {
spanStyle = highlight,
) ?: emptyList()
),
diminutive = diminutive?.let { highlightRegex?.annotatedString(it, spanStyle = highlight) },
diminutive = diminutive?.let {
highlightRegex?.annotatedString(
input = it,
spanStyle = highlight
)
},
gender = AnnotatedString(
text = gender,
spanStyles = when (highlightGender) {
@ -136,6 +142,7 @@ fun CharacterDetailUio.annotated(): AnnotatedCharacterDetailUio {
portrait = portrait,
)
}
}
@Composable
fun CharacterDetailScreen(

View file

@ -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(