1
-
2
- [ ![ Build Status] ( https://travis-ci.org/tonyofrancis/Fetch.svg?branch=v2 )] ( https://travis-ci.org/tonyofrancis/Fetch )
3
1
[ ![ Android Arsenal] ( https://img.shields.io/badge/Android%20Arsenal-Android%20Networking-blue.svg?style=flat )] ( https://android-arsenal.com/details/1/5196 )
4
2
[ ![ License] ( https://img.shields.io/badge/license-Apache%202.0-blue.svg )] ( https://github.com/tonyofrancis/Fetch/blob/master/LICENSE )
5
3
@@ -52,7 +50,8 @@ in the Manifest.
52
50
How to use Fetch
53
51
----------------
54
52
55
- Using Fetch is easy! Just add the following to your project's build.gradle file.
53
+ Using Fetch is easy! Just add the following to your project's ` build.gradle ` file. In newer Android
54
+ Studio projects add this to ` settings.gradle `
56
55
``` groovy
57
56
allprojects {
58
57
repositories {
@@ -63,7 +62,7 @@ allprojects {
63
62
64
63
Add the Gradle dependency to your application's build.gradle file.
65
64
``` groovy
66
- implementation "androidx.tonyodev. fetch2:xfetch2:3.2.3 "
65
+ implementation "com.github.tonyofrancis.Fetch: fetch2:3.3.0 "
67
66
```
68
67
69
68
Next, get an instance of Fetch and request a download.
@@ -229,7 +228,7 @@ to use the OkHttp Downloader instead. You can create your custom downloaders
229
228
if necessary. See the Java docs for details.
230
229
231
230
``` groovy
232
- implementation "androidx.tonyodev. fetch2okhttp:xfetch2okhttp:3.2.3 "
231
+ implementation "com.github.tonyofrancis.Fetch: fetch2okhttp:3.3.0 "
233
232
```
234
233
235
234
Set the OkHttp Downloader for Fetch to use.
@@ -251,7 +250,7 @@ If you would like to take advantage of RxJava2 features when using Fetch,
251
250
add the following gradle dependency to your application's build.gradle file.
252
251
253
252
``` groovy
254
- implementation "androidx.tonyodev. fetch2rx:xfetch2rx:3.2.3 "
253
+ implementation "com.github.tonyofrancis.Fetch: fetch2rx:3.3.0 "
255
254
```
256
255
257
256
RxFetch makes it super easy to enqueue download requests and query downloads using rxJava2 functional methods.
@@ -288,7 +287,7 @@ added in the coming days.
288
287
Start using FetchFileServer by adding the gradle dependency to your application's build.gradle file.
289
288
290
289
``` groovy
291
- implementation "androidx.tonyodev. fetch2fileserver:xfetch2fileserver:3.2.3 "
290
+ implementation "com.github.tonyofrancis.Fetch: fetch2fileserver:3.3.0 "
292
291
```
293
292
294
293
Start a FetchFileServer instance and add resource files that it can serve to connected clients.
@@ -398,7 +397,7 @@ Fetch1 Migration
398
397
Migrate downloads from Fetch1 to Fetch2 using the migration assistant. Add the following gradle dependency to your application's build.gradle file.
399
398
400
399
``` groovy
401
- implementation "androidx.tonyodev. fetchmigrator:xfetchmigrator:3.2.3 "
400
+ implementation "com.github.tonyofrancis.Fetch: fetchmigrator:3.3.0 "
402
401
```
403
402
404
403
Then run the Migrator.
0 commit comments