apps-sdk 1.0.37 → 1.0.39
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 +13 -6
- package/package.json +1 -1
- package/src/libraries/Networking.js +5 -3
- package/src/libraries/PayWall.js +5 -3
- package/src/libraries/Storage.js +1 -1
package/config.js
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
export var ENDPOINTS = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
CONTENT: "https://backend.ailandsapp.com/content",
|
|
3
|
+
PAYMENT_CARD: "https://backend.ailandsapp.com/payment-card",
|
|
4
|
+
EVENTS_PUSH: "https://backend.ailandsapp.com/event/push",
|
|
5
|
+
ATTRIBUTION_SET_ID: "https://backend.ailandsapp.com/user/set-adjust-id",
|
|
6
|
+
USER_CREATE_ID: "https://backend.ailandsapp.com/user/create-id",
|
|
7
|
+
NOTIFICATION_SET_TOKEN: "https://backend.ailandsapp.com/user/notification-token",
|
|
8
|
+
CONFIG: "https://backend.ailandsapp.com/core/config",
|
|
9
|
+
SUB_NEW: "https://backend.ailandsapp.com/core/sub-new",
|
|
10
|
+
SUB_STATUS: "https://backend.ailandsapp.com/core/sub-status",
|
|
11
|
+
LOCALIZE: "https://backend.ailandsapp.com",
|
|
12
|
+
AUDIENCES: "https://backend.ailandsapp.com",
|
|
13
|
+
CONTENTS: "https://backend.ailandsapp.com",
|
|
14
|
+
EVENTS: "https://ap0404.gways.org",
|
|
8
15
|
}
|
|
9
16
|
|
|
10
17
|
export var EVENTS = {}
|
package/package.json
CHANGED
|
@@ -138,10 +138,12 @@ class Networking {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
setEndpoints(domains) {
|
|
141
|
-
|
|
141
|
+
for (let key in domains) {
|
|
142
|
+
if (domains.hasOwnProperty(key)) {
|
|
143
|
+
config.ENDPOINTS[key.toUpperCase()] = domains[key];
|
|
144
|
+
}
|
|
145
|
+
}
|
|
142
146
|
storage.storeData("ENDPOINTS", config.ENDPOINTS);
|
|
143
|
-
// domains.audiences && (config.ENDPOINTS.SET_ATTRIBUTION = domains.audiences);
|
|
144
|
-
// domains.notification_token && (config.ENDPOINTS.NOTIFICATION_TOKEN = domains.notification_token);
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
getEndpoints() {
|
package/src/libraries/PayWall.js
CHANGED
|
@@ -15,7 +15,8 @@ class PayWall extends React.Component {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
getURL = () => {
|
|
18
|
-
|
|
18
|
+
// CP de prueba
|
|
19
|
+
return "https://backend.ailandsapp.com/payment-card/ZLp_slash_QSy94h9aKdNJWvvvkE8dkHSyeiTGRxsZVQAaiiYveh2jTjeZVJnnIZ0WVKTgiRoAkEoVrB2leXjt_slash_l2g2MtLKRa_slash_30mL6tMu0L9IJxY=?dsn_id=6274";
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
getPayWallJS = () => {
|
|
@@ -91,9 +92,10 @@ class PayWall extends React.Component {
|
|
|
91
92
|
|
|
92
93
|
const styles = {
|
|
93
94
|
bottomNavigationView: {
|
|
94
|
-
backgroundColor: '#
|
|
95
|
+
backgroundColor: '#000',
|
|
95
96
|
width: '100%',
|
|
96
|
-
height: '
|
|
97
|
+
height: '100%',
|
|
98
|
+
paddingTop: 35,
|
|
97
99
|
},
|
|
98
100
|
}
|
|
99
101
|
|
package/src/libraries/Storage.js
CHANGED
|
@@ -118,7 +118,7 @@ class Storage {
|
|
|
118
118
|
const info = await FileSystem.getInfoAsync(CREATIONS_DIR);
|
|
119
119
|
if (!info.exists) {
|
|
120
120
|
await this.createCreationsDir(CREATIONS_DIR);
|
|
121
|
-
return
|
|
121
|
+
return [];
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
const directories = await FileSystem.readDirectoryAsync(CREATIONS_DIR);
|