Skip to content

Commit 0447cae

Browse files
uercegshashanksu
authored andcommitted
test: add store info testing
1 parent d12feaa commit 0447cae

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

Adjust/tests/test-app-core/src/main/java/com/adjust/testapp/AdjustCommandExecutor.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import com.adjust.sdk.AdjustPurchaseVerificationResult;
2424
import com.adjust.sdk.AdjustSessionFailure;
2525
import com.adjust.sdk.AdjustSessionSuccess;
26+
import com.adjust.sdk.AdjustStoreInfo;
2627
import com.adjust.sdk.AdjustTestOptions;
2728
import com.adjust.sdk.AdjustThirdPartySharing;
2829
import com.adjust.sdk.LogLevel;
@@ -331,6 +332,18 @@ private void config() {
331332
}
332333
}
333334

335+
if (command.containsParameter("storeName")) {
336+
AdjustStoreInfo storeInfo;
337+
String storeName = command.getFirstParameterValue("storeName");
338+
storeInfo = new AdjustStoreInfo(storeName);
339+
340+
if (command.containsParameter("storeAppId")) {
341+
String storeAppId = command.getFirstParameterValue("storeAppId");
342+
storeInfo.setStoreAppId(storeAppId);
343+
}
344+
adjustConfig.setStoreInfo(storeInfo);
345+
}
346+
334347
if(command.containsParameter("deferredDeeplinkCallback")) {
335348
adjustConfig.setOnDeferredDeeplinkResponseListener(new OnDeferredDeeplinkResponseListener() {
336349
@Override

Adjust/tests/test-app-webbridge/src/main/assets/AdjustTestApp-WebView.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<script type="text/javascript" src="adjust_event.js"></script>
1212
<script type="text/javascript" src="adjust_third_party_sharing.js"></script>
1313
<script type="text/javascript" src="adjust_config.js"></script>
14+
<script type="text/javascript" src="adjust_store_info.js"></script>
1415
<script type="text/javascript" src="adjust.js"></script>
1516
<script type="text/javascript" src="test_library.js"></script>
1617
<script type="text/javascript" src="command_executor.js"></script>

Adjust/tests/test-app-webbridge/src/main/assets/command_executor.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,18 @@ AdjustCommandExecutor.prototype.config = function(params) {
343343
}
344344
}
345345

346+
if ('storeName' in params) {
347+
var storeInfo;
348+
var storeName = getFirstParameterValue(params, 'storeName');
349+
storeInfo = new AdjustStoreInfo(storeName);
350+
351+
if ('storeAppId' in params) {
352+
var storeAppId = getFirstParameterValue(params, 'storeAppId');
353+
storeInfo.setStoreAppId(storeAppId);
354+
}
355+
adjustConfig.setStoreInfo(storeInfo);
356+
}
357+
346358
if ('attributionCallbackSendAll' in params) {
347359
var basePath = this.basePath;
348360
adjustConfig.setAttributionCallback(function(attribution) {

0 commit comments

Comments
 (0)