Skip to content
CofficLabPublic

Repository files navigation

Cisum

English 简体中文 Coffic Maintainer AppStore

Cisum for iPhone and Mac

About

Product Introduction

App Store

Motivation

Are you tired of being bothered by:

  • Splash screen ads
  • Shake-to-navigate features
  • Endless pop-up windows
  • 10-second launch times
  • Overwhelming features

We decided to make our own app to keep software simple and pure.

Architecture

Cisum is a plugin-based SwiftUI audio player. The codebase is split into independent Swift packages under Packages/, grouped into four roles:

CisumApp (HostManifest) + LumiFactory (shared assembly engine)
  ├── Plugin*  ── consumes ──> Provider*
  ├── Provider* ── uses ─────> Kit*
  └── Kit*
Role Purpose
Kit* Reusable foundations not owned by one feature (playback primitives, UI components, event observation)
Provider* App-facing contracts, domain models, events, observer handles
Plugin* One feature each; consumes other features through Provider contracts
CisumApp + LumiFactory The composition root: the app declares a HostManifest (plugins, storage, theme, wiring); the shared remote LumiFactory package interprets it

Plugins never depend on each other directly — shared behavior travels through Provider* (data and contracts) or Kit* (pure utilities) packages.

Development

Requirements

Tool Version
macOS 14.0 or later
Xcode 27.2 or later
Swift 6.0 or later

Cisum runs on macOS 14+, iOS / iPadOS 17+ and visionOS 2+.

Build and run

git clone https://github.com/CofficLab/Cisum.git
cd Cisum

xcodebuild -list -project Cisum.xcodeproj
xcodebuild -project Cisum.xcodeproj -scheme Cisum -destination 'platform=macOS' build
xcodebuild -project Cisum.xcodeproj -scheme Cisum -destination 'generic/platform=iOS' build
xcodebuild -project Cisum.xcodeproj -scheme Cisum -destination 'generic/platform=visionOS' build

Pass -jobs 1 to xcodebuild: concurrent Swift compilation of LumiUI trips a swift-plugin-server crash in the SDK and surfaces as bogus macro-expansion errors. It is a toolchain concurrency bug, not a project one.

Build and test a single package

Every package is a standalone Swift package, which makes for a fast inner loop:

cd Packages/PluginAudioDBView
swift build
swift test

Run the test suite

# Package-level unit tests
cd Packages && for p in Plugin*/; do [ -d "$p/Tests" ] || continue
  printf "%-26s " "$(basename $p)"; (cd $p && swift test 2>&1 | grep -E "✘|error:|Test run with" | tail -1)
done

# App-level unit and UI tests
xcodebuild -project Cisum.xcodeproj -scheme Cisum -destination 'platform=macOS' test

Code coverage

scripts/collect-coverage.sh              # all packages with source code
scripts/collect-coverage.sh MagicKit     # one package

The report is written to temp/coverage/report.md.

Contributing

Contributions are welcome. See CONTRIBUTING.md for the development environment setup, architecture rules, coding conventions, localization and logging guidelines, the commit message format, and the pull request workflow.

Our Other Projects

Releases

Packages

Used by

Contributors

Languages