apps-sdk 1.1.7 → 1.1.10

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.7",
3
+ "version": "1.1.10",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -273,7 +273,7 @@ class PayWall extends React.Component {
273
273
  <View style={styles.bottomNavigationView}>
274
274
  {this.state.htmlContent ? (
275
275
  <WebView
276
- style={{ flex: 1 }}
276
+ style={{ flex: 1, backgroundColor: '#121212' }}
277
277
  originWhitelist={['*']}
278
278
  source={{ html: this.state.htmlContent }}
279
279
  javaScriptEnabled
@@ -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;