Evgenii Neumerzhitckii 9 лет назад
Родитель
Сommit
cc17b81773
3 измененных файлов с 6 добавлено и 7 удалено
  1. 4 0
      CHANGELOG.md
  2. 1 6
      Distrib/KeychainSwiftDistrib.swift
  3. 1 1
      KeychainSwift.podspec

+ 4 - 0
CHANGELOG.md

@@ -1,5 +1,9 @@
 # KeychainSwift version history
 
+## 3.0.12 (2016-04-15)
+
+Added iOS 7 support.
+
 ## 3.0.11 (2016-01-24)
 
 Added methods for setting/getting booleans.

+ 1 - 6
Distrib/KeychainSwiftDistrib.swift

@@ -314,7 +314,6 @@ public enum KeychainSwiftAccessOptions {
   This is recommended for items that only need to be accessible while the application is in the foreground. Items with this attribute never migrate to a new device. After a backup is restored to a new device, these items are missing. No items can be stored in this class on devices without a passcode. Disabling the device passcode causes all items in this class to be deleted.
   
   */
-  @available(iOS 8, *)
   case AccessibleWhenPasscodeSetThisDeviceOnly
   
   /**
@@ -348,11 +347,7 @@ public enum KeychainSwiftAccessOptions {
       return toString(kSecAttrAccessibleAlways)
       
     case .AccessibleWhenPasscodeSetThisDeviceOnly:
-      if #available(iOS 8.0, *) {
-        return toString(kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly)
-      } else {
-        fatalError("'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly' is only available on iOS 8.0 or newer")
-      }
+      return toString(kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly)
       
     case .AccessibleAlwaysThisDeviceOnly:
       return toString(kSecAttrAccessibleAlwaysThisDeviceOnly)

+ 1 - 1
KeychainSwift.podspec

@@ -1,6 +1,6 @@
 Pod::Spec.new do |s|
   s.name        = "KeychainSwift"
-  s.version     = "3.0.11"
+  s.version     = "3.0.12"
   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."