Commit c7033dd7 authored by topjohnwu's avatar topjohnwu

Allow injecting custom channel URL for debug

parent 5673a9ba
......@@ -5,6 +5,7 @@ android {
applicationId 'com.topjohnwu.magisk'
versionCode 1
versionName props['appVersion']
buildConfigField 'String', 'DEV_CHANNEL', props['DEV_CHANNEL'] ?: 'null'
}
buildTypes {
......
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment