From: Daniel Martí Date: Tue, 4 Mar 2014 08:07:12 +0000 (+0100) Subject: Add basic support for abis on the web repo X-Git-Tag: 0.2~217 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fc09d23ad06eeda21c1c8b322463b05861ffd55c;p=fdroidserver.git Add basic support for abis on the web repo --- diff --git a/wp-fdroid/wp-fdroid.php b/wp-fdroid/wp-fdroid.php index 29096f5c..138ba003 100644 --- a/wp-fdroid/wp-fdroid.php +++ b/wp-fdroid/wp-fdroid.php @@ -239,6 +239,12 @@ class FDroid case "sdkver": $thisapk['sdkver']=$pel; break; + case "maxsdkver": + $thisapk['maxsdkver']=$pel; + break; + case "nativecode": + $thisapk['nativecode']=$pel; + break; case "permissions": $thisapk['permissions']=$pel; break; @@ -336,6 +342,12 @@ class FDroid $out.="

Version ".$apk['version'].""; $out.=" - Added on ".$apk['added']."
"; + $hasabis = isset($apk['nativecode']); + if($hasabis) { + $abis = str_replace(',', ' ', $apk['nativecode']); + $out.="

This app uses native code and will only run on: ".$abis."

"; + } + // Is this source or binary? $srcbuild = isset($apk['srcname']) && file_exists($this->site_path.'/repo/'.$apk['srcname']);