Development
Tests
Unit tests
To run the unit tests, run the following command:
Instrumentation tests
To run the instrumentation tests, run the following command:
Ktlint
Voice uses Ktlint to enforce consistent code formatting.
- Check for formatting issues:
- Auto-fix formatting:
- To make commits fail on formatting errors, set up a pre-commit hook:
Releasing
To release a new version:
- Update versionCode and versionName in libs.versions.toml.
- Push a corresponding Git tag to the main branch.
This triggers the CI to build and publish the release to the Play Store’s internal track. From there, promotion to production must be done manually.
F-Droid builds are handled by their team and usually appear a few days after a stable (non-RC) release.