Reconfigure zip url to use Androidacy API

Signed-off-by: androidacybot <45006100+androidacybot@users.noreply.github.com>
pull/57/head
androidacybot 2 years ago
parent 3ec397c160
commit 60e1a6aea7

@ -64,7 +64,8 @@ public enum ActionButtonType {
String updateZipUrl = moduleHolder.getUpdateZipUrl();
if (updateZipUrl == null) return;
// Androidacy manage the selection between download and install
if (updateZipUrl.startsWith("https://www.androidacy.com/")) {
if (updateZipUrl.startsWith("https://www.androidacy.com/") ||
updateZipUrl.startsWith("https://api.androidacy.com/magisk/info/?module=")) {
IntentHelper.openUrlAndroidacy(
button.getContext(), updateZipUrl, true,
moduleInfo.name, moduleInfo.config);

@ -129,6 +129,8 @@ public class AndroidacyRepoData extends RepoData {
jsonObject.optString("zipUrl", ""));
repoModule.notesUrl = filterURL(
jsonObject.optString("notesUrl", ""));
if (repoModule.zipUrl == null)
repoModule.zipUrl = "https://api.androidacy.com/magisk/info/?module=" + moduleId;
if (repoModule.zipUrl == null)
repoModule.zipUrl = jsonObject.getString("url");
if (repoModule.notesUrl == null) {

Loading…
Cancel
Save