v2.2.0: removed support for android instant apps
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.services.updates;
|
||||
|
||||
//TODO with install and review functionality, this service is less and less just about updates
|
||||
//TODO with review functionality, this service is about more than just updates
|
||||
// perhaps rename to PlatformService, StoreService, DistributionService, etc?
|
||||
public abstract class UpdateService {
|
||||
|
||||
@@ -31,8 +31,8 @@ public abstract class UpdateService {
|
||||
public abstract void onConnectionFailed();
|
||||
}
|
||||
|
||||
//whether the app is updateable via an ingame prompt (e.g. not a demo or an android instant app)
|
||||
public abstract boolean isUpdateable();
|
||||
//whether the service supports offering update notifications via an ingame prompt
|
||||
public abstract boolean supportsUpdatePrompts();
|
||||
|
||||
//whether the service supports an opt-in channel for betas
|
||||
public abstract boolean supportsBetaChannel();
|
||||
@@ -41,15 +41,11 @@ public abstract class UpdateService {
|
||||
|
||||
public abstract void initializeUpdate( AvailableUpdateData update );
|
||||
|
||||
//whether the app installable via an ingame prompt (e.g. a demo, or an android instant app)
|
||||
public abstract boolean isInstallable();
|
||||
|
||||
public abstract void initializeInstall();
|
||||
|
||||
public static abstract class ReviewResultCallback {
|
||||
public abstract void onComplete();
|
||||
}
|
||||
|
||||
//whether the service supports prompts to review the game via and ingame prompt
|
||||
public abstract boolean supportsReviews();
|
||||
|
||||
public abstract void initializeReview( ReviewResultCallback callback );
|
||||
|
||||
@@ -29,7 +29,7 @@ public class DebugUpdates extends UpdateService {
|
||||
private static AvailableUpdateData debugUpdateInfo;
|
||||
|
||||
@Override
|
||||
public boolean isUpdateable() {
|
||||
public boolean supportsUpdatePrompts() {
|
||||
return false; //turn on to debug update prompts
|
||||
}
|
||||
|
||||
@@ -59,16 +59,6 @@ public class DebugUpdates extends UpdateService {
|
||||
Game.platform.openURI( update.URL );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstallable() {
|
||||
return false; //turn on to test install prompts
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initializeInstall() {
|
||||
//does nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsReviews() {
|
||||
return false; //turn on to debug review prompts
|
||||
|
||||
@@ -38,7 +38,7 @@ public class GitHubUpdates extends UpdateService {
|
||||
private static Pattern versionCodePattern = Pattern.compile("internal version number: ([0-9]*)", Pattern.CASE_INSENSITIVE);
|
||||
|
||||
@Override
|
||||
public boolean isUpdateable() {
|
||||
public boolean supportsUpdatePrompts() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -127,16 +127,6 @@ public class GitHubUpdates extends UpdateService {
|
||||
Game.platform.openURI( update.URL );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstallable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initializeInstall() {
|
||||
//does nothing, always installed
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsReviews() {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user