purchases-unity

Unity in-app purchases and subscriptions made easy.

MIT License

Stars
91
Committers
20

Bot releases are visible (Hide)

purchases-unity - 7.1.1

Published by RCGitBot about 1 month ago

RevenueCat SDK

📦 Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 13.2.1 (#504) via RevenueCat Git Bot (@RCGitBot)
  • Bump rexml from 3.3.3 to 3.3.6 (#496) via dependabot[bot] (@dependabot[bot])

🔄 Other Changes

  • Bump fastlane-plugin-revenuecat_internal from 5140dbc to 55a0455 (#505) via Cesar de la Vega (@vegaro)
  • Update allowSharingAppStoreAccount Deprecation Message (#503) via Will Taylor (@fire-at-will)
  • Update fastlane-plugin-revenuecat_internal (#501) via Cesar de la Vega (@vegaro)
  • Update VERSIONS.md to remove compatibility with Unity IAP for BC7 (#500) via Cesar de la Vega (@vegaro)
  • [PurchaseTester] Add button to test the GetAmazonLWAConsentStatus method (#498) via Mark Villacampa (@MarkVillacampa)
purchases-unity - 7.1.0 Latest Release

Published by RCGitBot 2 months ago

New Features

  • Add SyncPurchases method overload that accepts a callback as parameter (#493) via Mark Villacampa (@MarkVillacampa)

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 13.0.1 (#491) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 7.0.0

Published by RCGitBot 2 months ago

This latest release updates the Android SDK dependency from v7 to v8 to use BillingClient 7 and updates the iOS SDK dependency from v4 to v5 to use StoreKit 2 by default in the SDK.

Migration Guides

New Minimum OS Versions

This release raises the minumum required OS versions to the following:

  • iOS 13.0
  • tvOS 13.0
  • watchOS 6.2
  • macOS 10.15
  • Android: SDK 21 (Android 5.0)

In-App Purchase Key Required for StoreKit 2

In order to use StoreKit 2, you must configure your In-App Purchase Key in the RevenueCat dashboard. You can find instructions describing how to do this here.

usesStoreKit2IfAvailable is now storeKitVersion

When configuring the SDK, the usesStoreKit2IfAvailable parameter has been replaced by an optional storeKitVersion parameter. It defaults to letting the iOS SDK determine the most appropriate version of StoreKit at runtime. If you'd like to use a specific version of StoreKit, you may provide a value for storeKitVersion like so:

Purchases purchases = GetComponent<Purchases>();
Purchases.PurchasesConfiguration purchasesConfiguration =
    Purchases.PurchasesConfiguration.Builder.Init("api_key")
    .SetStoreKitVersion(Purchases.StoreKitVersion.StoreKit2)
    .Build();
purchases.Configure(purchasesConfiguration);

Observer Mode is now PurchasesAreCompletedBy

Version 7.0 of the SDK deprecates the term "Observer Mode" (and the APIs where this term was used), and replaces it with PurchasesAreCompletedBy (either RevenueCat or your app). When specifying that your app will complete purchases, you must provide the StoreKit version that your app is using to make purchases on iOS. If your app is only available on Android, you may provide any value since the native Android SDK ignores this value.

You can enable it when configuring the SDK:

Purchases purchases = GetComponent<Purchases>();
Purchases.PurchasesConfiguration purchasesConfiguration =
    Purchases.PurchasesConfiguration.Builder.Init("api_key")
    .SetPurchasesAreCompletedBy(Purchases.PurchasesAreCompletedBy.MyApp, Purchases.StoreKitVersion.StoreKit2)
    .Build();
purchases.Configure(purchasesConfiguration);

⚠️ Observing Purchases Completed by Your App on macOS

By default, when purchases are completed by your app using StoreKit 2 on macOS, the SDK does not detect a user's purchase until after the user foregrounds the app after the purchase has been made. If you'd like RevenueCat to immediately detect the user's purchase, call Purchases.recordPurchase(productID) for any new purchases, like so:

Purchases purchases = GetComponent<Purchases>();
purchases.recordPurchase(productID, (transaction, error) => { ... });

Observing Purchases Completed by Your App with StoreKit 1

If purchases are completed by your app using StoreKit 1, you will need to explicitly configure the SDK to use StoreKit 1:

Purchases purchases = GetComponent<Purchases>();
Purchases.PurchasesConfiguration purchasesConfiguration =
    Purchases.PurchasesConfiguration.Builder.Init("api_key")
    .SetPurchasesAreCompletedBy(Purchases.PurchasesAreCompletedBy.MyApp, Purchases.StoreKitVersion.StoreKit1)
    .Build();
purchases.Configure(purchasesConfiguration);

Full migration guide to V7: Unity - V7 API Migration Guide

New Features

  • Amazon: Add getAmazonLWAConsentStatus method to support Quick Subscribe (#442) via Mark Villacampa (@MarkVillacampa)

Dependency Updates

  • Bump rexml from 3.2.9 to 3.3.3 (#486) via dependabot[bot] (@dependabot[bot])
  • Bump danger from 9.4.3 to 9.5.0 (#487) via dependabot[bot] (@dependabot[bot])
  • Bump fastlane from 2.221.1 to 2.222.0 (#480) via dependabot[bot] (@dependabot[bot])
  • Update VERSIONS.md to include Billing client version and update fastlane plugin (#476) via Toni Rico (@tonidero)

Other Changes

  • Fix Gemfile.lock with new fastlane plugin dependencies (#479) via Toni Rico (@tonidero)
  • Update Unity IAP compatiiblity (#475) via Andy Boedo (@aboedo)
purchases-unity - 6.10.0

Published by RCGitBot 4 months ago

New Features

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 11.0.0 (#470) via RevenueCat Git Bot (@RCGitBot)
  • Bump fastlane from 2.221.0 to 2.221.1 (#468) via dependabot[bot] (@dependabot[bot])
  • Bump fastlane from 2.220.0 to 2.221.0 (#466) via dependabot[bot] (@dependabot[bot])
purchases-unity - 6.9.7

Published by RCGitBot 4 months ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.9.0 (#464) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 6.9.6

Published by RCGitBot 5 months ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.8.0 (#462) via RevenueCat Git Bot (@RCGitBot)
  • Bump rexml from 3.2.6 to 3.2.8 (#459) via dependabot[bot] (@dependabot[bot])
purchases-unity - 6.9.5

Published by RCGitBot 6 months ago

Dependency Updates

Other Changes

  • Remove outdated Amazon note in README (#449) via Toni Rico (@tonidero)
purchases-unity - 5.3.3

Published by RCGitBot 6 months ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 6.3.2 (#1008) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 6.9.4

Published by RCGitBot 6 months ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.4.1 (#446) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 6.9.3

Published by RCGitBot 6 months ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.4.0 (#444) via RevenueCat Git Bot (@RCGitBot)
  • Bump fastlane from 2.219.0 to 2.220.0 (#443) via dependabot[bot] (@dependabot[bot])
purchases-unity - 6.9.2

Published by RCGitBot 7 months ago

Dependency Updates

purchases-unity - 6.9.1

Published by RCGitBot 7 months ago

Bugfixes

  • Fix purchasePackage when no targeting context (#438) via Josh Holtz (@joshdholtz)
purchases-unity - 6.9.0

Published by RCGitBot 7 months ago

Dependency Updates

Other Changes

  • Update CHANGELOG to include 5.3.2 release notes (#416) via Toni Rico (@tonidero)
purchases-unity - 6.8.4

Published by RCGitBot 8 months ago

Dependency Updates

purchases-unity - 6.8.3

Published by RCGitBot 8 months ago

Bugfixes

  • Make CustomerInfo allPurchaseDates values nullable (#423) via Toni Rico (@tonidero)

Dependency Updates

purchases-unity - 6.8.2

Published by RCGitBot 8 months ago

Bugfixes

  • Fix setMixpanelDistinctID setter (#419) via Toni Rico (@tonidero)

Dependency Updates

purchases-unity - 5.3.2

Published by RCGitBot 9 months ago

Dependency Updates

  • Bump PHC 6.3.1 (#411) via Toni Rico (@tonidero)
purchases-unity - 6.8.1

Published by RCGitBot 9 months ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 9.6.0 (#413) via RevenueCat Git Bot (@RCGitBot)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 9.5.0 (#412) via RevenueCat Git Bot (@RCGitBot)
  • Bump danger from 9.4.2 to 9.4.3 (#409) via dependabot[bot] (@dependabot[bot])
purchases-unity - 6.8.0

Published by RCGitBot 9 months ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 9.3.0 (#405) via RevenueCat Git Bot (@RCGitBot)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 9.2.1 (#404) via RevenueCat Git Bot (@RCGitBot)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 9.2.0 (#403) via RevenueCat Git Bot (@RCGitBot)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 9.1.0 (#402) via RevenueCat Git Bot (@RCGitBot)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 9.0.1 (#401) via RevenueCat Git Bot (@RCGitBot)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 9.0.0 (#400) via RevenueCat Git Bot (@RCGitBot)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 8.12.0 (#399) via RevenueCat Git Bot (@RCGitBot)
  • Bump fastlane from 2.218.0 to 2.219.0 (#394) via dependabot[bot] (@dependabot[bot])
  • Bump fastlane from 2.217.0 to 2.218.0 (#392) via dependabot[bot] (@dependabot[bot])

Other Changes

  • Update fastlane-plugin-revenuecat_internal (#406) via NachoSoto (@NachoSoto)
purchases-unity - 6.7.0

Published by RCGitBot 10 months ago

Dependency Updates

Badges
Extracted from project README
openupm
Related Projects