Skip to content
zigdanisPublic

About

iOS app with Today widget that shows instant age of the person in human readable format

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

GrowingUp

CI

iOS app for tracking people and viewing their current age broken down into time components — years, months, days, hours, minutes and seconds — updating live.

Features

  • Keep a list of people, each with a name, birth date and photo.
  • Add or edit a person, including picking and cropping a photo.
  • A home mosaic of everyone as portrait photo tiles over a soft glow of their photos' colours, in light and dark.
  • Tap a tile to zoom the person full screen, with the age counting up in real time; swipe sideways between people, swipe down to return, tap to edit.
  • A Home Screen widget (WidgetKit) in three sizes shows up to six pinned people as photo tiles with a big milestone age and birthday countdowns, refreshing only when that text changes.
  • A Lock Screen widget (rectangular) with the first pinned person's name, age and next birthday, also shown in StandBy.
  • Data is shared between the app and the widget through a shared App Group.
  • Localized in English and Russian.

Architecture

The project follows MVP + Clean Architecture.

  • Core — a framework holding the business logic, free of UIKit scene code:
    • Entities — Person, PersonImage, AddPersonParameters.
    • UseCases — Add/Edit/Remove/FetchPersons use cases.
    • Gateways / EntityGateway — persistence and caching behind protocols.
    • AgeCalculator — converts a birth date into time components.
  • GrowingUp — the SwiftUI app target. Presentation/ contains the people mosaic, the full-screen viewer and the editor scenes. Observable main-actor presenters own scene state, and SceneConfigurator injects Core use cases. Scenes/EditPerson/ImageCapture/ contains the shared photo, crop and camera views and platform adapters.
  • Widget — the WidgetKit extension (SwiftUI), reusing Core for its data.
  • Analytics — GrowingUp/Analytics/ holds one AnalyticsGateway in front of PostHog (anonymous product events) and Sentry (crashes and handled failures); the widget reports nothing. See analytics and crash reporting for what is sent and when nothing is.

Persistence

  • Core Data (GrowingUp.xcdatamodeld) is the source of truth, stored in a shared App Group container (group.pro.ziganshin.aging) so the app and the widget read and write the same data.
  • Disk caches person images in the shared container.

Dependencies

Managed with Swift Package Manager and resolved automatically by Xcode — no Carthage or CocoaPods step is required:

  • Disk — file/image persistence.
  • PostHog iOS — anonymous product analytics (app only).
  • Sentry Cocoa — crash reporting (app only).

Requirements

  • Xcode 27.1 or newer. Release builds must use the iOS 27.1 SDK, the first whose builds fill both iPhone Duo displays instead of running letterboxed; the archive check rejects older SDKs. CI runs Xcode 27.1 on GitHub's xcode-27 runners.
  • iOS 18.1+ deployment target. Automatic PR/master CI runs build and unit checks; Duo UI journeys run only on an explicitly opted-in manual dispatch: gh workflow run ci.yml --ref BRANCH -f run_duo_ui_tests=true. The manual UI job uses iPhone Duo / iOS 27.1 / Xcode 27.1. App Store screenshots are captured on a Mac, never in CI. iOS 18 is not tested in CI.

Tooling

  • swift-format uses the repository .swift-format policy. Run scripts/format-swift.sh to format all first-party Swift sources or scripts/check-formatting.sh to check without changing files. The scripts use the formatter from the selected Xcode toolchain on macOS and a standalone swift-format on Linux. On Linux, install the pinned toolchain with swiftly install. CI runs the same Swift 6.4 formatter on Linux. VS Code formats on save through Xcode's SourceKit-LSP via .vscode/settings.json; install the recommended Swift and SweetPad extensions. For full code completion, install the SweetPad CLI (brew install sweetpad-dev/tap/sweetpad) and run sweetpad bsp init once per clone. The generated buildServer.json is machine-specific; keep it out of Git.
  • SwiftLint runs as an optional build phase (skipped with a warning if not installed); run scripts/lint-swift.sh for the same strict check used in CI. On Linux, scripts/install-swiftlint.sh installs the SwiftLint release CI pins.
  • Git hooks are installed once per clone with scripts/install-git-hooks.sh. They check formatting and SwiftLint before every commit. Fix reported violations instead of bypassing the hook.
  • fastlane lanes under fastlane/ handle TestFlight distribution and match-based signing for release builds.
  • CI — GitHub Actions (.github/workflows/ci.yml) checks formatting and runs SwiftLint on Linux, and builds + tests on an iOS Simulator on macOS, on every pull request and on pushes to master. The Release simulator app (simulator-app.yml) is built only on request by scripts/simulator-app.sh.

TestFlight deployment

One-time Mac setup (the App Store Connect key and Match password come from Danis's SOPS vault ~/myai/secrets/growingup/, never from files in Git or plaintext files; see fastlane/README.md):

scripts/testflight setup local

Generate English/Russian notes with your signed-in local Codex CLI and review the printed text. No filename is needed:

scripts/testflight notes

Then choose one deployment location:

scripts/testflight deploy local --version 2.2.0  # build and upload on your Mac
# or
scripts/testflight deploy cloud --version 2.2.0  # build and upload in GitHub Actions

Both paths select the next free build number, apply matching app/widget versions, sign, upload, publish EN/RU notes and distribute to the tester group. Omit --version to choose the next patch above the recorded Apple/beta versions. New explicit versions must exceed the approved App Store version. Notes are regenerated if the source changes. Credentials come from the SOPS vault ~/myai/secrets/growingup/ locally, or from the existing protected GitHub testflight environment in the cloud.

scripts/testflight check local (or cloud) checks without uploading; archive local (or cloud) creates an archive without uploading. Use status local / status cloud to check the latest release and resume local / resume cloud to continue it after an interruption, preserving its version/build. An optional release ID selects an older release. Apple beta review may still be required before the build appears on a tester's device.

See release setup for prerequisites and compatibility commands.

Authors

  • Danis Ziganshin — Initial work — zigdanis

License

GrowingUp is available under the MIT License.

About

iOS app with Today widget that shows instant age of the person in human readable format

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages