Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

Releases: idehub/react-native-billing

Upgraded to new APIs for RN, Gradle and the wrapped IAB lib

02 Nov 18:42
Compare
Choose a tag to compare

What’s Changed

Lots of thanks to the contributors!

Minor release to allow override of SDK versions

05 Sep 06:47
e7750a7
Compare
Choose a tag to compare

Fix for RN 0.56+ and newer SDKs + Gradle versions.

Available overrides:

  • compileSdkVersion
  • buildToolsVersion
  • minSdkVersion
  • targetSdkVersion
  • reactNativeVersion
  • anjlabIABVersion

The final one (anjlabIABVersion) is if you want to attempt to use other versions than the default version for https://github.com/anjlab/android-inapp-billing-v3 (which is the lib we wrap).

Add autoRenewing flag on transaction details

11 Jun 08:19
80b65f9
Compare
Choose a tag to compare

This release adds an autoRenewing flag that should help you check cancelled subscriptions.

Call InAppBilling.getSubscriptionTransactionDetails(productId) and check the details.autoRenewing flag. It will be set to false once subscription gets cancelled. Also notice, that you will need to call periodically InAppBilling.loadOwnedPurchasesFromGoogle() method in order to update purchase/subscription information from the Google-servers.

Major release for RN 0.30+

11 Aug 09:31
Compare
Choose a tag to compare

Since we're implementing ActivityEventListener we need to override onNewIntent for RN 0.30+.

This is not backwards-compatible, and hence a major release.

Minor release for RN 29.2 and lower

11 Aug 09:22
Compare
Choose a tag to compare

Thanks to @c-h- for his contributions on this release!

Developer payload for purchase and subscribe

16 Mar 19:56
Compare
Choose a tag to compare

Now the purchase and subscribe functions allow an optional developerPayload string parameter. This value will roundtrip from in the process, and be returned as part of the transactionDetails.

Thanks to @grabbou for his PR providing this feature!

More transaction details

26 Feb 18:14
Compare
Choose a tag to compare

Added two new methods pertaining to retrieving transaction details after purchase/subscriptions;

  • getPurchaseTransactionDetails(productId)
  • getSubscriptionTransactionDetails(productId)

Both of these will return the same transaction details as when you did a purchase or subscription. This will allow you to re-check details at a later point.

Thanks to @thstarshine for his cleaned up PR of my pseudo-code!

isPurchased + more

13 Feb 13:28
Compare
Choose a tag to compare

Added three new methods:

  • isPurchased(productId)
    • returns boolean
  • listOwnedProducts()
    • returns list of productIds
  • listOwnedSubscriptions()
    • returns list of productIds

Rewrite of module, more features

06 Feb 01:08
Compare
Choose a tag to compare

Very heavily rewrite of module which will introduce open and close methods, which can be used to open/close the Google Play service channel. This will hopefully fix the app crashes.

Also implemented more features from the anjlab library, including onActivityResult (the RN way through ActivityEventListener, and subscription-methods.