From 9561dbf409f8597678c3e356334fa02cdbfffb5c Mon Sep 17 00:00:00 2001 From: machiav3lli Date: Tue, 4 Oct 2022 00:47:26 +0200 Subject: [PATCH] Add: TargetSDK to info chips (closes #222) --- .../fdroid/ui/compose/components/appsheet/ChipGrid.kt | 2 ++ src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/appsheet/ChipGrid.kt b/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/appsheet/ChipGrid.kt index 825c8587..73f15bc8 100644 --- a/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/appsheet/ChipGrid.kt +++ b/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/appsheet/ChipGrid.kt @@ -35,6 +35,8 @@ fun AppInfoChips( DateFormat.getDateInstance().format(Date(product.updated)), if (latestRelease?.minSdkVersion != 0) "${stringResource(id = R.string.min_sdk)} ${latestRelease?.minSdkVersion}" else null, + if (latestRelease?.targetSdkVersion != 0) "${stringResource(id = R.string.target_sdk)} ${latestRelease?.targetSdkVersion}" + else null, if (product.antiFeatures.isNotEmpty()) stringResource(id = R.string.anti_features) else null, *product.licenses.toTypedArray(), diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index ed2fa9d4..57614e81 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -226,4 +226,5 @@ Reset Date added Date updated + targetSDK