Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* On android for inapp products. Fixed NullPointerException: offerTok… #1

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 5.6.2
* On android for inapp products. Fixed NullPointerException: offerToken is required for constructing ProductDetailsParams
## 5.6.1
* Erroneous duplicate item by @deakjahn in https://github.com/dooboolab-community/flutter_inapp_purchase/pull/441
* Fixed consumable products reading on Android by @33-Elephants in https://github.com/dooboolab-community/flutter_inapp_purchase/pull/439
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,10 @@ class AndroidInappPurchasePlugin internal constructor() : MethodCallHandler,
if (offerToken == null) {
offerToken = selectedProductDetails.subscriptionOfferDetails!![0].offerToken
}

productDetailsParamsBuilder.setOfferToken(offerToken)
} else {
offerToken = selectedProductDetails.subscriptionOfferDetails!![0].offerToken
}
productDetailsParamsBuilder.setOfferToken(offerToken)

val productDetailsParamsList = listOf(productDetailsParamsBuilder.build())

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flutter_inapp_purchase
description: In App Purchase plugin for flutter. This project has been forked by
react-native-iap and we are willing to share same experience with that on
react-native.
version: 5.6.1
version: 5.6.2
homepage: https://github.com/dooboolab/flutter_inapp_purchase/blob/main/pubspec.yaml
environment:
sdk: ">=2.15.0 <4.0.0"
Expand Down