The developer created a mobile application for cleaning photo galleries that uses Tinder-like swipe mechanics to manage files. Users can swipe left to move files to the trash, right to keep them, or up to add them to favorites. The app categorizes media into groups such as screenshots, WhatsApp and Telegram downloads, and duplicate photo series.
The application is built using Capacitor and WebView, with animations implemented via GSAP 3 and WebGL shaders. The developer chose this architecture to maintain 60 fps performance and ensure cross-platform compatibility. The app operates without internet access, which simplifies data safety requirements, though it required custom solutions for handling media files and system permissions.
File management is handled through a custom Java plugin for Capacitor. The app uses Android's MediaStore API to move files to the system trash for 30 days or delete them permanently. Because MediaProvider updates can be asynchronous, the application includes a polling mechanism to verify file status after deletion requests.
To handle video playback within the app, the developer intercepted WebView requests to stream media directly from the MediaStore. This required implementing custom Range header handling to support video seeking and playback, as standard WebView behavior did not natively support the necessary byte-range requests for the app's requirements.
The app also includes a feature to clear application cache on Android 11 and later using the StorageManager.ACTION_CLEAR_APP_CACHE intent. This requires the MANAGE_EXTERNAL_STORAGE permission. The developer implemented a manual check to measure the freed storage space by comparing available memory before and after the system dialog execution.






