apps-sdk 1.1.8 → 1.1.11

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import {NotificationsPush, Networking, Storage, Session, Utils, PayWallLogic, Rating, AdJust, TrackingTransparency, Voice, MixPanel, Adapty} from "./src/libraries";
1
+ import {NotificationsPush, Networking, Storage, Session, Utils, PayWallLogic, Rating, AdJust, TrackingTransparency, Voice, MixPanel, Adapty, Facebook, HomeActions} from "./src/libraries";
2
2
  import PayWall from "./src/components/PayWall";
3
3
 
4
4
  class AppsSDK {
@@ -59,4 +59,5 @@ export default {
59
59
  notifications: NotificationsPush,
60
60
  voice: Voice,
61
61
  adapty: Adapty,
62
+ homeActions: HomeActions,
62
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps-sdk",
3
- "version": "1.1.8",
3
+ "version": "1.1.11",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -222,7 +222,7 @@ class PayWall extends React.Component {
222
222
  switch(true) {
223
223
  case data.eventName === 'on_boarding' && data.eventValue.toString().substring(0, 4) === 'step':
224
224
  const stepNumber = data.eventValue.toString().substring(4);
225
- MixPanel.trackEvent('Onboarding Screen Viewed', {
225
+ MixPanel.trackEvent('Onboarding Screen Steps', {
226
226
  "onboarding_id": config.PAYWALL_DATA.others.on_boarding.dsn_id.toString(),
227
227
  "onboarding_total_steps": 4,
228
228
  "onboarding_step": stepNumber,
@@ -92,6 +92,7 @@ class PayWallLogic {
92
92
  });
93
93
  if (data.subs_id) {
94
94
  Mixpanel.identifyUser(data.subs_id);
95
+ console.log('SDK purchaseUpdatedListener Mixpanel identifyUser', data.subs_id);
95
96
  } else {
96
97
  console.log('No subs_id in purchaseResp');
97
98
  }
@@ -2,7 +2,7 @@ import * as config from '../../config';
2
2
  import * as QuickActions from "expo-quick-actions";
3
3
  import {useQuickActionCallback} from "expo-quick-actions/hooks";
4
4
 
5
- class HmeActions {
5
+ class HomeActions {
6
6
  constructor() {
7
7
 
8
8
  }
@@ -23,4 +23,4 @@ class HmeActions {
23
23
  }
24
24
  }
25
25
 
26
- export default new HmeActions();
26
+ export default new HomeActions();
@@ -11,18 +11,20 @@ class TrackingTransparency {
11
11
  console.log('current trackingPermission', trackingPermission);
12
12
  if (!trackingPermission) {
13
13
  const { status } = await requestTrackingPermissionsAsync();
14
+ console.log('requestTrackingPermissionsAsync:', status);
14
15
  await Storage.storeData('TRACKING_PERMISSION_ANSWERED', true);
15
16
  await Networking.sendPendingEvents();
16
17
  config.TRACKING_ANSWERED = true;
17
18
  if (status !== 'undetermined') {
18
19
  if (status === 'granted') {
20
+ config.TRACKING_ACTIVE = true;
19
21
  trackingResult = 'granted';
20
22
  await Storage.storeData('TRACKING_PERMISSION', 'granted');
21
- await Networking.sendEvent('action', 'tracking_consent');
23
+ await Networking.sendEvent('action', 'tracking_consent', {}, true);
22
24
  console.log('Tracking Transparency permission granted');
23
25
  } else {
24
26
  await Storage.storeData('TRACKING_PERMISSION', 'denied');
25
- await Networking.sendEvent('action', 'tracking_denied');
27
+ await Networking.sendEvent('action', 'tracking_denied', {}, true);
26
28
  console.log('Tracking Transparency permission denied');
27
29
  }
28
30
  }
@@ -10,3 +10,4 @@ export { default as TrackingTransparency } from './TrackingTransparency';
10
10
  export { default as PayWallLogic } from './PayWallLogic';
11
11
  export { default as Voice } from './Voice';
12
12
  export { default as Adapty } from './Adapty';
13
+ export { default as HomeActions } from './QuickActions';
package/types/index.d.ts CHANGED
@@ -224,6 +224,11 @@ declare module 'apps-sdk' {
224
224
  getTrackingTransparencyPermission(): Promise<string>;
225
225
  }
226
226
 
227
+ export class HomeActions {
228
+ setItems(items: any): Promise<void>;
229
+ itemCallback(itemCallbackFunction: any): Promise<void>;
230
+ }
231
+
227
232
  export class AppsSDK {
228
233
  initializePushNotifications(): Promise<string>;
229
234
  }
@@ -244,6 +249,7 @@ declare module 'apps-sdk' {
244
249
  notificationsPush : NotificationsPush;
245
250
  voice : Voice;
246
251
  adapty : Adapty;
252
+ homeActions : HomeActions;
247
253
  }
248
254
 
249
255
  const Core: AppsSDK;