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

Commit f40524d6 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

refactor: change way to detect tag based on Android API

parent 25a1cbee
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -123,7 +123,8 @@ class SystemAppsUpdatesRepository @Inject constructor(
        }

        if (systemAppProject.dependsOnAndroidVersion) {
            releases.removeIf { !it.tagName.contains("-api$androidVersionCode-")}
            //expects something like: vx.y.z-T for android T
            releases.removeIf { !it.tagName.endsWith("-$androidVersionCode")}
        }

        val sortedReleases = releases.sortedByDescending {