- Participate here and start answering questions.
- File GitHub issues for bug reports from /c/Jerboa. Watch the project for duplicate reports and link them to the first report so devs can easily close dupes.
- File new bug reports for issues you find.
- Add missing translations
- Code contributions
- Basic Modern Android Development tech stack (Compose, Navigation, Coroutines, AndroidX)
- Guide to App Architecture, without domain layer. Basically, MVVM + Repositories for data access.
- Manual DI
You can open Jerboa in AndroidStudio, version 2022.3.1 or later (Giraffe).
Use Java 11+, preferably Java 17
This project is full Kotlin. Please do not write Java classes.
The code must be formatted to a common standard.
To check for violations
./gradlew lintKotlinOr just run this to fix them
./gradlew formatKotlinMarkdown and yaml files are formatted according to prettier.
You can install prettier either through the plugin, or globally using npm npm install -g prettier
To check for violations
prettier -c "*.md" "*.yml"To fix the violations
prettier --write "*.md" "*.yml"Translations via weblate:
To add a custom theme:
- Use google's Material 3 custom theme generator, and save your
Theme.ktfile. - Copy the theme into
Color.ktlike the others. - Add the theme to the
ThemeColorenum inTypes.kt - Add a translation string in
strings.xmlfor your theme name. - Add the theme to the
colorPairsinTheme.kt
There is a custom gradle task that generates all the lemmy instances that this app directly supports. It updates the lemmy instances list in DefaultInstances.kt and the AndroidManifest. It uses the fediverse api and filters on the monthly users. You can run it by doing
./gradlew app:updateInstancesYou can generate the compose compiler metrics by executing the following gradle task.
./gradlew assembleRelease --rerun-tasks -P enableComposeCompilerReports=trueThen you will find the metrics in app/build/compose_metrics directory.
See this link for more information on these metrics
If you add a migration to the DB, test it with this gradle task
./gradlew app:connectAndroidTestYou can generate the latest baseline profiles by executing the following gradle task. It will generate the baseline profiles and the startup profiles.
The baseline profile code is located in the Benchmarks module.
Be warned that this task will take a long time to run (+30m) and can fail.
The variant for app needs to be set to benchmarkRelease.
There should be no device connected and it should start an emulator with the correct settings.
./gradlew :app:generateBaselineProfilesee https://developer.android.com/topic/performance/baselineprofiles/overview