Allow injecting custom channel URL for debug

This commit is contained in:
topjohnwu
2019-10-16 01:54:59 -04:00
parent 5673a9bace
commit c7033dd757
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@ public class DownloadActivity extends Activity {
static final String TAG = "MMStub";
private static final boolean IS_CANARY = BuildConfig.VERSION_NAME.contains("-");
private static final String URL =
private static final String URL = BuildConfig.DEV_CHANNEL != null ? BuildConfig.DEV_CHANNEL :
"https://raw.githubusercontent.com/topjohnwu/magisk_files/" +
(IS_CANARY ? "canary/release.json" : "master/stable.json");