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

Release preview for 4.0.0+ #716

Merged
merged 41 commits into from
Oct 7, 2019
Merged

Release preview for 4.0.0+ #716

merged 41 commits into from
Oct 7, 2019

Conversation

hyochan
Copy link
Member

@hyochan hyochan commented Sep 16, 2019

  • Remove unused methods and fix typings
  • Default andDangerouslyFinishTransactionAutomatically to true
  • Update eslint rules
  • Remove all the deprecated methods
    • Remove buyProduct.
    • Remove buySubscription.
    • Remove addAdditionalSuccessPurchaseListenerIOS.
    • Rename requestReceiptIOS to getReceiptIOS.
    • Rename buyProductWithOfferIOS to requestPurcaseWithOfferIOS.
    • Rename buyProductWithQuantityIOS to requestProductWithQuantityIOS.
  • Add missing types
  • Abstracts verifying purchases into one method, finishTransaction
    • It abstracts finishTransactionIOS, consumePurchaseAndroid, acknowledgePurchaseAndroid in to one method.
  • Expose developerId and accoundId when requesting purchase or subscription.
  • Migrated to ts project.
    • Remove generated file from dep.
  • Simplified eslint using @dooboo/eslint-config.

- Remove buyProduct.
- Remove buySubscription.
- Remove buyProductWithOfferIOS.
- Remove buyProductWithQuantityIOS.
- Remove addAdditionalSuccessPurchaseListenerIOS.
- Rename requestReceiptIOS to getReceiptIOS.
- Rename buyProductWithOfferIOS to requestPurcaseWithOfferIOS.
- Rename buyProductWithQuantityIOS to requestProductWithQuantityIOS.
@hyochan hyochan changed the title Next Release preview for 4.0.0+ Sep 16, 2019
@hyochan hyochan added 🚧 experimental Experimental 📘 release Released version labels Sep 16, 2019
- It abstracts `finishTransactionIOS`, `consumePurchaseAndroid`, `acknowledgePurchaseAndroid` in to one method.
- Add `deveoperId` and `accountId` when requesting `purchase` or `subscription` in `android`. Find out more in `requestPurchase` and `requestSubscription`.
- Fix prorationMode param and null activity.
- Send `purchase-error` with null purchases.
@hyochan hyochan self-assigned this Sep 18, 2019
Stafox referenced this pull request in vovkasm/react-native-iap Sep 24, 2019
On iOS transactionId corresponds to native transactionId.
On Android transactionId corresponds to purchaseToken. From docs: "A token that uniquely identifies a purchase for a given item and user pair". Use it as transactionId because it used in later api calls.
@hyochan hyochan merged commit c9570a8 into master Oct 7, 2019
@hyochan hyochan deleted the next branch October 7, 2019 01:29
@solidfox
Copy link
Collaborator

Great to see this happening @hyochan! Thanks for this!

I noticed a typo, don't know if it's easily fixable but you say

Default andDangerouslyFinishTransactionAutomatically to true

when you actually did the opposite and correct thing by changing it to false.

@hyochan
Copy link
Member Author

hyochan commented Oct 14, 2019

@solidfox Yes you are right! I think I've missed this out when migrating to ts project. I've fixed this in 4.0.7!

marzuq-adebayo-dev referenced this pull request in marzuq-adebayo-dev/React-Native-iap May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚧 experimental Experimental 📘 release Released version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants