Skip to content

Commit

Permalink
Fix some warnings and a bug (#854)
Browse files Browse the repository at this point in the history
* Do not include tsconfig.json in release
* Fix error (NSInteger must not be a pointer) and fix xcode warning
  • Loading branch information
mo22 authored and hyochan committed Nov 17, 2019
1 parent b435d30 commit 08ed219
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ android/react-native-iap.iml
android/android.iml
tsconfig.tsbuildinfo
index.ts
tsconfig.json

4 changes: 2 additions & 2 deletions ios/RNIapIos.m
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ - (BOOL)shouldAddStorePayment:(SKPayment *)payment forProduct:(SKProduct *)produ
}

RCT_EXPORT_METHOD(buyProductWithQuantityIOS:(NSString*)sku
quantity:(NSInteger*)quantity
quantity:(NSInteger)quantity
resolve:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject) {
NSLog(@"\n\n\n buyProductWithQuantityIOS \n\n.");
Expand Down Expand Up @@ -451,7 +451,7 @@ -(void)purchaseProcess:(SKPaymentTransaction *)transaction {
[self resolvePromisesForKey:RCTKeyForInstance(transaction.payment.productIdentifier) value:purchase];

// additionally send event
if (hasListeners) {
if (self->hasListeners) {
[self sendEventWithName:@"purchase-updated" body: purchase];
}
}];
Expand Down

0 comments on commit 08ed219

Please sign in to comment.