Skip to content

Commit a1411b6

Browse files
Added Support for SPM in v1.0.1
1 parent 8682f42 commit a1411b6

File tree

2 files changed

+37
-15
lines changed

2 files changed

+37
-15
lines changed

Package.swift

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// swift-tools-version: 6.0
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "ZSInAppPurchaseKit",
8+
platforms: [
9+
.iOS(.v15)
10+
],
11+
products: [
12+
// Products define the executables and libraries a package produces, making them visible to other packages.
13+
.library(
14+
name: "ZSInAppPurchaseKit",
15+
targets: ["ZSInAppPurchaseKit"]),
16+
],
17+
targets: [
18+
.binaryTarget(
19+
name: "ZSInAppPurchaseKit",
20+
path: "ZSInAppPurchaseKit.xcframework"),
21+
22+
]
23+
)

README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,33 @@
33
# ZSInAppPurchaseKit
44
Get a unified view of your subscription business and related metrics by syncing your subscription data from various sources like Apple App Store, Google Play Store and your website.
55

6-
Zoho Subscriptions is a recurring billing platform that helps you manage customer subscriptions and subscription-related finances.
6+
Zoho Billing is a recurring billing platform that helps you manage customer subscriptions and subscription-related finances.
77

8-
You can bundle our SDK with your Android and iOS apps. The SDK's will facilitate purchase with the respective app stores. Any new purchase or changes to existing subscription will be automatically synced to your Zoho Subscriptions organisation and will reflect in your metrics.
8+
You can bundle our SDK with your Android and iOS apps. The SDK's will facilitate purchase with the respective app stores. Any new purchase or changes to existing subscription will be automatically synced to your Zoho Billing organisation and will reflect in your metrics.
99

1010
Installation
1111
--
1212

13-
**CocoaPods**
13+
**Swift Package Manager**
1414

15-
To install ZSInAppPurchaseKit in your XCode project using cocoapods, add the below lines in your Podfile.
15+
To install ZSInAppPurchaseKit in your Xcode project using SPM, follow the below steps.
1616

17-
```
18-
use_frameworks!
1917

20-
target '<YOUR_TARGET>' do
21-
pod 'ZSInAppPurchaseKit', '1.0.1-beta01'
22-
end
23-
```
18+
- File > Swift Packages > Add Package Dependency...
2419

25-
Then run pod install command in terminal from your project directory.
20+
- Enter this [repo url](https://github.com/zoho/ZSInAppPurchaseKit.git) in the search box.
2621

27-
```
28-
$ pod install
22+
- Select the version as your requirement and select "Add Package".
23+
24+
Then import the package to your project files.
25+
26+
```swift
27+
import ZSInAppPurchaseKit
2928
```
3029

3130
**ZSInAppPurchaseKit.xcframework**
3231

33-
If you are not using Coocapods in your project you can download and add our [ZSInAppPurchaseKit.xcframework](https://github.com/zoho/ZSInAppPurchaseKit/releases/download/1.0.1-beta01/ZSInAppPurchaseKit.xcframework.zip) in to your project.
32+
If you are not using SPM in your project you can download and add our [ZSInAppPurchaseKit.xcframework](https://github.com/zoho/ZSInAppPurchaseKit/tree/master/ZSInAppPurchaseKit.xcframework) directly in to your project.
3433

3534
---
3635

@@ -41,7 +40,7 @@ Implementation
4140
**Initalization**
4241

4342
```
44-
let zsConfiguration = ZSConfiguration(apiKey: YOUR_API_KEY, zsProductId: YOUR_PRODUCT_ID, domain: DOMAIN)
43+
let zsConfiguration = ZSConfiguration(apiKey: YOUR_API_KEY, zsProductId: YOUR_PRODUCT_ID, domain: DOMAIN)
4544
zsConfiguration.setUserInfo(userId: APP_USER_ID, email: APP_USER_EMAIL, displayName: APP_USER_DISPLAY_NAME)
4645
ZSKit.initialize(with: zsConfiguration)
4746
```

0 commit comments

Comments
 (0)