Skip to content

Commit 6c48657

Browse files
committed
support spm
1 parent 11b2993 commit 6c48657

File tree

6 files changed

+32
-96
lines changed

6 files changed

+32
-96
lines changed

DBNetworkStack.podspec

Lines changed: 0 additions & 88 deletions
This file was deleted.

Package.swift

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// swift-tools-version:5.0
12
//
23
// Package.swift
34
//
@@ -24,8 +25,31 @@
2425
// Created by Lukas Schmidt on 21.07.16.
2526
//
2627

28+
2729
import PackageDescription
2830

31+
2932
let package = Package(
30-
name: "DBNetworkStack"
33+
name: "DBNetworkStack",
34+
platforms: [
35+
.iOS(.v9),
36+
.tvOS(.v9),
37+
.watchOS(.v2),
38+
.macOS(.v10_10)
39+
],
40+
products: [
41+
.library(
42+
name: "DBNetworkStack",
43+
targets: ["DBNetworkStack"]),
44+
],
45+
targets: [
46+
.target(
47+
name: "DBNetworkStack",
48+
dependencies: [],
49+
path: "Source"),
50+
.testTarget(
51+
name: "DBNetworkStackTests",
52+
dependencies: ["DBNetworkStack"],
53+
path: "Tests"),
54+
]
3155
)

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ The following table shows all the protocols and their default implementations.
100100

101101
- iOS 9.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
102102
- Xcode 10.2+
103-
- Swift5.0
103+
- Swift 5.0
104104

105105
## Installation
106106

@@ -111,13 +111,9 @@ The following table shows all the protocols and their default implementations.
111111
Specify the following in your `Cartfile`:
112112

113113
```ogdl
114-
github "dbsystel/dbnetworkstack" ~> 1.2
114+
github "dbsystel/dbnetworkstack" ~> 2.0
115115
```
116116

117-
### CocoaPods
118-
119-
`pod "DBNetworkStack"`
120-
121117
## Contributing
122118
Feel free to submit a pull request with new features, improvements on tests or documentation and bug fixes. Keep in mind that we welcome code that is well tested and documented.
123119

Source/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.2.0</string>
18+
<string>2.0.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

Source/Resource+Inspect.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
// DEALINGS IN THE SOFTWARE.
2121
//
2222

23+
import Foundation
24+
2325
extension Resource {
2426
/**
2527
This lets one inspect the data payload before data gets parsed.

Source/Resource.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
// DEALINGS IN THE SOFTWARE.
2222
//
2323

24+
import Foundation
25+
2426
/**
2527
`Resource` describes a remote resource of generic type.
2628
The type can be fetched via HTTP(S) and parsed into the coresponding model object.

0 commit comments

Comments
 (0)