Skip to content

Commit 0feacca

Browse files
authored
Merge pull request #27 from andschdk/andre/spm-support
Added Swift Package Manager support.
2 parents 5474216 + 5c10b9f commit 0feacca

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ DerivedData
1717
*.ipa
1818
*.xcuserstate
1919

20+
# Swift Package Manager
21+
#
22+
.build/
23+
Packages/
24+
.swiftpm
25+
2026
# CocoaPods
2127
#
2228
# We recommend against adding the Pods directory to your .gitignore. However

Package.swift

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// swift-tools-version:5.3
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: "FCUUID",
8+
platforms: [.iOS(.v8)],
9+
products: [
10+
.library(
11+
name: "FCUUID",
12+
targets: ["FCUUID"]),
13+
],
14+
dependencies: [
15+
.package(url: "https://github.com/kishikawakatsumi/UICKeyChainStore", .upToNextMajor(from: "2.2.1")),
16+
],
17+
targets: [
18+
.target(
19+
name: "FCUUID",
20+
dependencies: ["UICKeyChainStore"],
21+
path: ".",
22+
exclude: ["FCUUID.podspec", "LICENSE", "README.md"],
23+
sources: ["FCUUID"],
24+
resources: nil,
25+
publicHeadersPath: "FCUUID/"
26+
)
27+
]
28+
)

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ It's possible to retrieve the **UUIDs created for all devices of the same user**
1919
#### CocoaPods:
2020
`pod 'FCUUID'`
2121

22+
#### [Swift Package Manager](https://github.com/apple/swift-package-manager):
23+
1. File > Swift Packages > Add Package Dependency
24+
2. Add https://github.com/fabiocaccamo/FCUUID
25+
3. Select "Up to Next Major" with "1.0.0"
26+
2227
#### Manual install:
2328
- Copy `FCUUID` folder to your project.
2429
- Manual install [UICKeyChainStore](https://github.com/kishikawakatsumi/UICKeyChainStore)

0 commit comments

Comments
 (0)