apps-sdk 1.1.20 → 1.1.22

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.20",
3
+ "version": "1.1.22",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,6 +25,14 @@ class AdJust {
25
25
  self.sendAttributionData(attribution);
26
26
  }, 30000);
27
27
  });
28
+ adjustConfig.setDeferredDeeplinkCallback(function (deeplink) {
29
+ if (deeplink) {
30
+ config.DEBUG_MODE && console.log('Deferred deeplink received: ' + deeplink);
31
+ Networking.sendEvent('other', 'adjust_deferred_deeplink_received', deeplink, true);
32
+ } else {
33
+ config.DEBUG_MODE && console.log('No deferred deeplink received');
34
+ }
35
+ });
28
36
  Adjust.initSdk(adjustConfig);
29
37
  this.updateAttributionInfo();
30
38
  const lastAdjustInitOk = await storage.getData('lastAdjustInitOk');
@@ -1,6 +1,7 @@
1
1
  import * as config from '../../config';
2
2
  import * as QuickActions from "expo-quick-actions";
3
3
  import {useQuickActionCallback} from "expo-quick-actions/hooks";
4
+ import Session from "./Session";
4
5
 
5
6
  class HomeActions {
6
7
  constructor() {
@@ -8,8 +9,13 @@ class HomeActions {
8
9
  }
9
10
 
10
11
  async setItems(items) {
11
- await QuickActions.setItems(items);
12
-
12
+ if (!Session.getIsSubscribed()) {
13
+ await QuickActions.setItems(items);
14
+ config.DEBUG_MODE && console.log("QuickActions set with items", items);
15
+ } else {
16
+ await QuickActions.setItems([]);
17
+ config.DEBUG_MODE && console.log("QuickActions not set because user is subscribed");
18
+ }
13
19
  }
14
20
 
15
21
  async itemCallback(itemCallbackFunction) {