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 +3 -3
- package/package.json +1 -1
- package/src/libraries/PayWallLogic.js +3 -3
- package/src/libraries/Rating.js +2 -2
- package/src/libraries/Storage.js +3 -3
- package/types/index.d.ts +1 -1
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 : '
|
|
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 =
|
|
53
|
+
export const DEBUG_MODE = false;
|
package/package.json
CHANGED
|
@@ -128,13 +128,13 @@ class PayWallLogic {
|
|
|
128
128
|
subscriptionsData[product.productId] = product;
|
|
129
129
|
});
|
|
130
130
|
config.PAYWALL_DATA.products_metadata = subscriptionsData;
|
|
131
|
-
console.
|
|
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.
|
|
170
|
+
config.DEBUG_MODE && console.debug('paywall_info', config.PAYWALL_DATA.paywall_info);
|
|
171
171
|
}
|
|
172
172
|
return payWallInfo;
|
|
173
173
|
}
|
package/src/libraries/Rating.js
CHANGED
|
@@ -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();
|
package/src/libraries/Storage.js
CHANGED
|
@@ -166,7 +166,7 @@ class Storage {
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
const directories = await FileSystem.readDirectoryAsync(CREATIONS_DIR);
|
|
169
|
-
console.
|
|
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.
|
|
179
|
+
config.DEBUG_MODE && console.debug('getCreations jsonData:', jsonData);
|
|
180
180
|
|
|
181
181
|
let dataParsed = JSON.parse(jsonData)
|
|
182
|
-
console.
|
|
182
|
+
config.DEBUG_MODE && console.debug('getCreations dataParsed:', dataParsed);
|
|
183
183
|
directoryData.push({
|
|
184
184
|
url: imageUri,
|
|
185
185
|
job_id: directory,
|