@@ -144,8 +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 storeInfoNameField = jsonAdjustConfig .get ("storeInfoName" );
148- Object storeInfoAppIdField = jsonAdjustConfig .get ("storeInfoAppId" );
147+ Object adjustStoreInfoField = jsonAdjustConfig .get ("adjustStoreInfo" );
149148
150149 String appToken = AdjustBridgeUtil .fieldToString (appTokenField );
151150 String environment = AdjustBridgeUtil .fieldToString (environmentField );
@@ -380,11 +379,24 @@ public boolean launchReceivedDeeplink(Uri deeplink) {
380379 }
381380
382381 // store info
383- String storeName = AdjustBridgeUtil .fieldToString (storeInfoNameField );
384- String storeAppId = AdjustBridgeUtil .fieldToString (storeInfoAppIdField );
385- AdjustStoreInfo adjustStoreInfo = new AdjustStoreInfo (storeName );
386- adjustStoreInfo .setStoreAppId (storeAppId );
387- adjustConfig .setStoreInfo (adjustStoreInfo );
382+ String adjustStoreInfoString = AdjustBridgeUtil .fieldToString (adjustStoreInfoField );
383+
384+ try {
385+ JSONObject jsonAdjustStoreInfo = new JSONObject (adjustStoreInfoString );
386+
387+ Object storeNameField = jsonAdjustStoreInfo .get ("storeName" );
388+ Object storeAppIdField = jsonAdjustStoreInfo .get ("storeAppId" );
389+
390+ String storeName = AdjustBridgeUtil .fieldToString (storeNameField );
391+ String storeAppId = AdjustBridgeUtil .fieldToString (storeAppIdField );
392+ AdjustStoreInfo adjustStoreInfo = new AdjustStoreInfo (storeName );
393+ adjustStoreInfo .setStoreAppId (storeAppId );
394+
395+ // set store info
396+ adjustConfig .setStoreInfo (adjustStoreInfo );
397+ } catch (Exception e ) {
398+ AdjustFactory .getLogger ().error ("AdjustBridgeInstance adjustStoreInfo: %s" , e .getMessage ());
399+ }
388400
389401 Adjust .initSdk (adjustConfig );
390402
0 commit comments