Skip to content

Commit

Permalink
Merge pull request #27 from andschdk/andre/spm-support
Browse files Browse the repository at this point in the history
Added Swift Package Manager support.
  • Loading branch information
fabiocaccamo authored Feb 26, 2021
2 parents 5474216 + 5c10b9f commit 0feacca
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ DerivedData
*.ipa
*.xcuserstate

# Swift Package Manager
#
.build/
Packages/
.swiftpm

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
Expand Down
28 changes: 28 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "FCUUID",
platforms: [.iOS(.v8)],
products: [
.library(
name: "FCUUID",
targets: ["FCUUID"]),
],
dependencies: [
.package(url: "https://github.com/kishikawakatsumi/UICKeyChainStore", .upToNextMajor(from: "2.2.1")),
],
targets: [
.target(
name: "FCUUID",
dependencies: ["UICKeyChainStore"],
path: ".",
exclude: ["FCUUID.podspec", "LICENSE", "README.md"],
sources: ["FCUUID"],
resources: nil,
publicHeadersPath: "FCUUID/"
)
]
)
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ It's possible to retrieve the **UUIDs created for all devices of the same user**
#### CocoaPods:
`pod 'FCUUID'`

#### [Swift Package Manager](https://github.com/apple/swift-package-manager):
1. File > Swift Packages > Add Package Dependency
2. Add https://github.com/fabiocaccamo/FCUUID
3. Select "Up to Next Major" with "1.0.0"

#### Manual install:
- Copy `FCUUID` folder to your project.
- Manual install [UICKeyChainStore](https://github.com/kishikawakatsumi/UICKeyChainStore)
Expand Down

0 comments on commit 0feacca

Please sign in to comment.