Skip to content

Commit ce71b88

Browse files
Swift 5.2
1 parent dada580 commit ce71b88

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

AwsSign.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Pod::Spec.new do |s|
22

33
s.name = "AwsSign"
4-
s.version = "0.2.0"
4+
s.version = "0.4.0"
55
s.summary = "Swift library for signing AWS URLRequests"
66
s.homepage = "https://github.com/nikola-mladenovic/AwsSwiftSign"
77
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" }
88
s.author = { "Nikola Mladenovic" => "[email protected]" }
99
s.source = { :git => "https://github.com/nikola-mladenovic/AwsSwiftSign.git", :tag => s.version.to_s }
1010
s.source_files = 'Source/*.swift'
11-
s.swift_version = "4.2"
12-
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '5.1' }
11+
s.swift_version = "5.2"
12+
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '5.2' }
1313

1414
s.ios.deployment_target = '10.0'
1515
s.osx.deployment_target = '10.10'

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// swift-tools-version:5.1
1+
// swift-tools-version:5.2
22

33
import PackageDescription
44

55
let package = Package(
66
name: "AwsSign",
77
products: [.library(name: "AwsSign", targets: ["AwsSign"])],
8-
dependencies: [.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.3.0")],
8+
dependencies: [.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.3.1")],
99
targets: [.target(name: "AwsSign", dependencies: ["CryptoSwift"], path: "Source")],
1010
swiftLanguageVersions: [.v5]
1111
)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ AwsSign is a Swift library that enables you to sign `URLRequest`s using Signatur
44

55
<p>
66
<a href="https://developer.apple.com/swift/" target="_blank">
7-
<img src="https://img.shields.io/badge/Swift-5.1-orange.svg?style=flat" alt="Swift 5.1">
7+
<img src="https://img.shields.io/badge/Swift-5.2-orange.svg?style=flat" alt="Swift 5.2">
88
</a>
99
<a href="https://developer.apple.com/swift/" target="_blank">
1010
<img src="https://img.shields.io/badge/Platforms-iOS%20%7C%20macOS%20%7C%20watchOS%20%7C%20tvOS%20%7C%20Linux-4E4E4E.svg?colorA=EF5138" alt="Platforms iOS | macOS | watchOS | tvOS | Linux">
@@ -14,7 +14,7 @@ AwsSign is a Swift library that enables you to sign `URLRequest`s using Signatur
1414
</a>
1515
</p>
1616

17-
This package builds with Swift Package Manager. Ensure you have installed and activated the latest Swift 5.1 tool chain.
17+
This package builds with Swift Package Manager. Ensure you have installed and activated the latest Swift 5.2 tool chain.
1818

1919
## Quick Start
2020

@@ -42,4 +42,4 @@ request.addValue("application/json", forHTTPHeaderField: "Content-Type")
4242
try! request.sign(accessKeyId: "593ca2ad2782e4000a586d28", secretAccessKey: "ASDI/YZZfLXLna3xEn7JTIJhyH/YZZfLXLna3xEn7JTIJhyH")
4343

4444
// ...
45-
```
45+
```

Source/AwsSign.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public extension URLRequest {
1919
}()
2020
private var currentIso8601Date: (full: String, short: String) {
2121
let date = URLRequest.iso8601Formatter.string(from: Date())
22-
let shortDate = date[...String.Index(encodedOffset: 7)]
22+
let shortDate = date[...String.Index(utf16Offset: 7, in: date)]
2323
return (full: date, short: String(shortDate))
2424
}
2525

0 commit comments

Comments
 (0)