upstream changes

upstream changes
This commit is contained in:
2023-08-09 03:49:14 +03:00
committed by GitHub
parent d3bbdc75f5
commit 8a6378f509
302 changed files with 13608 additions and 6377 deletions
@@ -18,7 +18,7 @@ data class UpdateItem(
val originalName: String,
val fileSize: Int,
val preRelease: Int,
val downloadLink: String
val downloadLink: String,
) : Parcelable {
fun isMandatory(): Boolean = mandatory == 1
@@ -29,7 +29,25 @@ data class UpdateItem(
return Gson().toJson(this)
}
companion object {
val EMPTY = UpdateItem(
id = 0,
versionName = "1.0.0",
versionCode = 2,
mandatory = 1,
changelog = "Some kind of simple changelog",
enabled = 1,
fileName = "bruhmeme.apk",
date = System.currentTimeMillis(),
extension = "",
originalName = "",
fileSize = 0,
preRelease = 0,
downloadLink = "https://c4.kemono.party/data/98/8c/988cf166f1ee9cd318e2407e6bfbabf60bffa53ed229ea0b2434009f1598e039.png?f=JessieGym002b4pt.png"
)
}
}
@Parcelize
data class UpdateActualUrl(val url: String) : Parcelable
data class UpdateActualUrl(val url: String) : Parcelable