Переглянути джерело

Fixes #227. Update README for RNCryptor 5

Rob Napier 7 роки тому
батько
коміт
cbbac21a0b
1 змінених файлів з 5 додано та 7 видалено
  1. 5 7
      README.md

+ 5 - 7
README.md

@@ -156,13 +156,11 @@ Most RNCryptor symbols are nested inside an `RNCryptor` namespace.
 
 ### Requirements
 
-RNCryptor 4 is written in Swift 2, so requires Xcode 7, and can target iOS 7 or later (iOS 8 or later if used as a framework), and OS X 10.9 or later. If you want a pure ObjC implementation that supports older versions of iOS and OS X, see [RNCryptor 3](https://github.com/RNCryptor/RNCryptor/releases/tag/RNCryptor-3.0.1).
+RNCryptor 5 is written in Swift 3 and does not bridge to Objective-C (it includes features that are not available). If you want an ObjC implementation, see [RNCryptor-objc](https://github.com/RNCryptor/RNCryptor-objc). That version can be accessed from Swift, or both versions can coexist in the same project.
 
 ### The Bridging Header
 
-CommonCrypto is not a modular header in Xcode 7. This makes it very challenging to import into Swift. To work around this, the necessary header files have been copied into `RNCryptor.h`, which needs to be bridged into Swift. You can do this either by using RNCryptor as a framework, adding `#import "RNCryptor/RNCryptor.h"` to your existing bridging header, or making `RNCryptor/RNCryptor.h` your bridging header in Build Settings, "Objective-C Bridging Header."
-
-Hopefully Apple will [make CommonCrypto a modular header soon](http://www.openradar.me/22965816). When this happens, the bridging header will not be needed, and RNCryptor will be a single file.
+CommonCrypto is not a modular header (and Apple has suggested it may never be). This makes it very challenging to import into Swift. To work around this, the necessary header files have been copied into `RNCryptor.h`, which needs to be bridged into Swift. You can do this either by using RNCryptor as a framework, adding `#import "RNCryptor/RNCryptor.h"` to your existing bridging header, or making `RNCryptor/RNCryptor.h` your bridging header in Build Settings, "Objective-C Bridging Header."
 
 ### Installing Manually
 
@@ -182,7 +180,7 @@ Built this way, you don't need to (and can't) `import RNCryptor` into your code.
 
 ### [Carthage](https://github.com/Carthage/Carthage)
 
-    github "RNCryptor/RNCryptor" "RNCryptor-4.0.0"
+    github "RNCryptor/RNCryptor" ~> 5.0
 
 This approach will not work for OS X commandline apps. Don't forget to embed `RNCryptor.framework`. 
 
@@ -192,11 +190,11 @@ This approach will not work for OS X commandline apps.
 
 ### [CocoaPods](https://cocoapods.org)
 
-    pod 'RNCryptor', '~> 4.0.0-beta'
+    pod 'RNCryptor', '~> 5.0'
 
 This approach will not work for OS X commandline apps.
 
-Built this way, you should add `@import RNCryptor;` to your ObjC or `import RNCryptor` to your Swift code.
+Built this way, you should add `import RNCryptor` to your Swift code.
 
 ## Advanced Usage