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

Commit 7438c316 authored by Dayona Joseph's avatar Dayona Joseph
Browse files

Add parameter in app-detail api to return best compatible version

parent 25c10350
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ class AppDetailRequest(private val id: String) {

    fun request(callback: (Error?, FullData?) -> Unit) {
        try {
            val url = Constants.BASE_URL + "apps?action=app_detail&id=$id&architectures=[$sb"
            val url = Constants.BASE_URL + "apps?action=app_detail&exact_arch=false&id=$id&architectures=[$sb"
            val urlConnection = Common.createConnection(url, Constants.REQUEST_METHOD_GET)
            val result = reader.readValue<Result>(urlConnection.inputStream)
            urlConnection.disconnect()