Skip to content

Commit

Permalink
feat: rename callbacks for proxy server
Browse files Browse the repository at this point in the history
  • Loading branch information
abhilashdas-cred committed Apr 9, 2024
1 parent 5498108 commit 6226d29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ private void sendData(MPDbAdapter dbAdapter, String token, MPDbAdapter.Table tab
byte[] response;
try {
final SSLSocketFactory socketFactory = mConfig.getSSLSocketFactory();
response = poster.performRequest(url, mConfig.getMixpanelServerCallback(), params, socketFactory);
response = poster.performRequest(url, mConfig.getProxyServerInteractor(), params, socketFactory);
if (null == response) {
deleteEvents = false;
logAboutMessageToMixpanel("Response was null, unexpected failure posting to " + url + ".");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mixpanel/android/mpmetrics/MPConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public synchronized OfflineMode getOfflineMode() {

///////////////////////////////////////////////

public ProxyServerInteractor getMixpanelServerCallback() {
public ProxyServerInteractor getProxyServerInteractor() {
return this.serverCallbacks;
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/mixpanel/android/mpmetrics/MixpanelAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import android.os.Bundle;

import com.mixpanel.android.util.MPLog;
import com.mixpanel.android.util.MixpanelServerCallback;
import com.mixpanel.android.util.ProxyServerInteractor;

import org.json.JSONArray;
import org.json.JSONException;
Expand Down Expand Up @@ -589,7 +589,7 @@ public void setServerURL(String serverURL) {
* @param serverURL the base URL used for Mixpanel API requests
* @param callback the callback for mixpanel proxy server api headers and status
*/
public void setServerURL(String serverURL, MixpanelServerCallback callback) {
public void setServerURL(String serverURL, ProxyServerInteractor callback) {
mConfig.setServerURL(serverURL, callback);
}

Expand Down

0 comments on commit 6226d29

Please sign in to comment.