mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-23 18:15:30 +00:00
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'
|
||||
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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user