This commit is contained in:
Horis
2024-07-25 17:23:01 +08:00
parent df8ece90be
commit 41293796a9
2 changed files with 7 additions and 4 deletions
@@ -22,15 +22,16 @@ enum class AppVariant {
}
data class GithubRelease(
val assets: List<Asset>,
val assets: List<Asset>?,
val body: String,
@SerializedName("prerelease")
val isPreRelease: Boolean,
) {
fun gitReleaseToAppReleaseInfo(): List<AppReleaseInfo> {
return assets
.filter { it.isValid }
.map { it.assetToAppReleaseInfo(isPreRelease, body) }
?.filter { it.isValid }
?.map { it.assetToAppReleaseInfo(isPreRelease, body) }
.orEmpty()
}
}