apps-sdk 1.1.15 → 1.1.16
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/config.js +2 -0
- package/package.json +1 -1
- package/src/libraries/Networking.js +10 -1
- package/types/index.d.ts +1 -0
package/config.js
CHANGED
package/package.json
CHANGED
|
@@ -26,9 +26,10 @@ class Networking {
|
|
|
26
26
|
this.setEvents(initData.data.attribution);
|
|
27
27
|
this.setEventsMixPanel(initData.data.tracking);
|
|
28
28
|
this.setPayWallData(initData);
|
|
29
|
-
this.checkSubscription();
|
|
29
|
+
await this.checkSubscription();
|
|
30
30
|
this.setForcedUpdate(initData.data);
|
|
31
31
|
this.setConfigExtra(initData.data.config || {});
|
|
32
|
+
this.setQuickActions(initData.data.quick_actions);
|
|
32
33
|
if (initData.data.image) {
|
|
33
34
|
this.setImageCompression(initData.data.image);
|
|
34
35
|
}
|
|
@@ -184,6 +185,14 @@ class Networking {
|
|
|
184
185
|
return config.CONFIG_EXTRA;
|
|
185
186
|
}
|
|
186
187
|
|
|
188
|
+
setQuickActions = (quickActions) => {
|
|
189
|
+
config.QUICK_ACTIONS = quickActions;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
getQuickActions = () => {
|
|
193
|
+
return config.QUICK_ACTIONS;
|
|
194
|
+
}
|
|
195
|
+
|
|
187
196
|
setEvents(events) {
|
|
188
197
|
events && (config.EVENTS = events);
|
|
189
198
|
}
|