Skip to content

Commit

Permalink
Resolve #748
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Oct 1, 2019
1 parent 5cd133c commit cc96a62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
- Resolve type error [#746](https://github.com/dooboolab/react-native-iap/pull/746).
- **[3.5.5]**
- Fix more type error.
- **[3.5.6]**
- Resolve [#748](https://github.com/dooboolab/react-native-iap/issues/748)
- **[3.4.+]**
- Makes module possible to be built in older XCode version [#650](https://github.com/dooboolab/react-native-iap/pull/650).
- Makes iOS `getSubscriptions` return subscriptions that only received ids [#654](https://github.com/dooboolab/react-native-iap/pull/654).
Expand Down
5 changes: 2 additions & 3 deletions android/src/main/java/com/dooboolab/RNIap/RNIapModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,9 @@ public void run() {
item.putString("developerPayloadAndroid", purchase.getDeveloperPayload());
item.putString("signatureAndroid", purchase.getSignature());
item.putInt("purchaseStateAndroid", purchase.getPurchaseState());
item.putBoolean("isAcknowledgedAndroid", purchase.isAcknowledged());

if (type.equals(BillingClient.SkuType.INAPP)) {
item.putBoolean("isAcknowledgedAndroid", purchase.isAcknowledged());
} else if (type.equals(BillingClient.SkuType.SUBS)) {
if (type.equals(BillingClient.SkuType.SUBS)) {
item.putBoolean("autoRenewingAndroid", purchase.isAutoRenewing());
}
items.pushMap(item);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-iap",
"version": "3.5.5",
"version": "3.5.6",
"description": "React Native In App Purchase Module.",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit cc96a62

Please sign in to comment.