The Android client is a native Kotlin + Jetpack Compose app targeting Android API level 30 (Android 11) and above.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/aliammari1/readrealm/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Android Studio Koala Feature Drop (2024.1.2) or later
- Android SDK API 30+
- Gradle 8+
- Kotlin 1.9+
- JDK 11+
Android Studio bundles the Android SDK, Gradle wrapper, and a compatible JDK. Installing Android Studio is the easiest way to satisfy all prerequisites.
Setup
Configure the API URL
The Android client connects to the ReadRealm backend via Retrofit. The base URL is defined in To connect to a local API server, change
apps/android/app/src/main/java/tn/esprit/libraryapp/api/RetrofitService.kt:apps/android/app/src/main/java/tn/esprit/libraryapp/api/RetrofitService.kt
BASE_URL to point to your machine’s address:Build the debug APK
- Gradle (command line)
- Task
- Android Studio
apps/android/app/build/outputs/apk/debug/app-debug.apk.Additional Gradle commands
| Action | Command | Task equivalent |
|---|---|---|
| Clean build directory | ./gradlew clean | task android:install |
| Build release APK | ./gradlew assembleRelease | task android:build:release |
| Run unit tests | ./gradlew test | task android:test |
| Run instrumentation tests | ./gradlew connectedAndroidTest | — |
All Gradle commands must be run from the
apps/android directory, or you can use the task equivalents from the project root.