|
10 | 10 | <a href="https://cocoapods.org/pods/UserDefaultsStore"><img src="https://img.shields.io/cocoapods/v/UserDefaultsStore.svg" alt="Cocoapods" /></a>
|
11 | 11 | <a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible" /></a>
|
12 | 12 | <a href="https://swift.org/package-manager/"><img src="https://img.shields.io/badge/SPM-compatible-4BC51D.svg?style=flat" alt="Swift Package Manager compatible" /></a>
|
13 |
| - <a href="https://swift.org"><img src="https://img.shields.io/badge/Swift-4.2-orange.svg" alt="Swift" /></a> |
| 13 | + <a href="https://swift.org"><img src="https://img.shields.io/badge/Swift-5-orange.svg" alt="Swift" /></a> |
14 | 14 | <a href="https://developer.apple.com/xcode"><img src="https://img.shields.io/badge/Xcode-10-blue.svg" alt="Xcode"></a>
|
15 | 15 | <a href="https://github.com/omaralbeik/UserDefaultsStore/blob/master/LICENSE"><img src="https://img.shields.io/badge/License-MIT-red.svg" alt="MIT"></a>
|
16 | 16 | </p>
|
@@ -42,14 +42,27 @@ You love Swift's `Codable` protocol and use it everywhere, who doesn't! Here is
|
42 | 42 | <details>
|
43 | 43 | <summary>Swift Package Manager</summary>
|
44 | 44 | </br>
|
45 |
| -<p>The <a href="https://swift.org/package-manager/">Swift Package Manager</a> is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but UserDefaultsStore does support its use on supported platforms.</p> |
46 |
| -<p>Once you have your Swift package set up, adding UserDefaultsStore as a dependency is as easy as adding it to the dependencies value of your Package.swift.</p> |
| 45 | +<p>You can use <a href="https://swift.org/package-manager">The Swift Package Manager</a> to install <code>UserDefaultsStore</code> by adding the proper description to your <code>Package.swift</code> file:</p> |
47 | 46 |
|
48 | 47 | <pre><code class="swift language-swift">import PackageDescription
|
49 |
| -dependencies: [ |
50 |
| - .package(url: "https://github.com/omaralbeik/UserDefaultsStore.git", from: "1.0.2") |
51 |
| -] |
| 48 | + |
| 49 | +let package = Package( |
| 50 | + name: "YOUR_PROJECT_NAME", |
| 51 | + targets: [], |
| 52 | + dependencies: [ |
| 53 | + .package(url: "https://github.com/omaralbeik/UserDefaultsStore.git", from: "1.4.1") |
| 54 | + ] |
| 55 | +) |
52 | 56 | </code></pre>
|
| 57 | + |
| 58 | +<p>Next, add <code>UserDefaultsStore</code> to your targets dependencies like so:</p> |
| 59 | +<pre><code class="swift language-swift">.target( |
| 60 | + name: "YOUR_TARGET_NAME", |
| 61 | + dependencies: [ |
| 62 | + "UserDefaultsStore", |
| 63 | + ] |
| 64 | +),</code></pre> |
| 65 | +<p>Then run <code>swift package update</code>.</p> |
53 | 66 | </details>
|
54 | 67 |
|
55 | 68 | <details>
|
|
0 commit comments