Add: Developer to ProductItem

This commit is contained in:
machiav3lli 2022-10-11 02:55:06 +02:00
parent b8d7baab46
commit 23b95955dc
2 changed files with 13 additions and 11 deletions

View File

@ -106,17 +106,18 @@ open class Product(
fun toItem(installed: Installed? = null): ProductItem =
ProductItem(
repositoryId,
packageName,
label,
summary,
icon,
metadataIcon,
version,
"",
compatible,
canUpdate(installed),
0
repositoryId = repositoryId,
packageName = packageName,
name = label,
developer = author.name,
summary = summary,
icon = icon,
metadataIcon = metadataIcon,
version = version,
installedVersion = "",
compatible = compatible,
canUpdate = canUpdate(installed),
matchRank = 0
)
fun canUpdate(installed: Installed?): Boolean =

View File

@ -4,6 +4,7 @@ data class ProductItem(
var repositoryId: Long = 0,
var packageName: String = "com.machaiv3lli.fdroid",
var name: String = "Droid-ify",
val developer: String = "",
var summary: String = "A great F-Droid client",
val icon: String = "",
val metadataIcon: String = "",