Skip to content

Building From Source

ProcioneDeConti edited this page Aug 17, 2026 · 1 revision

Building From Source

Requirements

  • Android Studio (or just a JDK 17 + the Android SDK, if you'd rather use the command line)
  • Android SDK Platform 37, Build-Tools matching the AGP version in gradle/libs.versions.toml
  • minSdk 34 (Android 14) - you'll need a device or emulator running at least that to actually run it

Clone and build

git clone https://github.com/ProcioneDeConti/MonosodiumPDC.git
cd MonosodiumPDC
./gradlew assembleDebug

Or open the project directly in Android Studio and run it from there.

The debug build type is unsigned (well, signed with the auto-generated debug key) and has R8 disabled, so it builds faster and stack traces are readable - good for iterating.

Building a signed release

Release builds have R8 code shrinking/obfuscation on, matching what's actually shipped in Releases.

  1. Copy keystore.properties.example to keystore.properties (this file is gitignored - never commit your real one) and fill in your own keystore's details:
    storeFile=keystore/release.jks
    storePassword=...
    keyAlias=...
    keyPassword=...
    
  2. If you don't have a release keystore yet, generate one with keytool (see Android's docs on generating an upload key).
  3. Build:
    ./gradlew assembleRelease
    
    The signed APK lands at app/build/outputs/apk/release/app-release.apk.

If keystore.properties is missing, the release build type is simply left unsigned rather than failing - useful for verifying the build itself works without needing a real signing key.

A release you build yourself, signed with your own key, is a different signature from the official releases on this repo's Releases page (which are signed with the maintainer's key). Installing your own build over an official install - or vice versa - requires uninstalling first, wiping local app data. See the FAQ if that matters to you.

Tech stack

Kotlin, Jetpack Compose (Material 3), Navigation Compose, Retrofit + OkHttp + kotlinx.serialization, Coil 3, Media3 ExoPlayer, and DataStore Preferences. No custom backend - the app talks directly to e621/e6AI's public JSON API.

Project layout (high level)

  • app/src/main/java/one/proci/e621/data/ - API client, repositories, settings/DataStore, backup/restore
  • app/src/main/java/one/proci/e621/ui/ - Compose screens and components, organized by feature (screens/grid, screens/detail, screens/settings, etc.)
  • app/src/main/java/one/proci/e621/ui/navigation/E621NavGraph.kt - the whole app's navigation graph in one place

Contributing

Issues and pull requests are welcome. For anything nontrivial, opening an issue first to discuss the approach is appreciated but not required. See SECURITY.md for how to report vulnerabilities specifically (not as a public issue).

Clone this wiki locally