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

Commit 193b5d5d authored by dev-12's avatar dev-12
Browse files

build: upstream have changed version code from int to long

parent 0fa46de5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ class ApplicationRepository @Inject constructor(
    suspend fun getOnDemandModule(
        packageName: String,
        moduleName: String,
        versionCode: Int,
        versionCode: Long,
        offerType: Int
    ): String? {
        return downloadInfoApi.getOnDemandModule(packageName, moduleName, versionCode, offerType)
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ data class Application(
    var reportId: Long = -1L,
    val icon_image_path: String = String(),
    val last_modified: String = String(),
    var latest_version_code: Int = -1,
    var latest_version_code: Long = -1,
    val latest_version_number: String = String(),
    val latest_downloaded_version: String = String(),
    val licence: String = String(),
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ interface DownloadInfoApi {
    suspend fun getOnDemandModule(
        packageName: String,
        moduleName: String,
        versionCode: Int,
        versionCode: Long,
        offerType: Int
    ): String?

+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ class DownloadInfoApiImpl @Inject constructor(
    override suspend fun getOnDemandModule(
        packageName: String,
        moduleName: String,
        versionCode: Int,
        versionCode: Long,
        offerType: Int
    ): String? {
        val result = handleNetworkResult {
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ fun App.toApplication(context: Context): Application {
        latest_version_code = this.versionCode,
        latest_version_number = this.versionName,
        name = this.displayName,
        other_images_path = this.screenshots.toList(),
        other_images_path = this.screenshots.toList().map { it.url },
        package_name = this.packageName,
        ratings = Ratings(
            usageQualityScore =
Loading