Home / Companies / Apollo / Blog / Post Details
Content Deep Dive

How Apollo Manages Swift Packages in a Monorepo with Git Subtrees

Blog post from Apollo

Post Details
Company
Date Published
Author
Zach FettersMoore
Word Count
1,127
Company Posts That Month
8
Language
English
Hacker News Points
-
Post removed?
No
Summary

The Apollo iOS project restructured its libraries into separate smaller repositories that can be provided as their own Swift Package Manager (SPM) packages, while maintaining an efficient development workflow. To achieve this, they used Git subtree functionality instead of git submodules, which allows pulling all the code of a repository into another repository from a specific reference, enabling independent work on each subtree while still being able to push changes back to their remote repositories. This approach provides concise SPM packages for features, independently versioned feature packages, and an easy development workflow that allows developers to work together but distribute separately.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.