Files
Pavel Tikhonenko c875e3c381 Update Readme/Docs
2021-05-26 10:05:28 +03:00

986 B

Use TPInAppReceipt in Objective-C project

Installation

CocoaPods

To integrate TPInAppReceipt into your Objective-C project using CocoaPods, specify it in your Podfile:

platform :ios, '9.0'

target 'YOUR_TARGET' do
use_frameworks!

pod 'TPInAppReceipt/Objc'
end

Then, run the following command:

$ pod install

In any swift file you'd like to use TPInAppReceipt, import the framework with @import TPInAppReceipt;.

Swift Package Manager

To integrate using Apple's Swift package manager, add the following as a dependency to your Package.swift:

.package(url: "https://github.com/tikhop/TPInAppReceipt.git", .upToNextMajor(from: "3.0.0"))

Then, specify "TPInAppReceipt-Objc" as a dependency of the Target in which you wish to use TPInAppReceipt.

Lastly, run the following command:

swift package update

Once you are done with SPM, you can import the framework with @import TPInAppReceipt_Objc;.