react-native-iap 8.0.0 → 8.0.4

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.
Binary file
package/README.md CHANGED
@@ -3,7 +3,6 @@
3
3
  [![Version](http://img.shields.io/npm/v/react-native-iap.svg?style=flat-square)](https://npmjs.org/package/react-native-iap)
4
4
  <!-- [![Next](https://img.shields.io/npm/v/react-native-iap/next.svg?style=flat-square)](https://npmjs.org/package/react-native-iap) -->
5
5
  [![Download](http://img.shields.io/npm/dm/react-native-iap.svg?style=flat-square)](https://npmjs.org/package/react-native-iap)
6
- [![Build Status](https://travis-ci.com/dooboolab/react-native-iap.svg?branch=main)](https://travis-ci.com/dooboolab/react-native-iap)
7
6
  [![CI](https://github.com/dooboolab/react-native-iap/actions/workflows/ci.yml/badge.svg)](https://github.com/dooboolab/react-native-iap/actions/workflows/ci.yml)
8
7
  [![document](https://github.com/dooboolab/react-native-iap/actions/workflows/deploy-document.yml/badge.svg)](https://github.com/dooboolab/react-native-iap/actions/workflows/deploy-document.yml)
9
8
  [![License](https://img.shields.io/npm/l/react-native-iap.svg)](https://npmjs.org/package/react-native-iap)
@@ -29,9 +29,9 @@ class DoobooUtils {
29
29
  list = promises[key]!!
30
30
  } else {
31
31
  list = ArrayList()
32
- promises[key] = list
33
32
  }
34
33
  list.add(promise)
34
+ promises[key] = list
35
35
  } catch (oce: ObjectAlreadyConsumedException) {
36
36
  Log.e(TAG, oce.message!!)
37
37
  }
@@ -176,4 +176,4 @@ class DoobooUtils {
176
176
  const val E_BILLING_RESPONSE_JSON_PARSE_ERROR = "E_BILLING_RESPONSE_JSON_PARSE_ERROR"
177
177
  val instance = DoobooUtils()
178
178
  }
179
- }
179
+ }
package/ios/RNIapIos.m CHANGED
@@ -46,7 +46,9 @@ RCT_EXTERN_METHOD(requestReceipt:
46
46
  resolve:(RCTPromiseResolveBlock)resolve
47
47
  reject:(RCTPromiseRejectBlock)reject)
48
48
  RCT_EXTERN_METHOD(finishTransaction:
49
- (NSString*)transactionIdentifier)
49
+ (NSString*)transactionIdentifier
50
+ resolve:(RCTPromiseResolveBlock)resolve
51
+ reject:(RCTPromiseRejectBlock)reject)
50
52
  RCT_EXTERN_METHOD(getPendingTransactions:
51
53
  (RCTPromiseResolveBlock)resolve
52
54
  reject:(RCTPromiseRejectBlock)reject)
@@ -83,10 +83,10 @@ class RNIapIos: RCTEventEmitter, SKRequestDelegate, SKPaymentTransactionObserver
83
83
 
84
84
  if promises == nil {
85
85
  promises = []
86
- promisesByKey[key] = promises
87
86
  }
88
87
 
89
88
  promises?.append((resolve, reject))
89
+ promisesByKey[key] = promises
90
90
  }
91
91
 
92
92
  func resolvePromises(forKey key: String?, value: Any?) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-iap",
3
- "version": "8.0.0",
3
+ "version": "8.0.4",
4
4
  "packageManager": "yarn@3.1.1",
5
5
  "description": "React Native In App Purchase Module.",
6
6
  "main": "index.js",