apps-sdk 1.0.62 → 1.0.64
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/components/PayWall.js +5 -0
- package/src/libraries/Networking.js +1 -1
- package/src/libraries/Rating.js +2 -2
- 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
|
@@ -86,6 +86,11 @@ class PayWall extends React.Component {
|
|
|
86
86
|
this.props.onClose();
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
eventClickAcceptTerms = (data) => {
|
|
90
|
+
Networking.sendEvent('action', 'accept_terms');
|
|
91
|
+
this.props.acceptTerms();
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
hideSpinner = () => {
|
|
90
95
|
const event = {
|
|
91
96
|
event: 'hideLoader',
|
|
@@ -144,7 +144,7 @@ class Networking {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
checkSubscription = async () => {
|
|
147
|
-
let subsID = await storage.getData('
|
|
147
|
+
let subsID = await storage.getData('subscriptionID');
|
|
148
148
|
let subStatus = await this.request(config.ENDPOINTS.SUB_STATUS, {...Session.sessionData, subs_id: subsID});
|
|
149
149
|
console.log('checkSubscription', subStatus);
|
|
150
150
|
if (subStatus && subStatus.success === 1) {
|
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();
|