Skip to content

Commit f1aa0ab

Browse files
authored
Update README.md (#1)
1 parent 889c24b commit f1aa0ab

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
11
# ETDistribution 🛰️
22

3-
Keep internal builds up to date with ETDistribution
3+
Keep internal builds up to date with ETDistribution
4+
5+
# Features
6+
7+
Check for updates and automatically prompt with an option to ignore or install
8+
```swift
9+
import ETDistribution
10+
11+
Button("Check for updates") {
12+
ETDistribution.shared.checkForUpdate(apiKey: "YOUR_API_KEY")
13+
}
14+
```
15+
16+
Or handle the update yourself
17+
18+
```swift
19+
import ETDistribution
20+
21+
ETDistribution.shared.checkForUpdate(apiKey: "YOUR_API_KEY", tagName: "alpha") { result in
22+
if let update = try? result.get(), let url = ETDistribution.shared.buildUrlForInstall(update.downloadUrl) {
23+
UIApplication.shared.open(url)
24+
}
25+
}
26+
```
27+
28+
# Installation
29+
30+
Install ETDistribution with SPM using the URL of this repository (https://github.com/EmergeTools/ETDistribution)

0 commit comments

Comments
 (0)