v1.5.7
版本发布时间: 2017-06-26 00:17:38
lingochamp/FileDownloader最新发布版本:v1.7.5(2018-08-03 16:15:47)
Version 1.5.7
2017-06-25
New Interfaces
- Support the configuration
broadcast.completed
infiledownloader.properties
: determine whether need posts a broadcast when a task is completed. Closes #605 - Support accepting 201 http status. Closes #545
- Support pause and resume for the
FileDownloadSerialQueue
. Closes #547 - Handle the case of redirect(300、301、302、303、307、308) on FileDownloader self. Closes #611
- Deprecated the
FileDownloader#init
and add the replacerFileDownloader#setup
to let user invoke anytime before usingFiledownloader
. Closes #500
- If you want to using
broadcast.completed
and receive completed broadcast, you also need to declarefiledownloader.permission.RECEIVE_STATE
permission on the manifest, and register receiver withfiledownloader.intent.action.completed
action name and please usingFileDownloadBroadcastHandler
class to parse the receivedIntent
.- Now, rather than using
FileDownloader#init
, if you want to register your own customize components for FileDownloader please invokingFileDownloader.setupOnApplicationOnCreate(application):InitCustomMaker
on theApplication#onCreate
, otherwise you just need invokeFileDownloader.setup(Context)
anytime before usingFileDownloader
.
Fix
- Fix: fix
FileDownloadQueueSet
can't handle the case of disable wifi-required. Thanks @qtstc - Fix(output-stream): fix broken support for output-stream when it doesn't support seek. Closes #622
Enhancement
- Improve Practicability: Cover the case of reusing the downloaded processing with the different url( using with
idGenerator
). Closes #617