Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
morisgateno-appsflyer authored Jan 7, 2025
1 parent 8b55a38 commit a5a14b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ With the release of AppsFlyer SDK 6.16.0 and Purchase Connector 6.16.0, the Purc

Due to limitations in earlier iOS versions, consumable purchases require manual logging, which is detailed later in this document.

To specify which StoreKit version to use, utilize the setStoreKitVersion: method with the AFSDKStoreKitVersion enum:
To specify which StoreKit version to use, utilize the `setStoreKitVersion:` method with the AFSDKStoreKitVersion enum:
```obj-c
typedef NS_ENUM(NSUInteger, AFSDKStoreKitVersion) {
AFSDKStoreKitVersionSK1 = 0, // StoreKit 1
Expand All @@ -105,6 +105,9 @@ For example, to set StoreKit 2:
```obj-c
[[PurchaseConnector shared] setStoreKitVersion:AFSDKStoreKitVersionSK2];
```
```swift
PurchaseConnector.shared().setStoreKitVersion(.SK2)
```

In addition, the Purchase Connector provides wrapper classes to encapsulate StoreKit 2’s Transaction and Product objects due to Objective-c <> Swift interoperability, allowing for seamless integration with the Purchase Connector.

Expand Down

0 comments on commit a5a14b6

Please sign in to comment.