mirror of https://github.com/M66B/NetGuard.git
Remove IAB debug code
This commit is contained in:
parent
5a25c8fdcc
commit
4d85a059a9
|
@ -175,18 +175,12 @@ public class IAB implements ServiceConnection {
|
||||||
if (ActivityPro.SKU_SUPPORT1.equals(sku) || ActivityPro.SKU_SUPPORT2.equals(sku))
|
if (ActivityPro.SKU_SUPPORT1.equals(sku) || ActivityPro.SKU_SUPPORT2.equals(sku))
|
||||||
return prefs.getBoolean(sku, false);
|
return prefs.getBoolean(sku, false);
|
||||||
|
|
||||||
if (Util.isDebuggable(context) || Util.getSelfVersionName(context).contains("beta"))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
return (prefs.getBoolean(sku, false) ||
|
return (prefs.getBoolean(sku, false) ||
|
||||||
prefs.getBoolean(ActivityPro.SKU_PRO1, false) ||
|
prefs.getBoolean(ActivityPro.SKU_PRO1, false) ||
|
||||||
prefs.getBoolean(ActivityPro.SKU_DONATION, false));
|
prefs.getBoolean(ActivityPro.SKU_DONATION, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isPurchasedAny(Context context) {
|
public static boolean isPurchasedAny(Context context) {
|
||||||
if (Util.isDebuggable(context))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
SharedPreferences prefs = context.getSharedPreferences("IAB", Context.MODE_PRIVATE);
|
SharedPreferences prefs = context.getSharedPreferences("IAB", Context.MODE_PRIVATE);
|
||||||
for (String key : prefs.getAll().keySet())
|
for (String key : prefs.getAll().keySet())
|
||||||
if (prefs.getBoolean(key, false))
|
if (prefs.getBoolean(key, false))
|
||||||
|
|
Loading…
Reference in New Issue