Releases: lingochamp/FileDownloader
Releases · lingochamp/FileDownloader
v1.6.5
v1.6.4
Version 1.6.4
2017-08-21
New Interfaces
- Add
NoDatabaseImpl
for the case of some users need a no-database FileDownloader. Refs #727
Enhancement
- Import Performance: Using the
AtomicLong
instead of lock to make better efficiency on increase progressing.
Fix
v1.6.3
Version 1.6.3
2017-07-29
Fix
v1.6.2
v1.6.1
Enhancement
- Import Practicability: Throw
GiveUpException
directly when the responsecontent-length
isn't equal to the expectcontent-length
calculated from range. Closes #636
Fix
- Fix: Fix sync twice when downloading paused/error.
- Fix: fix file is destroyed when you download chunked file from breakpoint.
v1.6.0
v1.5.9
Fix
- Fix(duplicate-permission): fix
INSTALL_FAILED_DUPLICATE_PERMISSION
when there are more than one application using FileDownloader lib 1.5.7 or more newer since Android 5.0. This problem is raised since v1.5.7, because of we declared permission for receiving completed status broadcast more secure, now we remove it to fix this problem. Closes #641
v1.5.8
v1.5.7
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
v1.5.6
Version 1.5.6
2017-06-18
Fix
- Fix(crash): fix raise NPE crash when require paused a task and invoking
findRunningTaskIdBySameTempPath
at the same time. Closes #613 - Fix(crash): fix raise
IllegalArgumentException
when the response code is 206 and its ETAG is changed. Closes #612 - Fix(crash): fix raise
FileDownloadNetworkPolicyException
unhandled exception, when user enable wifi-required but no wifi-state. Thanks @qtstc - Fix(crash): fix raise
IllegalStateException
when user upgrades fromv1.4.3
or older version tov1.5.2
or newer version directly and some more conditions, more detail please move to #610 - Fix(crash): fix some small probability case raise
IllegalStateException
when callback-flow has been finalized but occurring completed/error at the same time. - Fix(no-response): fix no-response after start download and receive connected callback because the resource state has been changed during the connection of verification and connections of fetch data.