Skip to content

Releases: RevenueCat/purchases-unity

3.5.2

08 Mar 19:33
3f69160
Compare
Choose a tag to compare

⚠️ Note: ⚠️
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)

11 Feb 20:36
605a441
Compare
Choose a tag to compare
  • 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

04 Feb 21:12
91b14f5
Compare
Choose a tag to compare
  • 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
  • Bumppurchases-hybrid-common to 2.0.0 Changelog here
  • Bump purchases-ios to 3.14.0 (Changelog here)
  • Bump purchases-android to 4.6.0 (Changelog here)

3.2.0 With Amazon Support (Alpha)

02 Dec 06:06
Compare
Choose a tag to compare
Pre-release

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

Screen Shot 2021-11-24 at 3 55 50 PM

  • Select Purchases_Amazon.unityPackage and make sure all of the files are selected and press import

Screen Shot 2021-11-24 at 3 56 10 PM

  • 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 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'
        }
    }
}
  • Perform a Resolve using the editor option 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

Screen Shot 2021-11-24 at 3 57 01 PM

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

12 Nov 19:25
06fee00
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.4.2...3.5.0

3.4.2

03 Nov 22:16
66c434c
Compare
Choose a tag to compare

3.4.1

27 Aug 23:55
e63fc82
Compare
Choose a tag to compare

3.4.0

20 Aug 07:17
878cfd9
Compare
Choose a tag to compare

3.3.0

21 Jul 19:40
67f2281
Compare
Choose a tag to compare

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 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.
    #48

Other

3.2.0

01 Jul 18:54
23bd3ba
Compare
Choose a tag to compare
  • 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