Setup & Build Guide - ClyoWallpaper
This guide walks you through compiling, installing, and testing the ClyoWallpaper application.
Prerequisites
Before building, verify the following are configured on your developer workstation:
- Android Studio: Version Koala (2024.1.1) or newer.
- Java Development Kit (JDK): JDK 17 or higher.
- Android SDK: API Level 34 (Android 14) installed via SDK Manager.
Getting Started
1. Project Import
- Launch Android Studio.
- Choose Open and select the
/home/weexnes/ClyoWallpaper/ClyoWallpaperdirectory. - Wait for the build system to sync.
2. Running on Device
- Enable developer options and USB debugging on your Android phone.
- Select
appfrom the run configuration selector. - Click Run to install.
3. CLI Command Reference
Run these commands from the project root:
- Assemble Debug APK:
./gradlew assembleDebug - Clean Build Cache:
./gradlew clean
Service Configuration & Testing
Since the background scheduler handles network downloads, ensure that:
- Your server IP/domain is accessible from the Android device. (If testing on emulator, use
http://10.0.2.2:3000to access localhost). - Battery saver is disabled if you want precise background interval execution.
- Ensure the app is granted
POST_NOTIFICATIONSpermission (Android 13+) so that the persistent foreground cycle notification can render.