- decode wallpapers with ImageDecoder only; the BitmapFactory and manual EXIF fallback could not be needed at minSdk 31 - remove BootReceiver: WorkManager reschedules periodic work after reboot - replace the in-process reload broadcast with a shared flow - remove the Room enum converter; Room stores enums by name - stop importing SVG, which neither apply path can decode, and drop coil-svg - remove the unused special-use foreground service permission
150 lines
6.2 KiB
Markdown
150 lines
6.2 KiB
Markdown
<div align="center">
|
||
<img style="display: block" src="https://github.com/user-attachments/assets/e8fb14f5-ec8e-440e-a2ac-8065322b0e28" alt="">
|
||
<h1>Paperize</h1>
|
||
<p><strong>A dynamic wallpaper changer that keeps your device's aesthetic fresh and exciting</strong></p>
|
||
|
||
[](https://github.com/Anthonyy232/Paperize/releases)
|
||
[](https://github.com/Anthonyy232/Paperize/releases/latest)
|
||
[](LICENSE)
|
||
[](https://f-droid.org/en/packages/com.anthonyla.paperize/)
|
||
|
||
[](https://crowdin.com/project/paperize)
|
||
</div>
|
||
|
||
---
|
||
|
||
## Features
|
||
|
||
- **Dynamic Wallpaper Changer** — Set your wallpaper to change at specific time intervals
|
||
- **Static & Live Wallpapers** — Choose between traditional static wallpapers or smooth live wallpaper transitions
|
||
- **Multiple Image Formats** — Supports JPG, PNG, WEBP, AVIF, HEIC/HEIF, BMP, GIF, and TIFF
|
||
- **Folder Support** — Organize wallpapers into folders for auto-updating
|
||
- **Dual Screen Support** — Choose the same or separate albums for home and lock screen
|
||
- **Wallpaper Effects** — Apply various effects including brightness, blur, scaling, vignette, and more
|
||
- **On-Device Storage** — All wallpapers and settings stored locally on your device
|
||
|
||
---
|
||
|
||
## Download
|
||
|
||
[<img src="https://github.com/Anthonyy232/Paperize/assets/60626873/1c034414-21cd-4a0a-838d-89fe7bd56910" alt="Download from GitHub" height="60">](https://github.com/Anthonyy232/Paperize/releases)
|
||
[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" alt="Get it on F-Droid" height="60">](https://f-droid.org/en/packages/com.anthonyla.paperize/)
|
||
[<img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png" alt="Get it on IzzyOnDroid" height="60">](https://apt.izzysoft.de/fdroid/index/apk/com.anthonyla.paperize)
|
||
|
||
---
|
||
|
||
## Localization
|
||
|
||
Help translate Paperize into your language! Currently, most translations are provided using machine translation — contributions from native speakers are greatly appreciated.
|
||
|
||
**[Contribute on Crowdin →](https://crowdin.com/project/paperize/invite?h=d8d7a7513d2beb0c96ba9b2a5f85473e2084922)**
|
||
|
||
---
|
||
|
||
## Tech Stack
|
||
|
||
| Category | Technology |
|
||
|----------|------------|
|
||
| **Language** | [Kotlin](https://kotlinlang.org/) |
|
||
| **UI Framework** | [Jetpack Compose](https://developer.android.com/develop/ui/compose) |
|
||
| **Design System** | [Material 3](https://m3.material.io/) |
|
||
| **Dependency Injection** | [Dagger Hilt](https://dagger.dev/hilt/) |
|
||
| **Database** | [Room](https://developer.android.com/training/data-storage/room) |
|
||
| **Image Loading** | [Coil](https://coil-kt.github.io/coil/) |
|
||
|
||
<details>
|
||
<summary><b>View all dependencies</b></summary>
|
||
|
||
- [Zoomable](https://github.com/usuiat/Zoomable) — Zoomable and pannable views
|
||
|
||
</details>
|
||
|
||
---
|
||
|
||
## Architecture
|
||
|
||
- `AlbumRepository` owns library mutations. Imports, removal, covers,
|
||
and queue invalidation use Room transactions; provider scans run outside them.
|
||
- `DocumentSource` and `WallpaperRenderer` (domain interfaces, Android implementations in
|
||
`data/source`) keep use cases free of document-provider and bitmap-decoding details.
|
||
- `WallpaperRepository` owns rotation queues and current-wallpaper records.
|
||
Queue creation checks and writes in one transaction, including synchronized screens.
|
||
Static changes and the live wallpaper engine both dequeue through
|
||
`ChangeWallpaperUseCase.dequeueNext`.
|
||
- `WallpaperController` shares static wallpaper application between the service
|
||
and worker. Callers hold `WallpaperChangeLock` through application and schedule
|
||
updates. The controller recycles applied bitmaps.
|
||
- `SettingsCoordinator` persists wallpaper settings edits and applies their side effects
|
||
(schedules, queues, immediate changes) one at a time; ViewModels only hold UI state.
|
||
`WallpaperChangeService` helpers are the single way to start a manual change.
|
||
- Repositories and use cases throw on failure. ViewModels, services, and workers
|
||
catch at the edge, using `runCatchingCancellable` where they need a `Result`, so
|
||
coroutine cancellation always propagates. Progress belongs to UI state.
|
||
- Room migrations preserve versions 1–3 when upgrading to version 4. New schema
|
||
changes must include a migration; destructive fallback is disabled.
|
||
|
||
## Building from Source
|
||
|
||
### Prerequisites
|
||
|
||
| Requirement | Version |
|
||
|-------------|---------|
|
||
| Java | 17 |
|
||
| Android Gradle Plugin | 9.3.2 |
|
||
| Gradle | 9.7.1 |
|
||
| Compile SDK | 37 (Android 17) |
|
||
| Minimum SDK | 31 (Android 12) |
|
||
| Target SDK | 36 |
|
||
|
||
### Build Steps
|
||
|
||
1. **Clone the repository**
|
||
```bash
|
||
git clone https://github.com/Anthonyy232/Paperize.git
|
||
cd Paperize
|
||
```
|
||
|
||
2. **Open in Android Studio**
|
||
- Launch Android Studio
|
||
- Select `File > Open` and navigate to the cloned repository
|
||
|
||
3. **Build and Run**
|
||
- Click `▶ Run` to build and install on a connected device, or
|
||
- Select `Build > Generate Signed Bundle / APK` to create a signed release
|
||
|
||
---
|
||
|
||
### Verification
|
||
|
||
Set `ANDROID_HOME` to your Android SDK directory, or configure `sdk.dir` in
|
||
`local.properties`. Use the checked-in Gradle wrapper:
|
||
|
||
```bash
|
||
./gradlew testDebugUnitTest lintDebug assembleDebug
|
||
./gradlew connectedDebugAndroidTest
|
||
```
|
||
|
||
On Windows, use `gradlew.bat`. Device tests require a running Android emulator or
|
||
connected device (API 31 or newer). They cover rendering, scheduling, document
|
||
provider failures, import rollback, album cleanup, and library controls.
|
||
|
||
## Contributing
|
||
|
||
Contributions are welcome! Feel free to:
|
||
|
||
- Report bugs by opening an issue
|
||
- Suggest features or improvements
|
||
- Submit pull requests
|
||
|
||
---
|
||
|
||
## Support
|
||
|
||
If you find Paperize useful, consider supporting development through [GitHub Sponsors](https://github.com/sponsors/Anthonyy232) (one-time or monthly). Thank you!
|
||
|
||
---
|
||
|
||
## License
|
||
|
||
This project is licensed under the **GNU General Public License v3.0** — see the [LICENSE](LICENSE) file for details.
|