Swiftpack.co - guardian/ophan-thrift-swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by guardian.
guardian/ophan-thrift-swift 0.37.0
A Swift Package containing the Swift Thrift models required for Ophan tracking
⭐️ 1
🕓 1 week ago
.package(url: "https://github.com/guardian/ophan-thrift-swift.git", from: "0.37.0")


This repository contains:

  1. A Swift Package containing the Thrift definitions used for Ophan tracking.
  2. A custom GitHub Action, which is used for auto-generating the aforementioned Swift Package in response to changes to Ophan's Thrift definitions.

Swift Package

This package contains the Swift Thrift models required for sending tracking events to Ophan. It can be imported (as a dependency) by a Swift project (e.g. the iOS Live App).

GitHub Action

This is comprised of three main parts:

  1. A Dockerfile, which describes the environment (e.g. an appropriate version of Thrift) needed to auto-generate the Swift Package.
  2. A bash script, which updates the Swift Thrift models stored in this repository and creates a release. The script is invoked as part of the Dockerfile.
  3. A custom GitHub Action, which allows a workflow defined in another repository to run our script (inside the relevant Docker container). Although the Action is defined in this repository, it is invoked inside the Ophan repository, since it needs to be triggered in response to changes to the Thrift definitions.


Stars: 1
Last commit: 1 week ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups


Release Notes

5 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/guardian/ophan-thrift-swift/compare/0.36.0...0.36.1

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