Swiftpack.co -  JohnSundell/Releases as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
JohnSundell/Releases
A Swift package for resolving released versions from a Git repository
.package(url: "https://github.com/JohnSundell/Releases.git", from: "5.0.0")

🚢 Releases

Using Releases you can easily resolve all released versions from a Git repository, in either a Swift script or command line tool. It supports both remote & local repositories and provides convenience APIs for sorting, filtering out pre-released versions, etc.

Usage

Simply call Releases.versions(for: url) and you'll get an array of Version back:

let url = URL(string: "https://github.com/johnsundell/unbox")!
let releases = Releases.versions(for: url)

// Print the latest version
print(releases.last)

Remove all pre-release versions (like Alpha, Beta, etc):

let url = URL(string: "https://github.com/johnsundell/unbox)!
let releases = Releases.versions(for: url).withoutPreReleases()

// Print the latest stable version
print(releases.last)

Installation

  • Add .package(url: "https://github.com/JohnSundell/Releases.git", from: "5.0.0") to your Package.swift file's dependencies.
  • Update your packages using $ swift package update.

Help, feedback or suggestions?

GitHub

link
Stars: 43
Last commit: 4 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Releases 5.0.0
1 year ago

Releases now uses Swift 5.1.

View build details and download artifacts on buddybuild: Releases (iOS, Releases - Debug)

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API