apps-sdk 1.1.82 → 1.1.83

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps-sdk",
3
- "version": "1.1.82",
3
+ "version": "1.1.83",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "author": "ASD",
@@ -5,16 +5,17 @@ import Session from "./Session";
5
5
  import Mixpanel from "./MixPanel";
6
6
  import * as config from "../../config";
7
7
 
8
- import {
9
- finishTransaction,
10
- flushFailedPurchasesCachedAsPendingAndroid,
11
- getAvailablePurchases,
12
- getSubscriptions,
13
- initConnection,
14
- purchaseErrorListener,
15
- purchaseUpdatedListener,
16
- requestSubscription,
17
- } from 'react-native-iap';
8
+ // LEGACY CODE - react-native-iap not used (Adapty handles all payments)
9
+ // import {
10
+ // finishTransaction,
11
+ // flushFailedPurchasesCachedAsPendingAndroid,
12
+ // getAvailablePurchases,
13
+ // getSubscriptions,
14
+ // initConnection,
15
+ // purchaseErrorListener,
16
+ // purchaseUpdatedListener,
17
+ // requestSubscription,
18
+ // } from 'react-native-iap';
18
19
 
19
20
  class PayWallLogic {
20
21
  constructor(props) {
@@ -25,6 +26,10 @@ class PayWallLogic {
25
26
  purchaseErrorSubscription;
26
27
 
27
28
  async initializePayWall() {
29
+ // LEGACY CODE - Not used (Adapty handles all payments)
30
+ console.log('[PayWallLogic] initializePayWall called but skipped (legacy code)');
31
+ return;
32
+ /* COMMENTED OUT - react-native-iap not available
28
33
  try {
29
34
  await initConnection();
30
35
 
@@ -134,6 +139,7 @@ class PayWallLogic {
134
139
  } catch (error) {
135
140
  console.log('Error en initializePayWall', error);
136
141
  }
142
+ */
137
143
  }
138
144
 
139
145
  purchaseResp = async (subscription, purchaseToken) => {
@@ -152,6 +158,11 @@ class PayWallLogic {
152
158
  }
153
159
 
154
160
  executePurchase = async (productID, hideLoaderCallback, hidePayWallCallback) => {
161
+ // LEGACY CODE - Not used (Adapty handles all payments)
162
+ console.log('[PayWallLogic] executePurchase called but skipped (legacy code)');
163
+ if (hideLoaderCallback) hideLoaderCallback();
164
+ return false;
165
+ /* COMMENTED OUT - react-native-iap not available
155
166
  let subscribed = false;
156
167
  try {
157
168
  const subscriptionTemplates = await getSubscriptions({skus: [productID]});
@@ -176,9 +187,15 @@ class PayWallLogic {
176
187
  hideLoaderCallback();
177
188
  }
178
189
  return subscribed;
190
+ */
179
191
  };
180
192
 
181
193
  restorePurchase = async (hideLoaderCallback, hidePayWallCallback) => {
194
+ // LEGACY CODE - Not used (Adapty handles all payments)
195
+ console.log('[PayWallLogic] restorePurchase called but skipped (legacy code)');
196
+ if (hideLoaderCallback) hideLoaderCallback();
197
+ return false;
198
+ /* COMMENTED OUT - react-native-iap not available
182
199
  let subscribed = false;
183
200
  try {
184
201
  const purchases = await getAvailablePurchases();
@@ -209,6 +226,7 @@ class PayWallLogic {
209
226
  hideLoaderCallback();
210
227
  }
211
228
  return subscribed;
229
+ */
212
230
  }
213
231
 
214
232
  purchaseData = (subscription, purchaseToken) => {
@@ -219,6 +237,9 @@ class PayWallLogic {
219
237
  }
220
238
 
221
239
  getSubscriptionInfo = async (productIDs) => {
240
+ // LEGACY CODE - Not used (Adapty handles all payments)
241
+ return {};
242
+ /* COMMENTED OUT - react-native-iap not available
222
243
  let subscriptionsData = {};
223
244
  try {
224
245
  const subscriptionTemplates = await getSubscriptions({skus: productIDs});
@@ -238,6 +259,7 @@ class PayWallLogic {
238
259
  }
239
260
  config.DEBUG_MODE && console.log('subscription Metadata: ', subscriptionsData);
240
261
  return subscriptionsData;
262
+ */
241
263
  }
242
264
 
243
265
  getPayWallJS = async () => {