apps-sdk 1.0.147 → 1.0.148
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
|
@@ -30,6 +30,7 @@ class Networking {
|
|
|
30
30
|
let initData = await this.request(config.ENDPOINTS.CONFIG);
|
|
31
31
|
if (initData) {
|
|
32
32
|
config.DEBUG_MODE && console.debug("initData", JSON.stringify(initData));
|
|
33
|
+
Networking.sendEvent('other', 'DEBUG_INIT_initData', JSON.stringify(initData));
|
|
33
34
|
config.TRACKING_ANSWERED = await storage.getData('TRACKING_PERMISSION_ANSWERED');
|
|
34
35
|
this.setEndpoints(initData.data.domains);
|
|
35
36
|
this.setEvents(initData.data.attribution);
|
|
@@ -185,15 +185,18 @@ class PayWallLogic {
|
|
|
185
185
|
let subscriptionsData = {};
|
|
186
186
|
try {
|
|
187
187
|
const subscriptionTemplates = await getSubscriptions({skus: productIDs});
|
|
188
|
+
Networking.sendEvent('other', 'DEBUG_PAYMENT_subscriptionTemplates', subscriptionTemplates);
|
|
188
189
|
if (subscriptionTemplates.length > 0) {
|
|
189
190
|
subscriptionTemplates.forEach(product => {
|
|
190
191
|
subscriptionsData[product.productId] = product;
|
|
191
192
|
});
|
|
192
193
|
config.PAYWALL_DATA.products_metadata = subscriptionsData;
|
|
193
194
|
config.DEBUG_MODE && console.debug('products_metadata', config.PAYWALL_DATA.products_metadata);
|
|
195
|
+
Networking.sendEvent('other', 'DEBUG_PAYMENT_products_metadata', config.PAYWALL_DATA.products_metadata);
|
|
194
196
|
}
|
|
195
197
|
} catch (err) {
|
|
196
198
|
console.log('err_code', err.code, 'err_message', err.message);
|
|
199
|
+
Networking.sendEvent('other', 'DEBUG_PAYMENT_getSubscriptionInfo_ERROR', {'error': err.message});
|
|
197
200
|
return {};
|
|
198
201
|
}
|
|
199
202
|
config.DEBUG_MODE && console.log('subscription Metadata: ', subscriptionsData);
|
|
@@ -342,6 +345,7 @@ class PayWallLogic {
|
|
|
342
345
|
config.PAYWALL_DATA.paywall_info = payWallInfo;
|
|
343
346
|
if (config.DEBUG_MODE) {
|
|
344
347
|
console.debug('paywall_info', config.PAYWALL_DATA.paywall_info);
|
|
348
|
+
Networking.sendEvent('other', 'DEBUG_PAYMENT_payment_prices_info_prepared', config.PAYWALL_DATA.paywall_info);
|
|
345
349
|
}
|
|
346
350
|
}
|
|
347
351
|
return payWallInfo;
|
|
@@ -350,6 +354,7 @@ class PayWallLogic {
|
|
|
350
354
|
|
|
351
355
|
|
|
352
356
|
getProductIDs = () => {
|
|
357
|
+
Networking.sendEvent('other', 'DEBUG_PAYMENT_getProductIDs', config.PAYWALL_DATA.products);
|
|
353
358
|
return config.PAYWALL_DATA.products;
|
|
354
359
|
}
|
|
355
360
|
|