Bot releases are visible (Hide)
Published by vegaro almost 3 years ago
⚠️ ⚠️ ⚠️
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.
.unitypackage
in the releaseIf 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 have Custom Main Gradle Template
selected in the Android Player Settings
, which should create a mainTemplate.gradle
inside the Assets/Plugins/Android. Add the following to your mainTemplate.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'
}
}
}
Assets/External Dependency Manager/Android Resolver/Resolve
menu. This will add the right dependencies to the mainTemplate.gradle
. Your mainTemplate.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.
Published by aboedo almost 3 years ago
purchases-hybrid-common
to 1.10.0
Changelog here
purchases-ios
to 3.13.0
(Changelog here)purchases-android
to 4.4.0
(Changelog here)setAirshipChannelID
Full Changelog: https://github.com/RevenueCat/purchases-unity/compare/3.4.2...3.5.0
purchases-ios
to 3.12.8purchases-android
to 4.3.3Published by vegaro about 3 years ago
Published by aboedo about 3 years ago
In this version, we’ve redesigned the way that user identification works.
Detailed docs about the new system are available here.
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.LogOut
, a replacement for Reset
.CreateAlias
in favor of LogIn
.Identify
in favor of LogIn
.Reset
in favor of LogOut
.SetAllowSharingStoreAccount
in favor of dashboard-side configuration.Published by beylmk over 3 years ago
Published by aboedo over 3 years ago
purchases-hybrid-common
version being used by the SDK is locked using [x.y.z]
Published by aboedo over 3 years ago
setSimulatesAskToBuyInSandbox
, that allows developers to test deferred purchases easily.Published by vegaro over 3 years ago
.unitypackage
in this releaseIf Package Manager Resolver asks to solve conflicts, choose library versions and select OK
Download the .zip from Amazon and unzip
Drag and drop the Amazon in-app-purchasing library into Assets -> Plugins -> Android
If calling setup on runtime, using Runtime Setup, 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.
Published by aboedo over 3 years ago
milliseconds
to actually have values in seconds.purchases-hybrid-common
to 1.5.1 Changelog here
Published by aboedo almost 4 years ago
MakePurchase
, replaced by PurchaseProduct
syncPurchases
, that enables syncing the purchases in the local receipt with the backend without risking a password prompt. The method was already available on Android.presentCodeRedemptionSheet
, for offer codes redemption.purchases-hybrid-common
to 1.5.0 Changelog here
purchases-ios
to 3.9.2 Changelog here
purchases-android
to 4.0.1 Changelog here
Published by aboedo almost 4 years ago
NonSubscriptionTransactions
in PurchaserInfo
to better manage non-subscriptionsiOS Native SDK Update 3.2.2
Android Native SDK Update 3.1.0