Skip to content

Commit 96f661e

Browse files
committed
Update README
1 parent f3c439e commit 96f661e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@
33
The SkipDevice module is a dual-platform Skip framework that provides access to
44
network reachability, location, and device sensor data.
55

6+
## Setup
7+
8+
To include this framework in your project, add the following
9+
dependency to your `Package.swift` file:
10+
11+
```swift
12+
let package = Package(
13+
name: "my-package",
14+
products: [
15+
.library(name: "MyProduct", targets: ["MyTarget"]),
16+
],
17+
dependencies: [
18+
.package(url: "https://source.skip.tools/skip-device.git", "0.0.0"..<"2.0.0"),
19+
],
20+
targets: [
21+
.target(name: "MyTarget", dependencies: [
22+
.product(name: "SkipDevice", package: "skip-device")
23+
])
24+
]
25+
)
26+
```
27+
628
## Network Reachability
729

830
You can check whether the device is currenly able to access the network with:

0 commit comments

Comments
 (0)