github RevenueCat/purchases-ios 3.12.0

latest releases: 5.51.0, 5.50.1, 5.50.0...
4 years ago

Identity V3:

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 allowSharingAppStoreAccount in favor of dashboard-side configuration

    #453
    #438
    #506

Other changes:

Public additions

SharedPurchases nullability
  • Fixed sharedPurchases nullability
  • Introduced new property, isConfigured, that can be used to check whether the SDK has been configured and sharedPurchases won't be nil.
    #508
Improved log handling
  • Added new property logLevel, which provides more granular settings for the log level. Valid values are debug, info, warn and error.
  • Added new method, setLogHandler, which allows developers to use their own code to handle logging, and integrate their existing systems.
    #481
    #515

Deprecations

  • Deprecated debugLogsEnabled property in favor of LogLevel. Use Purchases.logLevel = .debug as a replacement.

Other

  • Fixed CI issues with creating pull requests
    #504
  • Improved Github Issues bot behavior
    #507
  • Added e-tags to reduce network traffic usage
    #509
  • Fixed a warning in Xcode 13 with an outdated path in Package.swift
    #522
  • Switched to Swift Package Manager for handling dependencies for test targets.
    #527
  • Removed all fatalErrors from the codebase
    #529
    #527
  • Updated link for error message when UserDefaults are deleted outside the SDK
    #531
  • Improved many of the templates and added CODE_OF_CONDUCT.md to make contributing easier
    #534
    #537
    #589

Don't miss a new purchases-ios release

NewReleases is sending notifications on new releases.