Skip to content

Commit f19e001

Browse files
renovate[bot]sagarwal
andauthored
Update dependency androidx.compose:compose-bom to v2025.08.01 (#5573)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [androidx.compose:compose-bom](https://developer.android.com/jetpack) | `2025.07.00` -> `2025.08.01` | [![age](https://developer.mend.io/api/mc/badges/age/maven/androidx.compose:compose-bom/2025.08.01?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/androidx.compose:compose-bom/2025.07.00/2025.08.01?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/simpledotorg/simple-android). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuOTEuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: sagarwal <[email protected]>
1 parent d47b5c0 commit f19e001

File tree

4 files changed

+160
-157
lines changed

4 files changed

+160
-157
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
- Bump Google Service to v4.4.3
2727
- Bump Sentry Android to v5.9.0
2828
- Bump AndroidX ViewModel to v2.9.3
29+
- Update Compose BOM to v2025.08.01
2930

3031
### Changes
3132

app/src/main/java/org/simple/clinic/patient/businessid/Identifier.kt

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package org.simple.clinic.patient.businessid
22

33
import android.content.res.Resources
44
import android.os.Parcelable
5+
import androidx.annotation.StringRes
56
import androidx.annotation.VisibleForTesting
67
import androidx.room.ColumnInfo
78
import androidx.room.TypeConverter
@@ -42,6 +43,7 @@ data class Identifier(
4243

4344
"$prefix${Unicode.nonBreakingSpace}$suffix"
4445
}
46+
4547
BangladeshNationalId -> value
4648
EthiopiaMedicalRecordNumber -> value
4749
IndiaNationalHealthId -> {
@@ -53,6 +55,7 @@ data class Identifier(
5355

5456
"$prefix${Unicode.nonBreakingSpace}$subString1${Unicode.nonBreakingSpace}$subString2${Unicode.nonBreakingSpace}$suffix"
5557
}
58+
5659
SriLankaNationalId -> value
5760
SriLankaPersonalHealthNumber -> value
5861
is Unknown -> value
@@ -67,14 +70,19 @@ data class Identifier(
6770
}
6871

6972
fun displayType(resources: Resources): String {
73+
return resources.getString(displayTypeResId())
74+
}
75+
76+
@StringRes
77+
fun displayTypeResId(): Int {
7078
return when (type) {
71-
BpPassport -> resources.getString(R.string.identifiertype_bp_passport)
72-
BangladeshNationalId -> resources.getString(R.string.identifiertype_bangladesh_national_id)
73-
EthiopiaMedicalRecordNumber -> resources.getString(R.string.identifiertype_ethiopia_medical_record_number)
74-
IndiaNationalHealthId -> resources.getString(R.string.identifiertype_india_national_health_id)
75-
SriLankaNationalId -> resources.getString(R.string.identifiertype_sri_lanka_national_id)
76-
SriLankaPersonalHealthNumber -> resources.getString(R.string.identifiertype_sri_lanka_personal_health_number)
77-
is Unknown -> resources.getString(R.string.identifiertype_unknown)
79+
BpPassport -> R.string.identifiertype_bp_passport
80+
BangladeshNationalId -> R.string.identifiertype_bangladesh_national_id
81+
EthiopiaMedicalRecordNumber -> R.string.identifiertype_ethiopia_medical_record_number
82+
IndiaNationalHealthId -> R.string.identifiertype_india_national_health_id
83+
SriLankaNationalId -> R.string.identifiertype_sri_lanka_national_id
84+
SriLankaPersonalHealthNumber -> R.string.identifiertype_sri_lanka_personal_health_number
85+
is Unknown -> R.string.identifiertype_unknown
7886
}
7987
}
8088

0 commit comments

Comments
 (0)