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

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
guardian/ophan-thrift-swift
A Swift Package containing the Swift Thrift models required for Ophan tracking
.package(url: "https://github.com/guardian/ophan-thrift-swift.git", from: "0.20.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

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.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Dependencies

Release Notes

0.3.2
1 year ago

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