mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-15 22:13:11 +00:00
Proper canary version detection
This commit is contained in:
@@ -27,7 +27,7 @@ import static com.topjohnwu.magisk.DelegateApplication.MANAGER_APK;
|
||||
|
||||
public class DownloadActivity extends Activity {
|
||||
|
||||
private static final boolean CANARY = BuildConfig.VERSION_NAME.contains("-");
|
||||
private static final boolean CANARY = !BuildConfig.VERSION_NAME.contains(".");
|
||||
private static final String URL =
|
||||
BuildConfig.DEV_CHANNEL != null ? BuildConfig.DEV_CHANNEL : RawData.urlBase() +
|
||||
(BuildConfig.DEBUG ? RawData.debug() : (CANARY ? RawData.canary() : RawData.stable()));
|
||||
|
Reference in New Issue
Block a user