-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update for Swift 3 #91
Conversation
Add spaces between parameter names and arguments and remove extra newlines at the beginning of types.
Add code coverage reporting
Updating to recommended xcode 8 project settings
Update SwiftLint configuration
Update the note regarding keychain tests on iOS 10
Maintain one test with Xcode 7.3 and Swift 2.2
Update Travis configuration to use Xcode 8
Update Changelog for 2.0.1
Release OneTimePassword 2.0.1
@@ -89,7 +88,7 @@ public struct Generator: Equatable { | |||
|
|||
// Take 4 bytes from the hash, starting at the given byte offset | |||
let truncatedHashPtr = ptr + Int(offset) | |||
let truncatedHash = UnsafePointer<UInt32>(truncatedHashPtr).pointee | |||
let truncatedHash = truncatedHashPtr.withMemoryRebound(to: UInt32.self, capacity: 1, { $0.pointee }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 100 characters or less: currently 112 characters (line_length)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 4b6b8df
Current coverage is 91.64% (diff: 100%)
|
Merge in the latest changes from the Swift 2.3 branch, and update the code for compatibility with the Swift 3.0 release.
Fixes #85