Allow injecting custom channel URL for debug
This commit is contained in:
parent
5673a9bace
commit
c7033dd757
@ -5,6 +5,7 @@ android {
|
|||||||
applicationId 'com.topjohnwu.magisk'
|
applicationId 'com.topjohnwu.magisk'
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName props['appVersion']
|
versionName props['appVersion']
|
||||||
|
buildConfigField 'String', 'DEV_CHANNEL', props['DEV_CHANNEL'] ?: 'null'
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
@ -22,7 +22,7 @@ public class DownloadActivity extends Activity {
|
|||||||
|
|
||||||
static final String TAG = "MMStub";
|
static final String TAG = "MMStub";
|
||||||
private static final boolean IS_CANARY = BuildConfig.VERSION_NAME.contains("-");
|
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/" +
|
"https://raw.githubusercontent.com/topjohnwu/magisk_files/" +
|
||||||
(IS_CANARY ? "canary/release.json" : "master/stable.json");
|
(IS_CANARY ? "canary/release.json" : "master/stable.json");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user