Swiftpack.co - Package - RevenueCat/purchases-ios

RevenueCat

😻 In-app Subscriptions Made Easy 😻

License Version Carthage compatible SwiftPM compatible

Purchases.framework

Purchases is a client for the RevenueCat subscription and purchase tracking system. It is an 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!

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.

Github

link
Stars: 286

Used By

Total: 0

Releases

3.3.1 - 2020-05-14 17:46:18

3.3.1

  • Fixed version numbers that accidentally included the -SNAPSHOT suffix

3.3.0 - 2020-05-13 20:12:27

3.3.0

  • Reorganized file system structure for the project https://github.com/RevenueCat/purchases-ios/pull/242
  • New headers for observer mode and platform version https://github.com/RevenueCat/purchases-ios/pull/237 https://github.com/RevenueCat/purchases-ios/pull/240 https://github.com/RevenueCat/purchases-ios/pull/241
  • Fixes subscriber attributes migration edge cases https://github.com/RevenueCat/purchases-ios/pull/233
  • Autodetect appUserID deletion https://github.com/RevenueCat/purchases-ios/pull/232 https://github.com/RevenueCat/purchases-ios/pull/236
  • Removes old trello link https://github.com/RevenueCat/purchases-ios/pull/231
  • Removes unused functions https://github.com/RevenueCat/purchases-ios/pull/228
  • Removes unnecessary no-op call to RCBackend's postSubscriberAttributes https://github.com/RevenueCat/purchases-ios/pull/227
  • Fixes a bug where subscriber attributes are deleted when an alias is created. https://github.com/RevenueCat/purchases-ios/pull/222
  • Fixes crash when payment.productIdentifier is nil https://github.com/RevenueCat/purchases-ios/pull/226
  • Updates invalidatePurchaserInfoCache docs https://github.com/RevenueCat/purchases-ios/pull/223

3.2.2 - 2020-04-01 20:20:33

3.2.2

  • Fixed build warnings about nil being passed to callees that require non-null parameters https://github.com/RevenueCat/purchases-ios/pull/216

3.2.1 - 2020-03-25 22:05:31

3.2.1

  • Fixed build warnings on tvOS and API availability checks https://github.com/RevenueCat/purchases-ios/pull/212

3.1.2 - 2020-03-20 18:56:32

3.1.2

  • Added an extra method, setPushTokenString, to be used by multi-platform SDKs that don't have direct access to the push token as NSData *, but rather as NSString *. https://github.com/RevenueCat/purchases-ios/pull/208

3.1.1 - 2020-03-17 23:29:03

3.1.1

  • small fixes to docs and release scripts:

    • the release script was referencing a fastlane lane that was under the group ios, so it needs to be called with ios first
    • the docs for setPushToken in RCPurchases.m say to pass an empty string or nil to erase data, however since the param is of type NSData, you can't pass in an empty string.

    https://github.com/RevenueCat/purchases-ios/pull/203

3.1.0 - 2020-03-16 23:40:38

3.1.0

  • Added Subscriber Attributes, which allow developers to store additional, structured information for a user in RevenueCat. More info: https://docs.revenuecat.com/docs/user-attributes. https://github.com/RevenueCat/purchases-ios/pull/196
  • Fixed an issue where the completion block of purchaserInfoWithCompletion would get called more than once if cached information existed and was stale. https://github.com/RevenueCat/purchases-ios/pull/199
  • Exposed original_purchase_date, which can be useful for migrating data for developers who don't increment the build number on every release and therefore can't rely on it being different on all releases.
  • Addressed a couple of build warnings: https://github.com/RevenueCat/purchases-ios/pull/200

3.0.4 - 2020-02-13 19:51:44

3.0.4

  • Fixed an issue where Swift Package Manager didn't pick up the new Caching group from 3.0.3 https://github.com/RevenueCat/purchases-ios/issues/176

3.0.3 - 2020-02-13 21:07:30

3.0.3

  • Added new method to invalidate the purchaser info cache, useful when promotional purchases are granted from outside the app. https://github.com/RevenueCat/purchases-ios/pull/168
  • Made sure we dispatch offerings, and purchaser info https://github.com/RevenueCat/purchases-ios/pull/146

3.0.2 - 2020-01-20 19:40:27

Fixes an issue where Apple Search Ads attribution information would be sent even if the user hadn't clicked on a search ad.

- 2019-12-17 22:01:33

  • Adds observer_mode to the backend post receipt call.

3.0.0 - 2019-11-13 19:17:17

  • Support for new Offerings system.
  • Deprecates makePurchase methods. Replaces with purchasePackage
  • Deprecates entitlements method. Replaces with offerings
  • See our migration guide for more info: https://docs.revenuecat.com/v3.0/docs/offerings-migration
  • Added Purchases. prefix to Swift classes to avoid conflicts https://github.com/RevenueCat/purchases-ios/issues/131
  • Enabled base internationalisation to silence a warning (#119)
  • Migrates tests to Swift 5 (#138)
  • New identity changes (#133):
    • The .createAlias() method is no longer required, use .identify() instead
    • .identify() will create an alias if being called from an anonymous ID generated by RevenueCat
    • Added an isAnonymous property to Purchases.shared
    • Improved offline use

2.6.1 - 2019-11-05 22:19:39

  • Support for Swift Package Manager
  • Adds a conditional to protect against nil products or productIdentifier (https://github.com/RevenueCat/purchases-ios/pull/129)

3.0.0 Beta 3 - 2019-10-31 23:48:58

  • Enabled base internationalisation to silence a warning (#119)
  • Migrates tests to Swift 5 (#138)
  • New identity changes (#133):
    • The .createAlias() method is no longer required, use .identify() instead
    • .identify() will create an alias if being called from an anonymous ID generated by RevenueCat
    • Added an isAnonymous property to Purchases.shared
    • Improved offline use

3.0.0 Beta 2 - 2019-10-25 20:43:00

  • Fixes crash when there is a transaction in the queue that refers to a removed product https://github.com/RevenueCat/purchases-ios/issues/135
  • All offerings can be accessed by doing offerings.all on an RCOfferings object https://github.com/RevenueCat/purchases-ios/pull/137
  • Added Purchases. prefix to Swift classes to avoid conflicts https://github.com/RevenueCat/purchases-ios/issues/131

3.0.0 Beta - 2019-09-27 23:09:06

  • Support for new Offerings system, currently invite only. Email support@revenuecat.com if interested in access.
  • Deprecates makePurchase methods. Replaces with purchasePackage
  • Deprecates entitlements method. Replaces with offerings
  • See our migration guide for more info: https://docs.revenuecat.com/v3.0/docs/offerings-migration

2.6.0 - 2019-08-21 00:13:54

  • Deprecates activeEntitlements in RCPurchaserInfo and adds entitlements object to RCPurchaserInfo. For more info check out https://docs.revenuecat.com/docs/purchaserinfo

2.5.0 - 2019-07-17 22:44:00

  • BREAKING CHANGE: fixed a typo in addAttributionData Swift's name.
  • Error logs for AppsFlyer if using deprecated rc_appsflyer_id
  • Error logs for AppsFlyer if missing networkUserID

2.4.0 - 2019-07-10 21:16:48

  • BUGFIX: userId parameter in identify is not nullable anymore.
  • DEPRECATION: automaticAttributionCollection is now deprecated in favor of automaticAppleSearchAdsAttributionCollection since it's a more clear name.
  • NEW FEATURE: UIKitForMac support.
  • NEW FEATURE: Facebook Ads Attribution support https://docs.revenuecat.com/docs/facebook-ads.

https://github.com/RevenueCat/purchases-ios/milestone/1

2.3.0 - 2019-05-15 01:12:20

  • addAttribution is now a class method that can be called before the SDK is configured.
  • addAttribution will automatically add the rc_idfa and rc_idfv parameters if the AdSupport and UIKit frameworks are included, respectively.
  • A network user identifier can be send to the addAttribution function, replacing the previous rc_appsflyer_id parameter.
  • Apple Search Ad attribution can be automatically collected by setting the automaticAttributionCollection boolean to true before the SDK is configured.
  • Adds an optional configuration boolean observerMode. This will set the value of finishTransactions at configuration time.
  • Header updates to include client version which will be used for debugging and reporting in the future.

2.2.0 - 2019-04-26 20:11:12

  • Adds subscription offers

2.1.1 - 2019-04-16 00:19:28

  • Avoid refreshing receipt every time restore is called

2.1.0 - 2019-04-04 22:56:07

  • BREAKING CHANGE Adds userCancelled as a parameter to the completion block of the makePurchase function.
  • Better error codes.
  • Adds canMakePayments class method to check if the device can make payments

2.1.0-rc1 - 2019-03-25 22:21:57

  • BREAKING CHANGE Adds userCancelled as a parameter to the completion block of the makePurchase function.
  • Better error codes.

2.0.0 - 2019-01-31 23:20:17

  • Refactor to all block based methods
  • Optional delegate method to receive changes in Purchaser Info
  • Ability to turn on detailed logging by setting debugLogsEnabled

2.0.0-rc1 - 2019-01-15 19:36:30

  • Refactor to all block based methods
  • Optional delegate method to receive changes in Purchaser Info
  • Ability to turn on detailed logging by setting debugLogsEnabled

1.2.1 - 2019-01-08 01:12:54

  • Adds Tenjin support

1.2.0 - 2018-11-28 01:39:52

  • Singleton management handled by the SDK
  • Adds reset, identify and create alias calls

1.2.0-rc2 - 2018-11-21 02:41:56

  • Fixed an issue with aliasing. If no completion block was passed, the new app user id was actually the existing one, so no aliasing was happening.
  • Refreshes caches after identify and reset and makes sure the updated Purchaser info listener gets called.

1.2.0-rc1 - 2018-11-16 01:12:00