apps-sdk 1.0.63 → 1.0.65

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 CHANGED
@@ -36,8 +36,8 @@ export const EVENT_TYPES = {
36
36
 
37
37
  export const ADJUST = {
38
38
  ADJUST_TOKEN : 'y4o1gcezs6ps',
39
- ENVIRONMENT : 'SANDBOX', // or 'PRODUCTION'
40
- LOG_LEVEL : 'VERBOSE',
39
+ ENVIRONMENT : 'PRODUCTION', // 'SANDBOX' or 'PRODUCTION'
40
+ LOG_LEVEL : 'SUPPRESS', // 'VERBOSE' or 'SUPPRESS'
41
41
  ATTRIBUTION_DATA : {
42
42
  ATTRIBUTION: {},
43
43
  ADID: '',
@@ -50,4 +50,4 @@ export var TRACKING_ACTIVE = true;
50
50
 
51
51
  export var FORCED_UPDATE = false;
52
52
 
53
- export const DEBUG_MODE = true;
53
+ export const DEBUG_MODE = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps-sdk",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -128,13 +128,13 @@ class PayWallLogic {
128
128
  subscriptionsData[product.productId] = product;
129
129
  });
130
130
  config.PAYWALL_DATA.products_metadata = subscriptionsData;
131
- console.log('products_metadata', config.PAYWALL_DATA.products_metadata);
131
+ config.DEBUG_MODE && console.debug('products_metadata', config.PAYWALL_DATA.products_metadata);
132
132
  }
133
133
  } catch (err) {
134
134
  console.log(err.code, err.message);
135
135
  return {};
136
136
  }
137
- console.log('subscription Metadata: ', subscriptionsData);
137
+ config.DEBUG_MODE && console.log('subscription Metadata: ', subscriptionsData);
138
138
  return subscriptionsData;
139
139
  }
140
140
 
@@ -167,7 +167,7 @@ class PayWallLogic {
167
167
  });
168
168
  }
169
169
  config.PAYWALL_DATA.paywall_info = payWallInfo;
170
- console.log('paywall_info', config.PAYWALL_DATA.paywall_info);
170
+ config.DEBUG_MODE && console.debug('paywall_info', config.PAYWALL_DATA.paywall_info);
171
171
  }
172
172
  return payWallInfo;
173
173
  }
@@ -3,9 +3,9 @@ import Storage from './Storage';
3
3
 
4
4
  const REVIEW_INTERVAL = 1000 * 60 * 60 * 24 * 3; // 3 días
5
5
  class Rating {
6
- showRatingDialog = async () => {
6
+ showRatingDialog = async (force = false) => {
7
7
  try {
8
- if (await this.requestReviewIfNeeded()) {
8
+ if (force || (await this.requestReviewIfNeeded())) {
9
9
  if (await StoreReview.hasAction()) {
10
10
  if (await StoreReview.isAvailableAsync()) {
11
11
  return await StoreReview.requestReview();
@@ -166,7 +166,7 @@ class Storage {
166
166
  }
167
167
 
168
168
  const directories = await FileSystem.readDirectoryAsync(CREATIONS_DIR);
169
- console.log('getCreations directories:', directories);
169
+ config.DEBUG_MODE && console.debug('getCreations directories:', directories);
170
170
  const directoryData = [];
171
171
 
172
172
  for (const directory of directories) {
@@ -176,10 +176,10 @@ class Storage {
176
176
 
177
177
  const imageData = await FileSystem.readAsStringAsync(imageUri, { encoding: FileSystem.EncodingType.Base64 });
178
178
  const jsonData = await FileSystem.readAsStringAsync(dataUri, { encoding: FileSystem.EncodingType.UTF8 });
179
- console.log('getCreations jsonData:', jsonData);
179
+ config.DEBUG_MODE && console.debug('getCreations jsonData:', jsonData);
180
180
 
181
181
  let dataParsed = JSON.parse(jsonData)
182
- console.log('getCreations dataParsed:', dataParsed);
182
+ config.DEBUG_MODE && console.debug('getCreations dataParsed:', dataParsed);
183
183
  directoryData.push({
184
184
  url: imageUri,
185
185
  job_id: directory,
package/types/index.d.ts CHANGED
@@ -100,7 +100,7 @@ declare module 'apps-sdk' {
100
100
  }
101
101
 
102
102
  export class Rating {
103
- showRatingDialog(): Promise<void>;
103
+ showRatingDialog(force?: boolean): Promise<void>;
104
104
  }
105
105
 
106
106
  export class NotificationsPush {