Skip to content

Releases: RevenueCat/react-native-purchases

4.4.1

12 Nov 13:49
9241069
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 4.4.0...4.4.1

4.4.0

11 Nov 17:30
be90be3
Compare
Choose a tag to compare

4.4.0

4.3.3

29 Oct 00:55
3b57e02
Compare
Choose a tag to compare

4.3.2

26 Oct 01:02
121f1d0
Compare
Choose a tag to compare
  • Fixed return type of isAnonymous
    #302
  • Fix EntitlementInfo.store type
    #296

4.3.1

07 Sep 20:06
d7c4d8d
Compare
Choose a tag to compare

amazon.alpha.1

28 Aug 01:02
Compare
Choose a tag to compare
amazon.alpha.1 Pre-release
Pre-release

Adds initial Amazon store support. In order to use please point to this tag in your package.json like this:

    "react-native-purchases": "RevenueCat/react-native-purchases#amazon.alpha.1"

Then configure the package using your RevenueCat API key specific for Amazon and passing useAmazon: true:

    Purchases.setup({apiKey: "api_key", useAmazon: true});

Please note that the setup call has changed and now accepts an object. This is to be able to use named arguments.

Check your android/app/build.gradle to make sure there is a dependency on everything included in the libs folder. React Native adds this by default:

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])

The next step would be to add the jar to your project. For that you can use the following gradle task that can be added to android/app/build.gradle and run via ./gradlew getAmazonLibrary in the android folder of your project or via Android Studio :

// Gradle task to download Amazon library
ext {
    iapVersion = "2.0.76"
}

task getAmazonLibrary {
    ext {
        downloadURL = "https://amzndevresources.com/iap/sdk/AmazonInAppPurchasing_Android.zip"
        fileToExtract = "in-app-purchasing-${iapVersion}.jar"
        destFile = new File( projectDir, "libs/$fileToExtract" )
    }

    inputs.property( 'downloadURL', downloadURL )
    inputs.property( 'fileToExtract', fileToExtract )
    outputs.file( destFile )

    doLast {
        File destDir = destFile.parentFile
        destDir.mkdirs()

        File downloadFile = new File( temporaryDir, 'download.zip' )
        new URL( downloadURL ).withInputStream { is ->
            downloadFile.withOutputStream { it << is }
        }

        project.copy {
            from {
                zipTree(downloadFile).matching { include "**/$fileToExtract" }.singleFile
            }

            into( destDir )
        }
    }
}

That gradle task will add the jar to the libs folder inside app:

Screen Shot 2021-08-27 at 5 58 53 PM

Alternatively, you can do this manually by downloading the .zip from Amazon and then unzipping and moving the in-app-purchasing-2.0.76.jar into your projects android/app/libs/ folder like in the screenshot above.

Due to some limitations, RevenueCat will only validate purchases made in production or in Live App Testing and won't validate purchases made with the Amazon App Tester.

4.3.0

20 Jul 20:54
9a3e5c1
Compare
Choose a tag to compare

Identity V3:

In this version, we’ve redesigned the way that user identification works.
Detailed docs about the new system are available here.

New methods

  • Introduces logIn, a new way of identifying users, which also returns whether a new user has been registered in the system.
    logIn uses a new backend endpoint.
  • Introduces logOut, a replacement for reset.

Deprecations

  • deprecates createAlias in favor of logIn.
  • deprecates identify in favor of logIn.
  • deprecates reset in favor of logOut.
  • deprecates setAllowSharingStoreAccount in favor of dashboard-side configuration.
    #229

Other

4.2.0

16 Jun 22:03
dba9e83
Compare
Choose a tag to compare
  • Add canMakePayments method (#244)
  • Add PR template (#263)

4.1.4

09 Jun 23:14
e88be47
Compare
Choose a tag to compare

4.1.3

09 Jun 01:05
738d526
Compare
Choose a tag to compare