Pular para o conteúdo principal

Working on the app

Titan is a native Android app written in Kotlin, with the UI in Jetpack Compose and everything stored in a local Room database. It has no backend, no network code and no analytics, which keeps the codebase small enough to read end to end.

The source is at github.com/open-gym-app/titan, under the GNU GPL v3.

The stack​

LayerChoice
LanguageKotlin, JVM 17 toolchain
UIJetpack Compose, Material 3, a design system of its own in :core:ui
ArchitectureMVVM over Clean Architecture: domain, data and presentation modules
PersistenceRoom (SQLite) and Preferences DataStore
Dependency injectionHilt
AsyncCoroutines and Flow
Background workWorkManager (weekly backup, history import), AlarmManager (reminders, rest timer)
NavigationNavigation Compose with type-safe @Serializable routes
TestsJUnit, Robolectric, Compose UI tests, Roborazzi screenshot tests with the Accessibility Test Framework, Macrobenchmark
Androidmin SDK 26 (Android 8.0), target SDK 36, compile SDK 37

This section is a summary. The reference documentation is kept next to the code, so it changes in the same pull request as the thing it describes:

DocumentWhat it covers
docs/ARCHITECTURE.mdModules, the dependency rules and how they are enforced, navigation, dependency injection. Summarised in Architecture.
docs/PERSISTENCE.mdThe schema, migrations, seed data, and every assumption a backup or an analytics query may rely on. Summarised in Data model.
docs/export-schema.mdThe backup file format, as a specification. Summarised in Export format.
docs/import-csv.mdThe plain CSV format an import reads, as a specification, with two example files. Summarised in Plain CSV format.
docs/ACCESSIBILITY.mdWhat the app promises TalkBack, large fonts and a thumb, and how every build checks it.
release/security-audit.mdWhat the release build exposes (exported components, deep links, storage, permissions, the release pipeline) and the evidence for each control.
docs/TRANSLATION.mdThe four shipped languages, the translation check and each language's glossary. Summarised in Translating.
CONTRIBUTING.mdConventions for code, strings, screens and tests. Summarised in Contributing.