Skip to content

Commit 19bfbbf

Browse files
committed
release v2.1.0
1 parent 9ec28b8 commit 19bfbbf

File tree

9 files changed

+51
-8
lines changed

9 files changed

+51
-8
lines changed

Package.swift

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// swift-tools-version: 5.7
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: "iProovAPIClient",
8+
platforms: [
9+
.iOS(.v13),
10+
],
11+
products: [
12+
.library(
13+
name: "iProovAPIClient",
14+
targets: ["iProovAPIClient"]
15+
),
16+
],
17+
dependencies: [
18+
.package(url: "https://github.com/Alamofire/Alamofire.git", from: "5.0.0"),
19+
],
20+
targets: [
21+
.target(
22+
name: "iProovAPIClient",
23+
dependencies: ["Alamofire"]
24+
),
25+
]
26+
)

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,28 @@ Use of the iOS API Client requires providing it with your API secret. **You shou
1414

1515
## Installation
1616

17-
The iOS API Client is distributed as a Cocoapods dependency. Simply add the following line to your Podfile:
17+
### Swift Package Manager
18+
19+
We recommend the iOS API Client is installed as a Swift Package:
20+
21+
1. Select `File``Add Package Dependencies…` in the Xcode menu bar.
22+
23+
2. Search for the iOS API Client package using the following URL:
24+
25+
```
26+
https://github.com/iProov/ios-api-client
27+
```
28+
29+
3. Set the _Dependency Rule_ to be _Up to Next Major Version_.
30+
31+
4. Click _Add Package_ to add the iOS API Client dependency to your Xcode project and to your app target, and then click again to confirm.
32+
33+
### Cocoapods
34+
35+
The iOS API Client can also be installed as a Cocoapods dependency. Simply add the following line to your Podfile:
1836

1937
```
20-
pod 'iProovAPIClient', :git => 'https://github.com/iProov/ios-api-client.git'
38+
pod 'iProovAPIClient'
2139
```
2240

2341
And then run `pod install`.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
88

99
import Alamofire
10-
import Foundation
10+
import UIKit
1111

1212
typealias JSON = [String: Any]
1313

iProovAPIClient/Classes/MultipartFormData+Append.swift renamed to Sources/iProovAPIClient/MultipartFormData+Append.swift

File renamed without changes.
File renamed without changes.
File renamed without changes.

iProovAPIClient/Classes/ValidationResult.swift renamed to Sources/iProovAPIClient/ValidationResult.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) 2024 iProov Ltd. All rights reserved.
22

3-
import Foundation
3+
import UIKit
44

55
public struct ValidationResult: CustomStringConvertible {
66
public let isPassed: Bool

iProovAPIClient.podspec

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
Pod::Spec.new do |s|
22
s.name = 'iProovAPIClient'
3-
s.version = '2.0.0'
3+
s.version = '2.1.0'
44
s.summary = 'iOS API Client for iProov REST API v2'
55
s.homepage = 'https://github.com/iProov/ios-api-client'
66
s.license = { :type => 'BSD-3', :file => 'LICENSE.md' }
77
s.author = { 'iProov' => '[email protected]' }
88
s.source = { :git => 'https://github.com/iProov/ios-api-client.git', :tag => s.version.to_s }
9-
s.swift_version = '5.5'
9+
s.swift_version = '5.7'
1010
s.ios.deployment_target = '13.0'
11-
s.source_files = 'iProovAPIClient/Classes/**/*'
12-
11+
s.source_files = 'Sources/iProovAPIClient/**/*'
1312
s.dependency 'Alamofire', '~> 5.0'
1413
end

iProovAPIClient/Classes/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)