Skip to content

Commit f76ab2b

Browse files
authored
Revert "Issue #4 Android compatibility with arm64-v8" (#11)
* Revert "Issue #4 Android compatibility with arm64-v8" * Update main.js
1 parent ffaa90c commit f76ab2b

File tree

2 files changed

+1
-80
lines changed

2 files changed

+1
-80
lines changed

.gitignore

-71
This file was deleted.

public/js/main.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,14 @@ var popcorn = {
2929
}
3030
},
3131
getAndroidVersion: function () {
32-
$.get('https://ci.popcorntime.sh/android', function(resp) {
33-
console.log(resp.mobile);
32+
$.get('/android-update.json', function(resp) {
3433
var version = resp.mobile.release["armeabi-v7a"].versionName;
3534
var newUrl = 'https://get.popcorntime.sh/android/' + version + '/mobile-armeabi-v7a-release-' + version + '.apk';
3635
if(version.indexOf("0") == 0) {
3736
version = version.substring(2, version.length);
3837
}
3938
$('a[data-os="Android"]').attr('href', newUrl).html(i18n.t("download.text", { defaultValue: "Download Beta %s", postProcess: 'sprintf', sprintf: [version] }));
4039

41-
version = resp.mobile.release["arm64-v8a"].versionName;
42-
var newUrl64v8Url = 'https://get.popcorntime.sh/android/' + version + '/mobile-arm64-v8a-release' + version + '.apk';
43-
if(version.indexOf("0") == 0) {
44-
version = version.substring(2, version.length);
45-
}
46-
$('a[data-os="Android"]').attr('href', newUrl64v8Url).html(i18n.t("download.text", { defaultValue: "Download Beta %s", postProcess: 'sprintf', sprintf: [version] }));
47-
4840
version = resp.tv.release["armeabi-v7a"].versionName;
4941
var newArmUrl = 'https://get.popcorntime.sh/android/' + version + '/tv-armeabi-v7a-release-' + version + '.apk';
5042
var newX86Url = 'https://get.popcorntime.sh/android/' + version + '/tv-x86-release-' + version + '.apk';

0 commit comments

Comments
 (0)