Skip to content

Commit

Permalink
Release OneTimePassword 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrubin committed Apr 1, 2018
2 parents dc3de62 + 3e1a959 commit eb5be38
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 19 deletions.
1 change: 1 addition & 0 deletions .swiftlint.yml
Expand Up @@ -42,6 +42,7 @@ disabled_rules:
- colon
- comma
- cyclomatic_complexity
- identifier_name

trailing_comma:
mandatory_comma: true
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Expand Up @@ -2,6 +2,11 @@

<!--## [In development][develop]-->

## [3.1.1][] (2018-03-31)
- Add support for Swift 4.1. ([#168](https://github.com/mattrubin/OneTimePassword/pull/168))
- Update build and linter settings for Xcode 9.3. ([#167](https://github.com/mattrubin/OneTimePassword/pull/167))


## [3.1][] (2018-03-27)
- Upgrade to Swift 4 and Xcode 9.
([#147](https://github.com/mattrubin/OneTimePassword/pull/147),
Expand Down Expand Up @@ -143,8 +148,9 @@ Changes between prerelease versions of OneTimePassword version 2 can be found be

## [1.0.0][] (2014-07-17)

[develop]: https://github.com/mattrubin/OneTimePassword/compare/3.1...develop
[develop]: https://github.com/mattrubin/OneTimePassword/compare/3.1.1...develop

[3.1.1]: https://github.com/mattrubin/OneTimePassword/compare/3.1...3.1.1
[3.1]: https://github.com/mattrubin/OneTimePassword/compare/3.0.1...3.1
[3.0.1]: https://github.com/mattrubin/OneTimePassword/compare/3.0...3.0.1
[3.0]: https://github.com/mattrubin/OneTimePassword/compare/2.1.1...3.0
Expand Down
2 changes: 1 addition & 1 deletion OneTimePassword.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "OneTimePassword"
s.version = "3.1"
s.version = "3.1.1"
s.summary = "A small library for generating TOTP and HOTP one-time passwords."
s.homepage = "https://github.com/mattrubin/OneTimePassword"
s.license = "MIT"
Expand Down
5 changes: 4 additions & 1 deletion OneTimePassword.xcodeproj/project.pbxproj
Expand Up @@ -521,7 +521,7 @@
attributes = {
LastSwiftMigration = 0700;
LastSwiftUpdateCheck = 0700;
LastUpgradeCheck = 0900;
LastUpgradeCheck = 0930;
ORGANIZATIONNAME = "Matt Rubin";
TargetAttributes = {
5B39F4931DBD06BA00CD2DAB = {
Expand Down Expand Up @@ -732,6 +732,7 @@
baseConfigurationReference = C996EC2C1A74D5830076B105 /* Debug.xcconfig */;
buildSettings = {
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;
SWIFT_VERSION = 4.0;
WATCHOS_DEPLOYMENT_TARGET = 2.0;
};
Expand All @@ -742,6 +743,8 @@
baseConfigurationReference = C996EC2E1A74D5830076B105 /* Release.xcconfig */;
buildSettings = {
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;
SWIFT_VERSION = 4.0;
WATCHOS_DEPLOYMENT_TARGET = 2.0;
};
Expand Down
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0900"
LastUpgradeVersion = "0930"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,9 +26,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down Expand Up @@ -67,7 +66,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0900"
LastUpgradeVersion = "0930"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,9 +26,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
Expand All @@ -47,7 +46,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
8 changes: 7 additions & 1 deletion Sources/Crypto.swift
Expand Up @@ -30,7 +30,13 @@ func HMAC(algorithm: Generator.Algorithm, key: Data, data: Data) -> Data {
let (hashFunction, hashLength) = algorithm.hashInfo

let macOut = UnsafeMutablePointer<UInt8>.allocate(capacity: hashLength)
defer { macOut.deallocate(capacity: hashLength) }
defer {
#if swift(>=4.1)
macOut.deallocate()
#else
macOut.deallocate(capacity: hashLength)
#endif
}

key.withUnsafeBytes { keyBytes in
data.withUnsafeBytes { dataBytes in
Expand Down
4 changes: 2 additions & 2 deletions Sources/Info.plist
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.1</string>
<string>3.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>3.1</string>
<string>3.1.1</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down
3 changes: 0 additions & 3 deletions Tests/TokenSerializationTests.swift
Expand Up @@ -98,9 +98,6 @@ class TokenSerializationTests: XCTestCase {
let urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)
let items = urlComponents?.queryItems
let expectedItemCount = 4
// SwiftLint gives a false positive here because of a Swift/SourceKit bug.
// See https://github.com/realm/SwiftLint/issues/1785
// swiftlint:disable vertical_parameter_alignment_on_call
XCTAssertEqual(items?.count, expectedItemCount,
"There shouldn't be any unexpected query arguments: \(url)")
// swiftlint:enable vertical_parameter_alignment_on_call
Expand Down

0 comments on commit eb5be38

Please sign in to comment.