Skip to content

Commit

Permalink
Revert "Issue #4 Android compatibility with arm64-v8" (#11)
Browse files Browse the repository at this point in the history
* Revert "Issue #4 Android compatibility with arm64-v8"

* Update main.js
  • Loading branch information
MrRory committed Jan 4, 2019
1 parent ffaa90c commit f76ab2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 80 deletions.
71 changes: 0 additions & 71 deletions .gitignore

This file was deleted.

10 changes: 1 addition & 9 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,14 @@ var popcorn = {
}
},
getAndroidVersion: function () {
$.get('https://ci.popcorntime.sh/android', function(resp) {
console.log(resp.mobile);
$.get('/android-update.json', function(resp) {
var version = resp.mobile.release["armeabi-v7a"].versionName;
var newUrl = 'https://get.popcorntime.sh/android/' + version + '/mobile-armeabi-v7a-release-' + version + '.apk';
if(version.indexOf("0") == 0) {
version = version.substring(2, version.length);
}
$('a[data-os="Android"]').attr('href', newUrl).html(i18n.t("download.text", { defaultValue: "Download Beta %s", postProcess: 'sprintf', sprintf: [version] }));

version = resp.mobile.release["arm64-v8a"].versionName;
var newUrl64v8Url = 'https://get.popcorntime.sh/android/' + version + '/mobile-arm64-v8a-release' + version + '.apk';
if(version.indexOf("0") == 0) {
version = version.substring(2, version.length);
}
$('a[data-os="Android"]').attr('href', newUrl64v8Url).html(i18n.t("download.text", { defaultValue: "Download Beta %s", postProcess: 'sprintf', sprintf: [version] }));

version = resp.tv.release["armeabi-v7a"].versionName;
var newArmUrl = 'https://get.popcorntime.sh/android/' + version + '/tv-armeabi-v7a-release-' + version + '.apk';
var newX86Url = 'https://get.popcorntime.sh/android/' + version + '/tv-x86-release-' + version + '.apk';
Expand Down

0 comments on commit f76ab2b

Please sign in to comment.