Architecture of ankidroid/anki-android
ankidroid/anki-android is 2,140 source files holding 25,299 symbols across 18 modules, written mainly in Kotlin, Shell, JavaScript. The largest module is AnkiDroid, with 1,511 files, and 89 files are entry points into the dependency graph.
How anki-android fits together
Input enters through entry points in the AnkiDroid module, such as AnkiDroidApp.kt, the application class, and CardBrowser.kt, a screen for browsing cards. DeckPicker.kt and NoteEditorFragment.kt are hotspot files in the same module, which holds 1511 files in total. Card browsing is split between browser/CardBrowserFragment.kt, the UI, and browser/CardBrowserViewModel.kt, which holds its view model. The libanki module, with 82 files, and anki-common, with 76 files, sit alongside the app, and the common module holds 146 files. Build settings for each module are in files such as AnkiDroid/build.gradle.kts.
Largest modules
- AnkiDroid: 1,511 files and 187,205 lines of code
- common: 146 files and 6,285 lines of code
- libanki: 82 files and 8,578 lines of code
- anki-common: 76 files and 5,312 lines of code
- lint-rules: 70 files and 6,988 lines of code
- buildSrc: 40 files and 2,388 lines of code
- tools: 39 files and 1,733 lines of code
- compat: 25 files and 1,587 lines of code
Languages
By file count: Kotlin 2,004 files, Shell 36 files, JavaScript 11 files, Python 6 files, Java 5 files, TypeScript 5 files.
Documentation
Repowise documents anki-android in 1,632 pages generated from the source, 68 of them written explanations of the repository and its modules.
More on anki-android: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos