Skip to content

Commit

Permalink
remove old credits references
Browse files Browse the repository at this point in the history
  • Loading branch information
gdeluna-branch committed Jul 25, 2023
1 parent a62ccd1 commit 308bf95
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@
<item>INITIATE_PURCHASE</item>
<item>ADD_PAYMENT_INFO</item>
<item>PURCHASE</item>
<item>SPEND_CREDITS</item>
<item>SEARCH</item>
<item>VIEW_ITEM</item>
<item>VIEW_ITEMS</item>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
package io.branch.referral.test.mock;

import static io.branch.referral.Defines.RequestPath.GetCPID;
import static io.branch.referral.Defines.RequestPath.GetURL;
import static io.branch.referral.Defines.RequestPath.IdentifyUser;
import static io.branch.referral.Defines.RequestPath.QRCode;
import static io.branch.referral.Defines.RequestPath.RegisterInstall;
import static io.branch.referral.Defines.RequestPath.RegisterOpen;

import org.json.JSONObject;

import java.util.UUID;

import io.branch.referral.Branch;
import io.branch.referral.BranchTest;
import io.branch.referral.PrefHelper;
import io.branch.referral.network.BranchRemoteInterface;

import static io.branch.referral.Defines.RequestPath.GetCPID;
import static io.branch.referral.Defines.RequestPath.QRCode;
import static io.branch.referral.Defines.RequestPath.GetCreditHistory;
import static io.branch.referral.Defines.RequestPath.GetCredits;
import static io.branch.referral.Defines.RequestPath.GetURL;
import static io.branch.referral.Defines.RequestPath.IdentifyUser;
import static io.branch.referral.Defines.RequestPath.RegisterInstall;
import static io.branch.referral.Defines.RequestPath.RegisterOpen;

public class MockRemoteInterface extends BranchRemoteInterface {
private final static String TAG = "MockRemoteInterface";

Expand Down
2 changes: 0 additions & 2 deletions Branch-SDK/src/main/java/io/branch/referral/Defines.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,6 @@ public enum RequestPath {
RegisterInstall("v1/install"),
RegisterClose("v1/close"),
RegisterOpen("v1/open"),
@Deprecated GetCredits("v1/credits/"),
@Deprecated GetCreditHistory("v1/credithistory"),
CompletedAction("v1/event"),
IdentifyUser("v1/profile"),
Logout("v1/logout"),
Expand Down
29 changes: 0 additions & 29 deletions Branch-SDK/src/main/java/io/branch/referral/PrefHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ public class PrefHelper {
private static final String KEY_USER_URL = "bnc_user_url";
private static final String KEY_LATD_ATTRIBUTION_WINDOW = "bnc_latd_attributon_window";
private static final String KEY_INITIAL_REFERRER = "bnc_initial_referrer";

private static final String KEY_BUCKETS = "bnc_buckets";
private static final String KEY_CREDIT_BASE = "bnc_credit_base_";

private static final String KEY_ACTIONS = "bnc_actions";
private static final String KEY_TOTAL_BASE = "bnc_total_base_";
private static final String KEY_UNIQUE_BASE = "bnc_balance_base_";
Expand Down Expand Up @@ -983,31 +979,6 @@ public void clearUserValues() {
setActions(new ArrayList<String>());
}

// REWARD TRACKING CALLS
/**
* @deprecated Referral feature has been deprecated. This is no-op.
*/
@Deprecated
public void setCreditCount(int count) { /* no-op */ }

/**
* @deprecated Referral feature has been deprecated. This is no-op.
*/
@Deprecated
public void setCreditCount(String bucket, int count) { /* no-op */ }

/**
* @deprecated Referral feature has been deprecated. This is no-op.
*/
@Deprecated
public int getCreditCount() { /* no-op */ return 0; }

/**
* @deprecated Referral feature has been deprecated. This is no-op.
*/
@Deprecated
public int getCreditCount(String bucket) { /* no-op */ return 0; }

// EVENT REFERRAL INSTALL CALLS

private ArrayList<String> getActions() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ public enum BRANCH_STANDARD_EVENT {
INITIATE_PURCHASE("INITIATE_PURCHASE"),
ADD_PAYMENT_INFO("ADD_PAYMENT_INFO"),
PURCHASE("PURCHASE"),
SPEND_CREDITS("SPEND_CREDITS"),

// Content events
SEARCH("SEARCH"),
VIEW_ITEM("VIEW_ITEM"),
Expand Down

0 comments on commit 308bf95

Please sign in to comment.