Skip to content

Commit 648e57e

Browse files
Swift 5.1 support
1 parent e5808d2 commit 648e57e

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
// swift-tools-version:4.2
1+
// swift-tools-version:5.1
22

33
import PackageDescription
44

55
let package = Package(
66
name: "AwsSns",
77
products: [.library(name: "AwsSns", targets: ["AwsSns"])],
8-
dependencies: [.package(url: "https://github.com/nikola-mladenovic/AwsSwiftSign.git", from: "0.2.0"),
9-
.package(url: "https://github.com/drmohundro/SWXMLHash.git", from: "4.7.1")],
8+
dependencies: [.package(url: "https://github.com/nikola-mladenovic/AwsSwiftSign.git", from: "0.3.0"),
9+
.package(url: "https://github.com/drmohundro/SWXMLHash.git", from: "5.0.1")],
1010
targets: [.target(name: "AwsSns", dependencies: ["AwsSign", "SWXMLHash"]),
1111
.testTarget(name: "AwsSnsTests", dependencies: ["AwsSns"])],
12-
swiftLanguageVersions: [.v4_2]
12+
swiftLanguageVersions: [.v5]
1313
)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ AwsSns is a Swift library that enables you to use Amazon Web Service Simple Noti
77
<img src="https://travis-ci.org/nikola-mladenovic/AwsSwiftSNSsdk.svg?branch=master">
88
</a>
99
<a href="https://developer.apple.com/swift/" target="_blank">
10-
<img src="https://img.shields.io/badge/Swift-4.2-orange.svg?style=flat" alt="Swift 4.2">
10+
<img src="https://img.shields.io/badge/Swift-5.1-orange.svg?style=flat" alt="Swift 5.1">
1111
</a>
1212
<a href="https://developer.apple.com/swift/" target="_blank">
1313
<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">
@@ -17,7 +17,7 @@ AwsSns is a Swift library that enables you to use Amazon Web Service Simple Noti
1717
</a>
1818
</p>
1919

20-
This package builds with Swift Package Manager. Ensure you have installed and activated the latest Swift 4.2 tool chain.
20+
This package builds with Swift Package Manager. Ensure you have installed and activated the latest Swift 5.1 tool chain.
2121

2222
## Quick Start
2323

Sources/AwsSns/AwsSns.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import Foundation
2+
#if canImport(FoundationNetworking)
3+
import FoundationNetworking
4+
#endif
25
import AwsSign
36
import SWXMLHash
47

0 commit comments

Comments
 (0)