IAB testing

pull/194/merge
M66B 3 years ago
parent 0c6e9b84e0
commit 59f94e1ab2

@ -139,7 +139,7 @@ public class ActivityBilling extends ActivityBase implements PurchasingListener,
static boolean isTesting(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
return (BuildConfig.DEBUG && prefs.getBoolean("test_iab", false));
return (BuildConfig.TEST_RELEASE && prefs.getBoolean("test_iab", false));
}
private static String getChallenge(Context context) throws NoSuchAlgorithmException {

@ -164,7 +164,7 @@ public class ActivityBilling extends ActivityBase implements /*PurchasesUpdatedL
static boolean isTesting(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
return (BuildConfig.DEBUG && prefs.getBoolean("test_iab", false));
return (BuildConfig.TEST_RELEASE && prefs.getBoolean("test_iab", false));
}
private static String getChallenge(Context context) throws NoSuchAlgorithmException {

@ -1348,7 +1348,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
tvExternalStorageFolder.setText(external.getAbsolutePath() + (emulated ? " emulated" : ""));
swExactAlarms.setEnabled(AlarmManagerCompatEx.canScheduleExactAlarms(getContext()));
swTestIab.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
swTestIab.setVisibility(BuildConfig.TEST_RELEASE ? View.VISIBLE : View.GONE);
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);

@ -164,7 +164,7 @@ public class ActivityBilling extends ActivityBase implements PurchasesUpdatedLis
static boolean isTesting(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
return (BuildConfig.DEBUG && prefs.getBoolean("test_iab", false));
return (BuildConfig.TEST_RELEASE && prefs.getBoolean("test_iab", false));
}
private static String getChallenge(Context context) throws NoSuchAlgorithmException {

Loading…
Cancel
Save