Skip to content

v1.0.2

Latest

Choose a tag to compare

@jeet-012 jeet-012 released this 08 Oct 23:16
0359cee

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 via SimpleDownloader.builder() or a downloader instance.
  • Added .hasListeners() and .hasListener(Listener) methods to both DownloadTask and SimpleDownloader.
  • Added .hasObservers() and .hasObserver(Observer) methods to SimpleDownloader.
  • Expanded Status with helper methods - isQueued(), isPaused(), isComplete(), isFailed(), isCancelled(), and more.
  • Added Formatter.formatTime(long timeMillis, String format) for timestamp formatting.
  • Auto-restore is now enabled by default, disable it by calling .setAutoRestore(false) via SimpleDownloader.builder().
  • 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. holdSlotOnPause is disabled by default.
  • Improved notification grouping, ongoing notification state, and foreground service handling.
  • Improved Content-Range and 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.Listener and SimpleDownloader.Listener.
  • Renamed the library package from com.jeet.simpledownloader to com.jeetarc.simpledownloader.
  • General cleanup and improvements.

Migration

1. Package Rename

The library package has been renamed to:

package com.jeetarc.simpledownloader;

Update any existing imports from com.jeet.simpledownloader to com.jeetarc.simpledownloader

2. Update Dependency

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

SimpleDownloader on GitHub:
https://github.com/jeetarc/SimpleDownloader