Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09298e99 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

allow setting author from gitlab releases. change default author name from...

allow setting author from gitlab releases. change default author name from "Murena SAS" to "eFoundation"
parent c3e94c1f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ data class SystemAppInfo(
    @Json(name = "version_name") val versionName: String,
    @Json(name = "url") val downloadUrl: String,
    @Json(name = "size") val size: Long?,
    @Json(name = "author_name") val authorName: String?,
    val priority: Boolean?,
    @Json(name = "blacklisted_android") val blacklistedAndroid: List<Int>?,
    @Json(name = "blacklisted_devices") val blacklistedDevices: List<String>?,
@@ -43,7 +44,7 @@ private const val RANDOM_SIZE = 1L
fun SystemAppInfo.toApplication(): Application {
    return Application(
        _id = UUID.randomUUID().toString(),
        author = "Murena SAS",
        author = authorName ?: "eFoundation",
        description = "",
        latest_version_code = versionCode,
        latest_version_number = versionName,