Releases: RevenueCat/react-native-purchases
4.4.1
What's Changed
- Fix types of
getAppUserId
by @TimPetricola in #306 - Add fastlane by @taquitos in #269
New Contributors
- @TimPetricola made their first contribution in #306
- @taquitos made their first contribution in #269
Full Changelog: 4.4.0...4.4.1
4.4.0
4.4.0
- Bump
purchases-hybrid-common
to1.10.0
Changelog here - Bump
purchases-ios
to3.13.0
(Changelog here) - Bump
purchases-android
to4.4.0
(Changelog here) - Added support for Airship integration via
setAirshipChannelID
#307
4.3.3
- Bump
purchases-ios
to 3.12.8
3.12.8 Changelog here
3.12.7 Changelog here
3.12.6 Changelog here
3.12.5 Changelog here
3.12.4 Changelog here - Bump
purchases-android
to 4.3.3
4.3.3 Changelog here
4.3.2 Changelog here
4.3.2
4.3.1
- Bumped purchases-android to 4.3.1 Changelog here,
which fixes canMakePayments not returning (see related issue: RevenueCat/purchases-unity#61) - Bumped purchases-ios to 3.12.3 Changelog here
- Bumped purchases-hybrid-common to 1.9.1 Changelog here
- Extracted readableErrorCode to userInfo (#268)
amazon.alpha.1
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
:
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
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 forreset
.
Deprecations
- deprecates
createAlias
in favor oflogIn
. - deprecates
identify
in favor oflogIn
. - deprecates
reset
in favor oflogOut
. - deprecates
setAllowSharingStoreAccount
in favor of dashboard-side configuration.
#229
Other
- Fixed build issues MagicWeather example for Xcode 12.5
#267 - Dependency security updates
#271
#273 - Bumped purchases-ios to 3.12.2 Changelog here
- Bumped purchases-android to 4.3.0 Changelog here
- Updated BillingClient to version 4.0.0.
RevenueCat/purchases-android@f6554bb
4.2.0
4.1.4
- Bumped purchases-hybrid-common to 1.7.1 in Android Changelog here
4.1.3
- Bumped purchases-hybrid-common to 1.7.1 Changelog here
- Bumped purchases-android to 4.2.1 Changelog here