More precise channel targeting

This commit is contained in:
topjohnwu
2019-10-24 04:25:05 -04:00
parent c30be20e49
commit 7fc7809cfc
2 changed files with 10 additions and 3 deletions

View File

@ -21,8 +21,10 @@ import static com.topjohnwu.magisk.DelegateApplication.MANAGER_APK;
public class DownloadActivity extends Activity {
static final String TAG = "MMStub";
private static final String URL = BuildConfig.DEV_CHANNEL != null ? BuildConfig.DEV_CHANNEL :
"https://raw.githubusercontent.com/topjohnwu/magisk_files/master/stable.json";
private static final String URL =
BuildConfig.DEV_CHANNEL != null ? BuildConfig.DEV_CHANNEL :
"https://raw.githubusercontent.com/topjohnwu/magisk_files/" +
(BuildConfig.DEBUG ? "canary/debug.json" : "master/stable.json");
private String apkLink;
private ErrorHandler err = (conn, e) -> {