Releases: RevenueCat/purchases-unity
3.5.2
- Fixed a crash when the deprecatedLegacyRevenueCatAPIKey hadn't been set when running on Android simulators
#93 - Fixed a bug where
CheckTrialOrIntroductoryPriceEligibility
could prompt for login credentials on iOS if the user hasn't logged into App Store. - Bump
purchases-hybrid-common
to2.0.1
Changelog here - Bump
purchases-ios
to3.14.1
(Changelog here) - Bump
purchases-android
to4.6.1
(Changelog here)
This version of the SDK doesn't have support for Amazon Store. If you would like to use our SDK with Amazon Store, use the version tagged amazon-latest and follow the AMAZON-INSTRUCTIONS.md docs to get set up.
3.2.0-amazon.alpha.5 (for Unity IAP observer mode compatibility)
- Added DangerousSetting option to disable automatic syncing of purchases. Use only if instructed by RevenueCat support.
- Amazon configured in observer mode won't register purchases automatically.
- Fixed Amazon observer mode by adding
syncObserverModeAmazonPurchase
to manually sync an Amazon purchase with our backend. - Updated
purchases-hybrid-common
android version to 2.0.0-amazon.alpha.5.billing3.iap2 - Updated
purchases-hybrid-common
iOS version to 2.0.0
For Amazon installation instructions please follow take a look at the Amazon instructions document
3.5.1
- Fixed issue where builds got rejected when uploading to App Store Connect because of the existence of a
Frameworks
folder in the archive
#84 - Added post-install script that automatically links the
StoreKit
framework to the main target
#85 - Bump
purchases-hybrid-common
to2.0.0
Changelog here - Bump
purchases-ios
to3.14.0
(Changelog here) - Bump
purchases-android
to4.6.0
(Changelog here)
3.2.0 With Amazon Support (Alpha)
Important
We've noticed this version doesn't work properly alongside Unity IAP and we do not recommend its usage in observer mode.
This release adds pre-release support for Amazon store. It's based off 3.2.0 since that's the latest version compatible with Unity IAP 4.1.2. Unity IAP hasn't been updated to BillingClient 4, and the latest purchases-unity version compatible with BillingClient 3 is 3.2.0
In order to be able to use this release you need an Amazon specific public key. You need to have access to the private beta of the platforms UI. Contact RevenueCat support if you want to have access.
Instructions
- Download the
.unitypackage
in the release - Open your Unity Project
- Select Import package -> Custom package
- Select Purchases_Amazon.unityPackage and make sure all of the files are selected and press import
-
If
Package Manager Resolver
asks to solve conflicts, choose library versions and select OK -
If your app also targets the Google Play Store, you will want to conditionally exclude the BillingClient to prevent duplicated classes. If you don't have a
mainTemplate.gradle
, make sure you haveCustom Main Gradle Template
selected in theAndroid Player Settings
, which should create amainTemplate.gradle
inside the Assets/Plugins/Android. Add the following to yourmainTemplate.gradle
to prevent duplicated classes when Unity IAP is targeting the Play Store:
dependencies {
...
// ** ADD THIS **
if (!project(":unityLibrary").fileTree(dir: 'libs', include: ['billing-3*.aar']).isEmpty()) {
configurations.all {
exclude group: 'com.android.billingclient', module: 'billing'
}
}
}
- Perform a Resolve using the editor option
Assets/External Dependency Manager/Android Resolver/Resolve
menu. This will add the right dependencies to themainTemplate.gradle
. YourmainTemplate.gradle
should look like this (there might be more dependencies from other plugins you might use):
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Exclude billing client if it's already in the project
if (!project(":unityLibrary").fileTree(dir: 'libs', include: ['billing-3*.aar']).isEmpty()) {
configurations.all {
exclude group: 'com.android.billingclient', module: 'billing'
}
}
// Android Resolver Dependencies Start
implementation 'androidx.annotation:annotation:[1.2.0]' // Assets/RevenueCat/Plugins/Editor/RevenueCatDependencies.xml:5
implementation 'com.revenuecat.purchases:purchases-hybrid-common:[2.0.0-amazon.alpha.4.billing3.iap2]' // Assets/RevenueCat/Plugins/Editor/RevenueCatDependencies.xml:4
// Android Resolver Dependencies End
**DEPS**}
-
In observer mode, adding the Amazon in-app-purchasing library is not necessary since it will be added by Unity IAP when targeting the Amazon Store
-
Select Use Amazon in the Editor
If calling setup on runtime, you can select “Use Runtime Setup” and call setup this way.
var builder = PurchasesConfiguration.Builder.Init("amazon_specific_api_key")
.SetUseAmazon(true);
purchases.Setup(builder.Build());
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. You can read more about the different testing environments in our Amazon (Beta) docs.
3.5.0
What's Changed
- 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
#71
Full Changelog: 3.4.2...3.5.0
3.4.2
- 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
3.4.1
3.4.0
- Adds iOS promotional offers support
https://github.com/RevenueCat/purchases-unity/RevenueCat/purchases-unity/pull/59
3.3.0
3.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.
#48
Other
- 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
3.2.0
- Added canMakePaymentsMethod (#52)
- Fixed missing meta files for Subtester sample app (#47)
- Bumped purchases-hybrid-common to 1.7.1 Changelog here
- Bumped purchases-ios to 3.11.1 Changelog here
- Bumped purchases-android to 4.2.1 Changelog here