v0.9.4: added an opt-in for betas in the update checker

This commit is contained in:
Evan Debenham
2021-07-14 16:16:29 -04:00
parent fd0286b9a1
commit 3c3e22d486
7 changed files with 57 additions and 7 deletions

View File

@@ -35,7 +35,12 @@ public class DebugUpdates extends UpdateService {
}
@Override
public void checkForUpdate(boolean useMetered, UpdateResultCallback callback) {
public boolean supportsBetaChannel() {
return true;
}
@Override
public void checkForUpdate(boolean useMetered, boolean includeBetas, UpdateResultCallback callback) {
if (!useMetered && !Game.platform.connectedToUnmeteredNetwork()){
callback.onConnectionFailed();