No description
  • Kotlin 94.3%
  • Python 4.6%
  • Java 0.4%
  • JavaScript 0.4%
  • C++ 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-15 18:08:43 +00:00
app-android Initial commit 2026-11-15 18:08:43 +00:00
baselineprofile Initial commit 2026-11-15 18:08:43 +00:00
cast-google Initial commit 2026-11-15 18:08:43 +00:00
cast-receiver Initial commit 2026-11-15 18:08:43 +00:00
core Initial commit 2026-11-15 18:08:43 +00:00
decoder-ffmpeg Initial commit 2026-11-15 18:08:43 +00:00
fastlane/metadata/android Initial commit 2026-11-15 18:08:43 +00:00
gradle Initial commit 2026-11-15 18:08:43 +00:00
store-play Initial commit 2026-11-15 18:08:43 +00:00
tools Initial commit 2026-11-15 18:08:43 +00:00
wear Initial commit 2026-11-15 18:08:43 +00:00
.gitattributes Initial commit 2026-11-15 18:08:43 +00:00
.gitignore Initial commit 2026-11-15 18:08:43 +00:00
build.gradle.kts Initial commit 2026-11-15 18:08:43 +00:00
gradle.properties Initial commit 2026-11-15 18:08:43 +00:00
gradlew Initial commit 2026-11-15 18:08:43 +00:00
gradlew.bat Initial commit 2026-11-15 18:08:43 +00:00
LICENSE Initial commit 2026-11-15 18:08:43 +00:00
NOTICE Initial commit 2026-11-15 18:08:43 +00:00
README.md Initial commit 2026-11-15 18:08:43 +00:00
settings.gradle.kts Initial commit 2026-11-15 18:08:43 +00:00
THIRD_PARTY_NOTICES.md Initial commit 2026-11-15 18:08:43 +00:00

Ensō for Android

Ensō is a native client for Jellyfin media servers. This repository holds the source code of the Android app: phones and tablets, Android TV and Google TV, and a Wear OS remote. It is written in Kotlin with Jetpack Compose and plays with AndroidX Media3 (ExoPlayer).

Modules

Module / folder What it is
core/ Kotlin/JVM only, no Android imports: the Jellyfin client (OkHttp, kotlinx.serialization), the models, the rules of the app (continue watching, hero choice, search, parental controls, categories, collections, downloads, playback, sync, accounts), PlayerEngine (the seam to the player) and the player flow
app-android/ the app: the Compose interface for phones, tablets and television, navigation, ExoPlayer behind PlayerEngine, the media session and its service, the account store in the Android Keystore, DataStore settings, the device profile from MediaCodecList, downloads
store-play/ optional: in-app purchase and in-app review through Google Play (the app finds the module at run time with ServiceLoader and does not know it at compile time)
cast-google/ optional: Google Cast sender (found at run time the same way)
decoder-ffmpeg/ optional: a DTS decoder (FFmpeg dca, LGPL, behind Media3's FFmpeg module); its README says what is in it, how it is built and what to think about before distributing a build with it
wear/ the Wear OS app: a remote control for the account's other players
baselineprofile/ makes the baseline profile that the app carries
cast-receiver/ a web page for a custom Cast receiver
tools/ scripts of the maintainers: the emulator loop (enso.py), checks of the string resources, mutation scripts for the tests

The application ID is com.julian.enso; minSdk is 26, compileSdk and targetSdk are 37.

Build

You need JDK 21 and an Android SDK with platform 37 and its build tools (ANDROID_HOME, or a local.properties file with sdk.dir=...; the file is not in the repository). The Gradle wrapper fetches Gradle 9.8.2 itself.

./gradlew :app-android:assembleDebug

Optional modules are left out with Gradle properties (on the command line or in ~/.gradle/gradle.properties):

Property Effect
-Penso.withoutPlay=true leaves out :store-play (Google Play Billing and In-App Review)
-Penso.withoutCast=true leaves out :cast-google (the Cast sender library)
-Penso.withoutFfmpeg=true leaves out :decoder-ffmpeg (the DTS decoder)
-Penso.versionName=1.0 -Penso.versionCode=10 the version the build reports and installs as
-Penso.abis=arm64-v8a only these ABIs for the native libraries (a smaller APK)

A build with -Penso.withoutPlay=true -Penso.withoutCast=true contains no Google Play, Play services or Cast libraries.

Release signing is not part of the repository: it holds no keys, and a release bundle is signed by whoever publishes it.

Optional settings go into local.properties (not in the repository): enso.feedback.url, enso.feedback.key, enso.feedback.web and enso.ideas.url switch on the in-app problem reports and ideas (without them the app shows nothing of reporting), and enso.cast.receiver is the App ID of a custom Cast receiver (cast-receiver/README.md; without it the app casts to Google's default receiver).

Tests

./gradlew :core:test :app-android:testDebugUnitTest :store-play:testDebugUnitTest

These JVM tests need no device. The instrumented tests (app-android/src/androidTest, wear/src/androidTest) run the whole app against mock Jellyfin servers of the maintainers' test harness, which is not part of this repository: they compile (./gradlew :app-android:assembleDebugAndroidTest) but need that harness to run.

Generated files and the maintainers' scripts

The string resources (res/values*/strings.xml and strings_android_apple.xml) and res/xml/locales_config.xml are generated from the translation files of the Ensō apps for Apple; they are checked in, so do not edit them by hand. Comments in the code and in the documents name helper scripts of the maintainers (the mock servers, the runs on devices and television sets, the signing of release bundles) that are not part of this repository.

License

Mozilla Public License 2.0. NOTICE says what the license does not cover (the name and the logo, patents) and THIRD_PARTY_NOTICES.md names the third-party software with its licenses. Every source file begins with the three-line notice of the license (Exhibit A of the MPL); a new source file gets the same notice at its top - copy it from a file of the same kind.

Contributions are welcome as issues and pull requests; by contributing you agree that your contribution is licensed under the MPL 2.0, like the rest of the repository. Some documents (cast-receiver/README.md, baselineprofile/README.md) are in German.