From 2230d79abe4044cc39bdad18f415bb2a14425661 Mon Sep 17 00:00:00 2001 From: Tonyo Francis Date: Tue, 24 Apr 2018 22:04:59 -0400 Subject: [PATCH] updated version and readme --- CHANGELOG | 10 ++++++++++ README.md | 10 +++++----- versions.gradle | 4 ++-- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 49bbebae..88662702 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,13 @@ +Version 2.0.0-RC17 +- Added new method getRequestOutputStream(request: Request, filePointerOffset: Long): OutputStream? on Downloader interface. + You can now provide Fetch a custom downloader that provides an OutputStream per Download. See Downloader.kt documentation for more information. + Also see sample app for more information on custom downloader. + +Breaking Changes +- Added new method getRequestOutputStream(request: Request, filePointerOffset: Long): OutputStream? on Downloader interface. +- Added new fields id, file, and tag on Downloader.Request class. +- Added new field request on Downloader.Response class. + Version 2.0.0-RC16 - Fix for retry on network gain. Thanks to dougkeen - Library updates diff --git a/README.md b/README.md index 6fdaa1f7..f5bd1b1d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![Build Status](https://travis-ci.org/tonyofrancis/Fetch.svg?branch=v2)](https://travis-ci.org/tonyofrancis/Fetch) -[ ![Download](https://api.bintray.com/packages/tonyofrancis/maven/fetch2/images/download.svg?version=2.0.0-RC16) ](https://bintray.com/tonyofrancis/maven/fetch2/2.0.0-RC16/link) +[ ![Download](https://api.bintray.com/packages/tonyofrancis/maven/fetch2/images/download.svg?version=2.0.0-RC17) ](https://bintray.com/tonyofrancis/maven/fetch2/2.0.0-RC17/link) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android%20Networking-blue.svg?style=flat)](https://android-arsenal.com/details/1/5196) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/tonyofrancis/Fetch/blob/master/LICENSE) @@ -45,7 +45,7 @@ How to use Fetch Using Fetch is easy! Just add the Gradle dependency to your application's build.gradle file. ```java -implementation "com.tonyodev.fetch2:fetch2:2.0.0-RC16" +implementation "com.tonyodev.fetch2:fetch2:2.0.0-RC17" ``` Next, get an instance of Fetch using the builder, and request a download. @@ -244,7 +244,7 @@ to use the OkHttp Downloader instead. You can create your own custom downloaders if necessary. See the Java docs for details. ```java -implementation "com.tonyodev.fetch2downloaders:fetch2downloaders:2.0.0-RC16" +implementation "com.tonyodev.fetch2downloaders:fetch2downloaders:2.0.0-RC17" ``` Set the OkHttp Downloader for Fetch to use. ```java @@ -265,7 +265,7 @@ If you would like to take advantage of RxJava2 features when using Fetch, add the following gradle dependency to your application's build.gradle file. ```java -implementation "com.tonyodev.fetch2rx:fetch2rx:2.0.0-RC16" +implementation "com.tonyodev.fetch2rx:fetch2rx:2.0.0-RC17" ``` RxFetch makes it super easy to enqueue download requests and query downloads using rxJava2 functional methods. @@ -297,7 +297,7 @@ Fetch1 Migration Migrate downloads from Fetch1 to Fetch2 using the migration assistant. Add the following gradle dependency to your application's build.gradle file. ```java -implementation "com.tonyodev.fetchmigrator:fetchmigrator:2.0.0-RC16" +implementation "com.tonyodev.fetchmigrator:fetchmigrator:2.0.0-RC17" ``` Then run the Migrator. diff --git a/versions.gradle b/versions.gradle index 6bdc68f7..00f7157d 100644 --- a/versions.gradle +++ b/versions.gradle @@ -16,6 +16,6 @@ ext { rxAndroid2_version = "2.0.2" timber_version = "4.7.0" novoda_bintray_version = "0.8.0" - library_version = "2.0.0-RC16" - library_version_code = 17 + library_version = "2.0.0-RC17" + library_version_code = 18 } \ No newline at end of file