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.26.0
A Swift Package containing the Swift Thrift models required for Ophan tracking
⭐️ 0
🕓 2 weeks ago
iOS
.package(url: "https://github.com/guardian/ophan-thrift-swift.git", from: "0.26.0")

ophan-thrift-swift

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.

GitHub

link
Stars: 0
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Dependencies

Release Notes

0.3.2
2 years ago

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