apps-sdk 1.1.26 → 1.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps-sdk",
3
- "version": "1.1.26",
3
+ "version": "1.1.28",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -23,7 +23,11 @@ class AdJust {
23
23
  Networking.sendEvent('other', 'adjust_attribution_received', attribution, true);
24
24
  if (sendAttributionToAdapty && Adapty.isActivated()) {
25
25
  config.DEBUG_MODE && console.log('Sending attribution to Adapty: ', attribution);
26
- Adapty.updateAdjustAttributionData(attribution);
26
+ try {
27
+ Adapty.updateAdjustAttributionData(attribution);
28
+ } catch (error) {
29
+ console.error('Error sending attribution to Adapty:', error);
30
+ }
27
31
  }
28
32
  setTimeout(() => {
29
33
  self.sendAttributionData(attribution);
@@ -138,6 +138,7 @@ class Adapty {
138
138
  async updateAdjustAttributionData(adjustData) {
139
139
  try {
140
140
  await adapty.updateAttribution(adjustData, 'adjust');
141
+ config.DEBUG_MODE && console.log('Adapty attribution data updated successfully from Adjust:', adjustData);
141
142
  } catch (error) {
142
143
  console.error('Error updating attribution data:', error);
143
144
  }