Skip to content

In-app purchases and subscriptions made easy. Support for iOS, iPadOS, watchOS, and Mac.

License

Notifications You must be signed in to change notification settings

hakan-niflioglu/purchases-ios

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

😻 In-App Subscriptions Made Easy 😻

License Version Version Carthage compatible SwiftPM compatible

Purchases.framework (currently supported)

We're in the process of releasing a new version of the framework, entirely re-written in Swift 🎉. The new framework is called RevenueCat.framework. It's currently in Release Candidate status. If you don't want to stick that close to the bleeding edge, you should use Purchases.framework, which is available in purchases-ios v3.

Migrating from Purchases v3

RevenueCat.framework Release Candidate

Purchases and RevenueCat are clients for the RevenueCat subscription and purchase tracking system.

Purchases is the currently supported, production-ready, open source framework that provides a wrapper around StoreKit and the RevenueCat backend to make implementing in-app subscriptions in Swift or Objective-C easy - receipt validation and status tracking included!

RevenueCat is our next big release (what we've been calling Purchases V4). It is a rename of Purchases to RevenueCat, and now, 100% Swift (while maintaining Objective-C compatibility). It contains all the same functionality (and almost exactly the same API) as Purchases. It's not a brand-new framework, but rather, a migration of the ObjC bits over to Swift with improved nullability, various bug fixes, and some new features. You can see what's changed in the API updates doc.

⚠️ Release Candidate build warning

Are you here because you saw a build warning about being on the RC?

If you're cool being in the RC, there's nothing more for you to do 🎉 If you think you've made a mistake:

Getting out of the RC 😿

Swift package manager

  • First, you'll need to remove the ReveneCat package from your project.
  • Next, re-add it, but make sure you update the package's repo rules to use 3.0.0 < 4.0.0

Cocoapods

  • You need to use Purchases pod instead of RevenueCat

Carthage

  • You need to use github "RevenueCat/purchases-ios" ~> 3.12 in your Cartfile

Direct Integration

After you get out of the RC

Once you revert to version 3 of the framework you'll need to do a reverse migration. While not explicitly outlined in our API updates doc. You can see the differences between v3 and V4. The changes are mostly naming updates, so don't worry about having to refactor things beyond that.

RevenueCat SDK Features

RevenueCat
Server-side receipt validation
➡️ Webhooks - enhanced server-to-server communication with events for purchases, renewals, cancellations, and more
🖥 macOS support
🎯 Subscription status tracking - know whether a user is subscribed whether they're on iOS, Android or web
📊 Analytics - automatic calculation of metrics like conversion, mrr, and churn
📝 Online documentation up to date
🔀 Integrations - over a dozen integrations to easily send purchase data where you need it
💯 Well maintained - frequent releases
📮 Great support - Help Center

Getting Started

For more detailed information, you can view our complete documentation at docs.revenuecat.com.

Or browse our iOS sample apps:

About

In-app purchases and subscriptions made easy. Support for iOS, iPadOS, watchOS, and Mac.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 90.7%
  • Objective-C 7.6%
  • Ruby 1.1%
  • Other 0.6%