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

Commit a7330f60 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

change Origin and Source from GITLAB to GITLAB_RELEASES

parent 97def60c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ class ApplicationDataManager @Inject constructor(
            application.package_name.isBlank() -> FilterLevel.UNKNOWN
            !application.isFree && application.price.isBlank() -> FilterLevel.UI
            application.origin == Origin.CLEANAPK -> FilterLevel.NONE
            application.origin == Origin.GITLAB -> FilterLevel.NONE
            application.origin == Origin.GITLAB_RELEASES -> FilterLevel.NONE
            !isRestricted(application) -> FilterLevel.NONE
            authData == null -> FilterLevel.UNKNOWN // cannot determine for gplay app
            !isApplicationVisible(application) -> FilterLevel.DATA
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ data class Application(
    fun updateSource(context: Context) {
        this.apply {
            source = when {
                origin == Origin.GITLAB -> context.getString(R.string.system_app)
                origin == Origin.GITLAB_RELEASES -> context.getString(R.string.system_app)
                origin == Origin.GPLAY -> ""
                is_pwa -> context.getString(R.string.pwa)
                else -> context.getString(R.string.open_source)
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ class DownloadInfoApiImpl @Inject constructor(
                updateDownloadInfoFromGplay(appInstall, list)
            }

            Origin.GITLAB -> {
            Origin.GITLAB_RELEASES -> {
                // TODO
            }
        }
+2 −2
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ class HomeApiImpl @Inject constructor(
                handleCleanApkHomes(priorList, SearchApi.APP_TYPE_PWA)
            }

            Source.GITLAB -> {
            Source.GITLAB_RELEASES -> {
                ResultSupreme.Error(message = "Gitlab source not allowed")
            }
        }
@@ -227,7 +227,7 @@ class HomeApiImpl @Inject constructor(
        if (apiStatus != ResultStatus.OK) {
            apiStatus.message = when (source) {
                Source.GPLAY -> ("GPlay home loading error\n" + apiStatus.message).trim()
                Source.GITLAB -> ("Gitlab home not allowed\n" + apiStatus.message).trim()
                Source.GITLAB_RELEASES -> ("Gitlab home not allowed\n" + apiStatus.message).trim()
                Source.OPEN -> ("Open Source home loading error\n" + apiStatus.message).trim()
                Source.PWA -> ("PWA home loading error\n" + apiStatus.message).trim()
            }
+1 −1
Original line number Diff line number Diff line
@@ -21,5 +21,5 @@ package foundation.e.apps.data.enums
enum class Origin {
    CLEANAPK,
    GPLAY,
    GITLAB,
    GITLAB_RELEASES,
}
Loading