This commit is contained in:
Horis committed 2024-07-25 17:23:01 +08:00
1 parent 9a62cdbf52
commit 79396eec88
2 files changed
+7 -4

No files matched your search

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