react-native-iap 8.0.1 → 8.0.5

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
@@ -129,6 +129,16 @@ class RNIapAmazonModule(reactContext: ReactApplicationContext?) :
129
129
  sendUnconsumedPurchases(promise)
130
130
  }
131
131
 
132
+ @ReactMethod
133
+ fun addListener(eventName: String) {
134
+ // Keep: Required for RN built-in Event Emitter Calls.
135
+ }
136
+
137
+ @ReactMethod
138
+ fun removeListeners(count: Double) {
139
+ // Keep: Required for RN built-in Event Emitter Calls.
140
+ }
141
+
132
142
  companion object {
133
143
  const val PROMISE_BUY_ITEM = "PROMISE_BUY_ITEM"
134
144
  const val PROMISE_GET_PRODUCT_DATA = "PROMISE_GET_PRODUCT_DATA"
@@ -136,4 +146,4 @@ class RNIapAmazonModule(reactContext: ReactApplicationContext?) :
136
146
  const val PROMISE_QUERY_AVAILABLE_ITEMS = "PROMISE_QUERY_AVAILABLE_ITEMS"
137
147
  const val PROMISE_GET_USER_DATA = "PROMISE_GET_USER_DATA"
138
148
  }
139
- }
149
+ }
@@ -648,6 +648,16 @@ class RNIapModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaM
648
648
  sendUnconsumedPurchases(promise)
649
649
  }
650
650
 
651
+ @ReactMethod
652
+ fun addListener(eventName: String) {
653
+ // Keep: Required for RN built-in Event Emitter Calls.
654
+ }
655
+
656
+ @ReactMethod
657
+ fun removeListeners(count: Double) {
658
+ // Keep: Required for RN built-in Event Emitter Calls.
659
+ }
660
+
651
661
  @get:ReactMethod
652
662
  val packageName: String
653
663
  get() = reactApplicationContext.packageName
@@ -679,4 +689,4 @@ class RNIapModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaM
679
689
  }
680
690
  reactContext.addLifecycleEventListener(lifecycleEventListener)
681
691
  }
682
- }
692
+ }
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-iap",
3
- "version": "8.0.1",
3
+ "version": "8.0.5",
4
4
  "packageManager": "yarn@3.1.1",
5
5
  "description": "React Native In App Purchase Module.",
6
6
  "main": "index.js",