Development
Set up, build, and contribute to the Android app.
Grimoire is a native Android app written in Kotlin and Jetpack Compose. The app, extension API, and source extensions live in separate repositories and ship independently.
Set up the app
Start with the app's contribution guide, which owns the current toolchain and build requirements.
You need JDK 17, the Android SDK, and access to the io.grimoire:extensions-api dependency. Java 11 is the source and bytecode target; it is not the JDK used by CI.
The API resolves from your local Maven cache or GitHub Packages. For local API development, run ./gradlew :api:publishToMavenLocal in the API checkout. For GitHub Packages, configure GITHUB_ACTOR and GITHUB_TOKEN with package read access. Keep tokens out of source control.
Build and check
From the Android app repository:
./gradlew :app:compileDebugKotlin
./gradlew :app:testDebugUnitTest
./gradlew :app:lintDebug
./gradlew :app:installDebugThe last command needs a connected device or emulator. On Windows, use gradlew.bat in place of ./gradlew.
Run the Kotlin compilation and unit tests before opening a pull request. See the contribution guide for release builds and optional configuration.
Project structure
| Area | Responsibility |
|---|---|
ui/ | Navigation, screens, ViewModels, and shared Compose components |
data/ | Database, preferences, downloads, backups, EPUBs, and background work |
domain/ | Repository boundaries and application behavior |
extension/ | Extension discovery, management, and repository browsing |
auth/github/ | GitHub OAuth device flow |
Screens expose state from ViewModels. Keep filtering, sorting, and search projections in the ViewModel, and use the app's theme tokens in Compose UI.
Choose a repository
- Android app: reader, library, and application behavior.
- Extension API: shared models and capability interfaces.
- Extensions: content-source implementations.
- Website: this homepage and documentation.
For source-specific changes, follow the extension development guide. For app changes, read the contribution guide and repository instructions before editing.