Skip to content

Commit

Permalink
Merge pull request #1 from mattpolzin/swift-5
Browse files Browse the repository at this point in the history
Update Swift Tools version and default Swift version to 5.0
  • Loading branch information
mattpolzin authored Apr 17, 2019
2 parents 32736f2 + fa52c48 commit d24d4c1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:4.2
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -24,5 +24,6 @@ let package = Package(
.testTarget(
name: "PolyTests",
dependencies: ["Poly"]),
]
],
swiftLanguageVersions: [.v4_2, .v5]
)
4 changes: 2 additions & 2 deletions Poly.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
#

spec.name = "Poly"
spec.version = "1.1.0"
spec.version = "2.0.0"
spec.summary = "A general-purpose library to help represent situations where the type of a value is one of a set of types."

# This description is used to generate tags and improve search results.
Expand Down Expand Up @@ -130,7 +130,7 @@ Pod::Spec.new do |spec|
# where they will only apply to your library. If you depend on other Podspecs
# you can include multiple dependencies to ensure it works.

spec.swift_version = "4.2"
spec.swift_version = "5.0"
# spec.requires_arc = true

# spec.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ Poly is a small library to provide an alternative to rolling your own type-erasu

## Dev Environment
### Prerequisites
1. Swift 4.2+ and Swift Package Manager
1. Swift 4.2+
2. Swift Package Manager 5.0 *OR* Cocoapods

### CocoaPods
To use this framework in your project via Cocoapods instead of Swift Package Manager, add the following dependency to your Podfile.
```
pod 'Poly', :git => 'https://github.com/mattpolzin/Poly.git'
```

### Xcode project
To create an Xcode project for Poly, run
Expand Down

0 comments on commit d24d4c1

Please sign in to comment.