Skip to main content

Upgrade Guide

Upgrading the iOS SDK from 1.0.7 to 1.0.8#

  • No special steps are required to upgrade to 1.0.8.

Upgrading the iOS SDK from 1.0.5 to 1.0.7#

  • No special steps are required to upgrade to 1.0.7.

Upgrading the iOS SDK from 1.0.4 to 1.0.5#

  • No special steps are required to upgrade to 1.0.5.

Upgrading the iOS SDK from 1.0.3 to 1.0.4#

  • No special steps are required to upgrade to 1.0.4.

Upgrading the iOS SDK from 1.0.2 to 1.0.3#

  • No special steps are required to upgrade to 1.0.3.

Upgrading the iOS SDK from 1.0.1 to 1.0.2#

  • No special steps are required to upgrade to 1.0.2.

Upgrading the iOS SDK from 1.0.0 to 1.0.1#

  • No special steps are required to upgrade to 1.0.1.

Upgrading the iOS SDK from 0.0.9 to 1.0.0#

  • Change pod implementation from 'pod USP' to 'pod appmate'.
  • Change usages of USPClient to PurchaseClient.
  • Change usages of USPError to GenericError.
  • Product.defaultPrice and Product.prices fields are removed. Product.appleActivePriceDetail and Product.applePriceDetails fields are added instead of removed ones. If these new fields are nil, go to product details from console and click the Update button at the end of the page.

Upgrading the iOS SDK from 0.0.8 to 0.0.9#

  • Check usages of PurchaseInfo.renewTime and PurchaseInfo.discountRenewTime. Types of renewTime and discountRenewTime properties in PurchaseInfo changed from String to Int.

Upgrading the iOS SDK from 0.0.7 to 0.0.8#

  • Check usages of PurchaseInfo.inTrialPeriod. Type of the inTrialPeriod is changed from String to Bool.

Upgrading the iOS SDK from 0.0.6 to 0.0.7#

  • USPClient.shared.getUserId method can be called to get active user id.

Upgrading the iOS SDK from 0.0.5 to 0.0.6#

  • Remove setSharedSecret method references if used.
  • Remove unsubsribe method with purchase token parameter references if used.

Upgrading the iOS SDK from 0.0.4 to 0.0.5#

  • No special steps are required to upgrade to 0.0.5.

Upgrading the iOS SDK from 0.0.3 to 0.0.4#

  • No special steps are required to upgrade to 0.0.4.

Upgrading the iOS SDK from 0.0.2 to 0.0.3#

  • UserID relation module is added.
    USPClient.shared.createUserIdRelation(...) method can be called to create relation between active user and a master user.
    USPClient.shared.deleteMasterUserIdRelation(...) method can be called to delete all relations of a master user.
    USPClient.shared.deleteSubUserIdRelation(...) method can be called to delete relation of a user with its master.

Upgrading the iOS SDK from 0.0.1 to 0.0.2#

  • Shared access of USP class is renamed as USPClient. Method calls from USP instance should be renamed as USPClient.
  • Restore method is added. Restore flow can be executed by calling USPClient.shared.restore(...).