|
|
|
@ -52,6 +52,15 @@ public abstract class MarketStrategy {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Most market strategies don't support billing at this time,
|
|
|
|
|
|
|
|
* so we'll make the default false
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public boolean billingSupported() {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class NoMarketStrategy extends MarketStrategy {
|
|
|
|
public static class NoMarketStrategy extends MarketStrategy {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Intent generateMarketLink(String packageName) {
|
|
|
|
public Intent generateMarketLink(String packageName) {
|
|
|
|
@ -78,6 +87,11 @@ public abstract class MarketStrategy {
|
|
|
|
return "android_market"; //$NON-NLS-1$
|
|
|
|
return "android_market"; //$NON-NLS-1$
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public boolean billingSupported() {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class WebMarketStrategy extends MarketStrategy {
|
|
|
|
public static class WebMarketStrategy extends MarketStrategy {
|
|
|
|
|