Releases: RevenueCat/purchases-flutter
3.5.0
- Removed call to
Purchases.getSharedInstance().close();
inonDetachedFromEngine
. This should fix an incompatibility withworkmanager
Flutter plugin that was causing the BillingClient to get disconnected after a task would finish. - Added a new
close()
function to be called in Android whenever the resources used by Purchases should be released.
#268
#257 - Bump
purchases-hybrid-common
to 1.9.3 Changelog here - Bump
purchases-ios
to 3.12.8
3.12.8 Changelog here
3.12.7 Changelog here
3.4.6
3.4.6
- Bump
purchases-hybrid-common
to 1.9.2 Changelog here - Bump
purchases-android
to4.3.3
4.3.3 Changelog here
4.3.2 Changelog here - Bump
purchases-ios
to 3.12.6
3.12.6 Changelog here
3.12.5 Changelog here
3.12.4 Changelog here
amazon.alpha.2
Adds initial Amazon store support. In order to use please point to this tag in your pubspec.yaml
like this:
dependencies:
purchases_flutter:
git:
url: git://github.com/revenuecat/purchases-flutter.git
ref: amazon.alpha.2
Then configure the package using your RevenueCat API key specific for Amazon and passing useAmazon: true
:
await Purchases.setup(apiKey, appUserId: null, observerMode: false, useAmazon: true);
Modify your android/app/build.gradle
to add a dependency to the official in-app-purchasing-2.0.76.jar
dependencies {
implementation files('libs/in-app-purchasing-2.0.76.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
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.
3.4.5
- Bumped purchases-android to 4.3.1 Changelog here,
which fixes canMakePayments not returning (see related issue: RevenueCat/purchases-unity#61) - Bumped purchases-hybrid-common to 1.9.1 Changelog here
3.4.4
3.4.3
3.4.2
amazon.alpha.1
Adds initial Amazon store support. In order to use please point to this tag in your pubspec.yaml
like this:
dependencies:
purchases_flutter:
git:
url: git://github.com/revenuecat/purchases-flutter.git
ref: amazon.alpha.1
Then configure the package using your RevenueCat API key specific for Amazon and passing useAmazon: true
:
await Purchases.setup(apiKey, appUserId: null, observerMode: false, useAmazon: true);
Modify your android/app/build.gradle
to add a dependency to the official in-app-purchasing-2.0.76.jar
dependencies {
implementation files('libs/in-app-purchasing-2.0.76.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
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.
3.4.1
3.4.0
3.4.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.
#180
Other
- Updated BillingClient to version 4.0.0.
RevenueCat/purchases-android@f6554bb - Bumped purchases-ios to 3.12.2 Changelog here
- Bumped purchases-android to 4.3.0 Changelog here