Skip to content

Commit 53ab1d3

Browse files
committed
refac: rename store info variables
1 parent 81432f6 commit 53ab1d3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Adjust/plugins/sdk-plugin-webbridge/src/main/assets/adjust_config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function AdjustConfig(appToken, environment, legacy) {
5252
this.shouldReadDeviceIdsOnce = null;
5353
this.eventDeduplicationIdsMaxSize = null;
5454
this.isFirstSessionDelayEnabled = null;
55-
this.storeInfoType = null;
55+
this.storeInfoName = null;
5656
this.storeInfoAppId = null;
5757
}
5858

@@ -246,7 +246,7 @@ AdjustConfig.prototype.enableFirstSessionDelay = function() {
246246
this.isFirstSessionDelayEnabled = true;
247247
};
248248

249-
AdjustConfig.prototype.setStoreInfo = function(storeInfoType, storeInfoAppId) {
250-
this.storeInfoType = storeInfoType;
251-
this.storeInfoAppId = storeInfoAppId;
249+
AdjustConfig.prototype.setStoreInfo = function(storeName, storeAppId) {
250+
this.storeInfoName = storeName;
251+
this.storeInfoAppId = storeAppId;
252252
};

Adjust/plugins/sdk-plugin-webbridge/src/main/java/com/adjust/sdk/webbridge/AdjustBridgeInstance.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public void initSdk(String adjustConfigString) {
144144
Object shouldReadDeviceIdsOnceField = jsonAdjustConfig.get("shouldReadDeviceIdsOnce");
145145
Object eventDeduplicationIdsMaxSizeField = jsonAdjustConfig.get("eventDeduplicationIdsMaxSize");
146146
Object isFirstSessionDelayEnabledField = jsonAdjustConfig.get("isFirstSessionDelayEnabled");
147-
Object storeInfoTypeField = jsonAdjustConfig.get("storeInfoType");
147+
Object storeInfoNameField = jsonAdjustConfig.get("storeInfoName");
148148
Object storeInfoAppIdField = jsonAdjustConfig.get("storeInfoAppId");
149149

150150
String appToken = AdjustBridgeUtil.fieldToString(appTokenField);
@@ -380,10 +380,10 @@ public boolean launchReceivedDeeplink(Uri deeplink) {
380380
}
381381

382382
// store info
383-
String storeInfoType = AdjustBridgeUtil.fieldToString(storeInfoTypeField);
384-
String storeInfoAppId = AdjustBridgeUtil.fieldToString(storeInfoAppIdField);
385-
if (storeInfoType != null || storeInfoAppId != null) {
386-
AdjustStoreInfo adjustStoreInfo = new AdjustStoreInfo(storeInfoType, storeInfoAppId);
383+
String storeName = AdjustBridgeUtil.fieldToString(storeInfoNameField);
384+
String storeAppId = AdjustBridgeUtil.fieldToString(storeInfoAppIdField);
385+
if (storeName != null || storeAppId != null) {
386+
AdjustStoreInfo adjustStoreInfo = new AdjustStoreInfo(storeName, storeAppId);
387387
adjustConfig.setAdjustStoreInfo(adjustStoreInfo);
388388
}
389389

0 commit comments

Comments
 (0)