Skip to content

Commit

Permalink
Merge pull request #4 from pavlospt/master
Browse files Browse the repository at this point in the history
Update Package.swift format
  • Loading branch information
elenipapanik authored Feb 3, 2020
2 parents f169536 + 4a0141c commit e06b92b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,21 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output

.build
DerivedData
/.previous-build
xcuserdata
.DS_Store
*~
\#*
.\#*
.*.sw[nop]
*.xcscmblueprint
/default.profraw
*.xcodeproj
Utilities/Docker/*.tar.gz
.swiftpm
Package.resolved
/build
*.pyc
20 changes: 18 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
// swift-tools-version:5.1
import PackageDescription

let package = Package(
name: "ErrorHandler",
platforms: [
.iOS(.v8),
.macOS(.v10_10),
.watchOS(.v2),
.tvOS(.v9)
],
products: [
.library(
name: "ErrorHandler",
targets: ["ErrorHandler"]),
],
dependencies: [
.Package(url: "https://github.com/Alamofire/Alamofire.git", versions: Version(4, 0, 0)..<Version(5, 0, 0))
.package(url: "https://github.com/Alamofire/Alamofire.git", "4.0.0"..<"5.0.0")
],
targets: [
.target(name: "ErrorHandler", dependencies: ["Alamofire"], path: "./ErrorHandler"),
.testTarget(name: "ErrorHandlerTests", dependencies: ["ErrorHandler"], path: "./Example/Tests")
],
exclude: ["Example"]
swiftLanguageVersions: [.v4_2, .v5]
)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import PackageDescription
let package = Package(
name: "MyApp",
dependencies: [
.Package(url: "https://github.com/Workable/swift-error-handler.git", majorVersion: 0)
.package(url: "https://github.com/Workable/swift-error-handler.git", from: "0.8")
]
)
```
Expand Down

0 comments on commit e06b92b

Please sign in to comment.