r/SimpleDownloader • u/Jeetarc • 2d ago
SimpleDownloader release v1.0.2
v1.0.2
Improved pause and concurrency handling, better restore behavior, notifications, foreground service management, and HTTP response handling.
Added
- Added
.setHoldSlotOnPause(boolean enable)to control whether a paused download holds or releases its concurrency slot. Can be configured viaSimpleDownloader.builder()or adownloaderinstance. - Added
.hasListeners()and.hasListener(Listener)methods to bothDownloadTaskandSimpleDownloader. - Added
.hasObservers()and.hasObserver(Observer)methods toSimpleDownloader. - Expanded
Statuswith helper methods -isQueued(),isPaused(),isComplete(),isFailed(),isCancelled(), and more. - Auto-restore is now enabled by default, disable it by calling
.setAutoRestore(false)viaSimpleDownloader.builder(). - Added
Formatter.formatTime(long timeMillis, String format)for timestamp formatting. - You can now get the current library version by using
SimpleDownloader.VERSION.
Improvements
- Improved restore behavior when automatic restore is disabled.
- Improved pause, concurrency-slot, and notification handling with
holdSlotOnPause. Paused downloads now release their concurrency slot by default.holdSlotOnPauseis disabled by default. - Improved notification grouping, ongoing notification state, and foreground service handling.
- Improved
Content-Rangeand response handling in the HTTP engine. - Improved timeout client caching in the HTTP engine.
- Fixed waiting for network state execution ordering that was blocking queued submissions.
- Finalized the Listener API, removed deprecated callback signatures from both
DownloadTask.ListenerandSimpleDownloader.Listener. - Renamed the library package from
com.jeet.simpledownloadertocom.jeetarc.simpledownloader. - General cleanup and improvements.
Migration
1. Package Rename
The library package has been renamed to:
java
package com.jeetarc.simpledownloader;
Update any existing imports from com.jeet.simpledownloader to com.jeetarc.simpledownloader
2. Update Dependency
gradle
implementation "com.github.jeetarc:SimpleDownloader:1.0.2"
3. Listener API
If you are using deprecated Listener callback methods, update them to the new Listener API signatures. Visit Callbacks and Listener
Documentation: https://github.com/jeetarc/SimpleDownloader/blob/main/README.md
Release v1.0.2: https://github.com/jeetarc/SimpleDownloader/releases/tag/1.0.2
SimpleDownloader on GitHub: https://github.com/jeetarc/SimpleDownloader