فهرست منبع

Swift package manager support

Evgenii Neumerzhitckii 9 سال پیش
والد
کامیت
94a8f9ba3e
3فایلهای تغییر یافته به همراه24 افزوده شده و 1 حذف شده
  1. 5 0
      CHANGELOG.md
  2. 1 1
      KeychainSwift.podspec
  3. 18 0
      README.md

+ 5 - 0
CHANGELOG.md

@@ -1,5 +1,10 @@
 # KeychainSwift version history
 
+## 7.0.0 (2016-10-08)
+
+Swift package manager support ([diogoguimaraes](https://github.com/diogoguimaraes)).
+
+
 ## 6.0.2 (2016-09-11)
 
 Change the `public` access modifier to `open` to allow subclassing of the `KeychainSwift` class and overriding its methods ([djensenius](https://github.com/djensenius)).

+ 1 - 1
KeychainSwift.podspec

@@ -1,6 +1,6 @@
 Pod::Spec.new do |s|
   s.name        = "KeychainSwift"
-  s.version     = "6.0.2"
+  s.version     = "7.0.0"
   s.license     = { :type => "MIT" }
   s.homepage    = "https://github.com/marketplacer/keychain-swift"
   s.summary     = "A library for saving text and data in the Keychain with Swift."

+ 18 - 0
README.md

@@ -51,6 +51,23 @@ If you are using CocoaPods add this text to your Podfile and run `pod install`.
     pod 'KeychainSwift', '~> 6.0'
 
 
+#### Setup with Swift Package Manager
+
+Add the following text to your Package.swift file and run `swift build`.
+
+```Swift
+import PackageDescription
+
+let package = Package(
+    name: "KeychainSwift",
+    dependencies: [
+        .Package(url: "https://github.com/marketplacer/keychain-swift.git",
+                 versions: Version(7,0,0)..<Version(8,0,0))
+    ]
+)
+```
+
+
 ## Legacy Swift versions
 
 Setup a [previous version](https://github.com/marketplacer/keychain-swift/wiki/Legacy-Swift-versions) of the library if you use an older version of Swift.
@@ -220,6 +237,7 @@ Here are some other Keychain libraries.
 ## Thanks 👍
 
 * The code is based on this example: [https://gist.github.com/s-aska/e7ad24175fb7b04f78e7](https://gist.github.com/s-aska/e7ad24175fb7b04f78e7)
+* Thanks to [diogoguimaraes](https://github.com/diogoguimaraes) for adding Swift Package Manager setup option.
 * Thanks to [glyuck](https://github.com/glyuck) for taming booleans.
 * Thanks to [pepibumur](https://github.com/pepibumur) for adding macOS, watchOS and tvOS support.
 * Thanks to [ezura](https://github.com/ezura) for iOS 7 support.