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

Commit 98961cda authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

fixes for downloading system apps

parent f21de93e
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ class DownloadInfoApiImpl @Inject constructor(
            }

            Origin.GITLAB -> {
                updateDownloadInfoFromGitlab(appInstall, list)
                return // nothing to do as downloadURLList is already set
            }
        }

@@ -102,13 +102,6 @@ class DownloadInfoApiImpl @Inject constructor(
        appInstall.signature = downloadInfo?.download_data?.signature ?: ""
    }

    private suspend fun updateDownloadInfoFromGitlab(
        appInstall: AppInstall,
        list: MutableList<String>
    ) {
        // TODO
    }

    override suspend fun getOSSDownloadInfo(id: String, version: String?) =
        (appSources.cleanApkAppsRepo as CleanApkDownloadInfoFetcher)
            .getDownloadInfo(id, version)
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ class AppInstallProcessor @Inject constructor(
            it.contentRating = application.contentRating
        }

        if (appInstall.type == Type.PWA) {
        if (appInstall.type == Type.PWA || application.isSystemApp) {
            appInstall.downloadURLList = mutableListOf(application.url)
        }