174 Commits

Author SHA1 Message Date
Matt Rubin 42964a4aea Fix SwiftLint violations 2024-08-18 15:05:21 -04:00
Matt Rubin 0254da27aa Refactor HMAC generation into Generator
Now that the code required is much simpler, there's no need for a separate file.
2022-12-28 16:52:42 -05:00
Matt Rubin a09ee52207 Refactor HMAC generation to avoid code repetition 2022-12-28 16:52:42 -05:00
Matt Rubin 81a8e9ba17 Bump the version number to 4.0
The upcoming release will include source-breaking changes.
2022-12-28 14:41:25 -05:00
Matt Rubin b526f18b7c Improve doc comment for Token(url㊙️) 2022-12-28 13:35:28 -05:00
Matt Rubin 7471afc7a5 Improve doc comment for Generator's throwing initializer 2022-12-28 13:01:59 -05:00
Matt Rubin 160d90d118 Merge develop into throwing-initializers 2022-12-28 12:30:18 -05:00
Matt Rubin 70464123c6 [Lint] Prefer Self in static references
The `prefer_self_in_static_references` rule can't be enabled because it also triggers on constructor calls.
2022-12-23 01:47:14 -05:00
Matt Rubin a60e7e40e2 Remove CommonCrypto fallbacks for HMAC generation 2022-06-07 00:52:08 -04:00
Matt Rubin ef50465248 Simplify the conversion from HashedAuthenticationCode to Data 2022-06-07 00:21:00 -04:00
Matt Rubin 0e6c8c96a8 Delete pre-Swift 5.0 code paths
The codebase no longer supports compiling with Swift 4.2
2021-04-29 21:12:33 -04:00
Matt Rubin a8ed44a25a Require a version of Xcode (11+) that can import CryptoKit
The CryptoKit library was introduced with iOS 13, so every version of Xcode with the iOS 13+ SDK (Xcode 11+) can build code that imports CryptoKit. This change doesn't affect OneTimePassword's runtime support for earlier iOS versions, because the runtime check and CommonCrypto fallback remain.
2021-04-29 21:10:49 -04:00
Matt Rubin 7af91b9548 Merge pull request #214 from ericlewis/feature/update-to-use-cryptokit
Use CryptoKit
2019-09-21 10:45:26 -07:00
Matt Rubin 224ca8c18f Bump the version number to 3.2.0 2019-09-18 12:33:09 -04:00
Matt Rubin 4e1960caed Refactor CommonCrypto/CryptoKit code to have a single HMAC() declaration 2019-09-17 22:02:40 -04:00
Matt Rubin bd5c12d585 Merge develop into CryptoKit 2019-09-17 22:02:32 -04:00
ericlewis 0426aa16f7 better legacy handling 2019-09-16 15:43:32 -04:00
ericlewis cb7b9e6a12 canimport check 2019-09-16 15:34:19 -04:00
ericlewis b22993a3ca Use CryptoKit 2019-09-16 15:24:34 -04:00
Gereon Steffens cb145c06bc Swift 5 compatibility 2019-05-24 17:03:06 +02:00
Matt Rubin 0f8d2caf2b Delete unnecessary framework umbrella header 2019-04-27 12:10:33 -04:00
Matt Rubin d457189307 Update license copyright dates 2019-04-27 12:06:21 -04:00
Matt Rubin 1fa793569c Merge develop into throwing-initializers 2019-04-27 01:40:04 -04:00
Matt Rubin 7f16ee8835 Update PersistentToken's Hashable conformance 2018-09-18 20:52:33 -04:00
Matt Rubin 9f1f74f5f7 Update standard library API usage for post-Swift 4.1 2018-09-18 20:52:33 -04:00
Matt Rubin 09c601d6bc Remove manual Equatable implementations
As of Swift 4.1, these will be synthesized automatically.
2018-09-18 20:52:33 -04:00
Matt Rubin 6d2f4f0da9 Remove the CommonCrypto shim
As of Xcode 10, the custom module maps are no longer needed.
2018-09-18 20:52:33 -04:00
Matt Rubin 034421536b Bump the version number to 3.1.5 2018-09-18 12:58:14 -04:00
Matt Rubin ccc9bd7d52 Bump the version number to 3.1.4 2018-09-15 20:13:25 -04:00
Matt Rubin 97736ff83a [Lint] Clean up whitespace around colons 2018-09-14 16:55:17 -04:00
Matt Rubin 4a8c2c310a Remove an unnecessary explicit call to .init() 2018-09-14 16:39:30 -04:00
Matt Rubin 5364a181bc Add conditional compilation to re-enable Swift 4.0 support 2018-06-06 20:38:12 -04:00
Matt Rubin 8019e57b34 Rename the CommonCrypto module shim, and only import it if needed
The iOS 12 SDK now provides a module map for CommonCrypto. Using `#if canImport(CommonCrypto)` and the module map shims allows for correct compilation with both the old and new SDKs
2018-06-06 20:11:55 -04:00
Matt Rubin ee0d5cb865 Bump the version number to 3.1.3 2018-04-29 11:18:11 -04:00
Matt Rubin c14a295bd1 Add comments and fix tests 2018-04-29 10:58:55 -04:00
Matt Rubin 3d2c3e7c47 Ignore un-deserializable tokens when getting allPersistentTokens() 2018-04-28 10:54:35 -04:00
Matt Rubin f82884cb26 Bump the version number to 3.1.2 2018-04-23 17:08:47 -04:00
Matt Rubin 8ef611aa2a Synthesize Equatable conformance when compiling with Swift 4.1 2018-04-21 00:34:37 -04:00
Matt Rubin 92140fa49a Bump the version number to 3.1.1 2018-04-01 00:10:51 -04:00
Matt Rubin 986a1d6be6 Use conditional compilation to handle SE-0184 changes to deallocation 2018-03-31 23:15:32 -04:00
Matt Rubin 1c0d2de420 Bump the version number to 3.1 2018-03-27 13:32:17 -04:00
Matt Rubin 4de1afe78a Fix a comment typo 2018-03-15 22:07:22 -04:00
Matt Rubin 9a393464e2 Replace Token's failable initializer with a throwing initializer 2018-03-10 00:25:31 -05:00
Matt Rubin 48a76260d9 Replace Generator's failable initializer with a throwing initializer 2018-03-10 00:02:40 -05:00
Matt Rubin b0f057331d Add a comment to the new throwing Token initializer 2018-03-09 23:20:59 -05:00
Matt Rubin ed8dfed183 Merge develop into throw-from-url 2018-03-09 00:17:58 -05:00
Matt Rubin 06df8768d7 Remove unnecessary String cast 2018-03-08 19:51:06 -05:00
Matt Rubin 852010d8b1 Merge develop into generator-errors 2018-03-08 19:33:14 -05:00
Matt Rubin 32bd750464 Enable SwiftLint's vertical_parameter_alignment_on_call rule
Add a comment and temporarily disable the rule in one spot to prevent a false positive.
2018-03-08 16:31:04 -05:00
Matt Rubin fe0e35ec72 Merge 3.0.1 into develop 2018-03-08 04:18:32 -05:00