Skip to content

Commit

Permalink
Merge pull request #555 from adjust/v500_sdk2015
Browse files Browse the repository at this point in the history
[android] Strip things from Android web bridge
  • Loading branch information
MahdiZTD authored May 29, 2024
2 parents 251e8ae + abcf2bf commit e290bf5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 52 deletions.
6 changes: 0 additions & 6 deletions Adjust/sdk-plugin-webbridge/src/main/assets/adjust.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ var Adjust = {
}
},

setPushToken: function(token) {
if (AdjustBridge) {
AdjustBridge.setPushToken(token);
}
},

gdprForgetMe: function() {
if (AdjustBridge) {
AdjustBridge.gdprForgetMe();
Expand Down
13 changes: 0 additions & 13 deletions Adjust/sdk-plugin-webbridge/src/main/assets/adjust_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ function AdjustConfig(appToken, environment, legacy) {
this.deferredDeeplinkCallbackFunction = null;
this.fbPixelDefaultEventToken = null;
this.fbPixelMapping = [];
this.urlStrategy = null;
this.preinstallTrackingEnabled = null;
this.preinstallFilePath = null;
this.fbAppId = null;
Expand All @@ -52,14 +51,6 @@ function AdjustConfig(appToken, environment, legacy) {
AdjustConfig.EnvironmentSandbox = 'sandbox';
AdjustConfig.EnvironmentProduction = 'production';

AdjustConfig.UrlStrategyIndia = "url_strategy_india";
AdjustConfig.UrlStrategyChina = "url_strategy_china";
AdjustConfig.UrlStrategyCn = "url_strategy_cn";
AdjustConfig.UrlStrategyCnOnly = "url_strategy_cn_only";
AdjustConfig.DataResidencyEU = "data_residency_eu";
AdjustConfig.DataResidencyTR = "data_residency_tr";
AdjustConfig.DataResidencyUS = "data_residency_us";

AdjustConfig.LogLevelVerbose = 'VERBOSE',
AdjustConfig.LogLevelDebug = 'DEBUG',
AdjustConfig.LogLevelInfo = 'INFO',
Expand Down Expand Up @@ -209,10 +200,6 @@ AdjustConfig.prototype.addFbPixelMapping = function(fbEventNameKey, adjEventToke
this.fbPixelMapping.push(adjEventTokenValue);
};

AdjustConfig.prototype.setUrlStrategy = function(urlStrategy) {
this.urlStrategy = urlStrategy;
};

AdjustConfig.prototype.setPreinstallTrackingEnabled = function(preinstallTrackingEnabled) {
this.preinstallTrackingEnabled = preinstallTrackingEnabled;
};
Expand Down
5 changes: 0 additions & 5 deletions Adjust/sdk-plugin-webbridge/src/main/assets/adjust_event.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ function AdjustEvent(eventToken) {
this.currency = null;
this.callbackParameters = [];
this.partnerParameters = [];
this.orderId = null;
this.deduplicationId = null;
this.callbackId = null;
}
Expand All @@ -24,10 +23,6 @@ AdjustEvent.prototype.addPartnerParameter = function(key, value) {
this.partnerParameters.push(value);
};

AdjustEvent.prototype.setOrderId = function(orderId) {
this.orderId = orderId;
};

AdjustEvent.prototype.setDeduplicationId = function(deduplicationId) {
this.deduplicationId = deduplicationId;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ public void onCreate(String adjustConfigString) {
Object deferredDeeplinkCallbackNameField = jsonAdjustConfig.get("deferredDeeplinkCallbackName");
Object fbPixelDefaultEventTokenField = jsonAdjustConfig.get("fbPixelDefaultEventToken");
Object fbPixelMappingField = jsonAdjustConfig.get("fbPixelMapping");
Object urlStrategyField = jsonAdjustConfig.get("urlStrategy");
Object preinstallTrackingEnabledField = jsonAdjustConfig.get("preinstallTrackingEnabled");
Object preinstallFilePathField = jsonAdjustConfig.get("preinstallFilePath");
Object fbAppIdField = jsonAdjustConfig.get("fbAppId");
Expand Down Expand Up @@ -327,12 +326,6 @@ public boolean launchReceivedDeeplink(Uri deeplink) {
AdjustFactory.getLogger().error("AdjustBridgeInstance.configureFbPixel: %s", e.getMessage());
}

// Set url strategy
String urlStrategy = AdjustBridgeUtil.fieldToString(urlStrategyField);
if (urlStrategy != null) {
adjustConfig.setUrlStrategy(urlStrategy);
}

// Preinstall tracking
Boolean preinstallTrackingEnabled = AdjustBridgeUtil.fieldToBoolean(preinstallTrackingEnabledField);
if (preinstallTrackingEnabled != null) {
Expand Down Expand Up @@ -390,7 +383,6 @@ public void trackEvent(String adjustEventString) {
Object currencyField = jsonAdjustEvent.get("currency");
Object callbackParametersField = jsonAdjustEvent.get("callbackParameters");
Object partnerParametersField = jsonAdjustEvent.get("partnerParameters");
Object orderIdField = jsonAdjustEvent.get("orderId");
Object deduplicationIdField = jsonAdjustEvent.get("deduplicationId");
Object callbackIdField = jsonAdjustEvent.get("callbackId");

Expand Down Expand Up @@ -428,12 +420,6 @@ public void trackEvent(String adjustEventString) {
}
}

// Order id
String orderId = AdjustBridgeUtil.fieldToString(orderIdField);
if (orderId != null) {
adjustEvent.setOrderId(orderId);
}

// Revenue deduplication
String deduplicationId = AdjustBridgeUtil.fieldToString(deduplicationIdField);
if (deduplicationId != null) {
Expand Down Expand Up @@ -561,15 +547,6 @@ public void removeGlobalPartnerParameters() {
Adjust.removeGlobalPartnerParameters();
}

@JavascriptInterface
public void setPushToken(String pushToken) {
if (!isInitialized()) {
return;
}

Adjust.setPushToken(pushToken, application.getApplicationContext());
}

@JavascriptInterface
public void gdprForgetMe() {
if (!isInitialized()) {
Expand Down
5 changes: 0 additions & 5 deletions Adjust/test-app-webbridge/src/main/assets/command_executor.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,6 @@ AdjustCommandExecutor.prototype.event = function(params) {
}
}

if ('orderId' in params) {
var orderId = getFirstParameterValue(params, 'orderId');
adjustEvent.setOrderId(orderId);
}

if ('deduplicationId' in params) {
var deduplicationId = getFirstParameterValue(params, 'deduplicationId');
adjustEvent.setDeduplicationId(deduplicationId);
Expand Down

0 comments on commit e290bf5

Please sign in to comment.