v0.8.2: added some basic support for demo and instant app functionality
This commit is contained in:
@@ -38,6 +38,11 @@ public class GitHubUpdates extends UpdateService {
|
||||
private static Pattern descPattern = Pattern.compile("(.*?)(\r\n|\n|\r)(\r\n|\n|\r)---", Pattern.DOTALL + Pattern.MULTILINE);
|
||||
private static Pattern versionCodePattern = Pattern.compile("internal version number: ([0-9]*)", Pattern.CASE_INSENSITIVE);
|
||||
|
||||
@Override
|
||||
public boolean isUpdateable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void checkForUpdate(boolean useMetered, UpdateResultCallback callback) {
|
||||
|
||||
@@ -120,4 +125,14 @@ public class GitHubUpdates extends UpdateService {
|
||||
DeviceCompat.openURI( update.URL );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstallable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initializeInstall() {
|
||||
//does nothing, always installed
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user