Skip to content
This repository was archived by the owner on Feb 27, 2022. It is now read-only.

Commit f7267b0

Browse files
Mark TolmacsMark Tolmacs
authored andcommitted
Merge with upstream
2 parents 44eaa8c + f854f7f commit f7267b0

File tree

11 files changed

+354
-224
lines changed

11 files changed

+354
-224
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ The real challenge of using this method is making sure the app's UI is always up
3030
For **`RN <= 0.57.0`** use `$ yarn add [email protected]`
3131

3232
### Mostly automatic installation
33+
Any React Native version **`>= 0.60`** supports autolinking so nothing should be done.
34+
35+
For anything **`< 0.60`** run the following link command
3336

3437
`$ react-native link react-native-background-downloader`
3538

android/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@ android {
1818
dependencies {
1919
//noinspection GradleDynamicVersion
2020
implementation 'com.facebook.react:react-native:+'
21-
implementation "com.tonyodev.fetch2:fetch2:3.0.3"
21+
if (project.properties['android.useAndroidX'] == true) {
22+
implementation "androidx.tonyodev.fetch2:xfetch2:3.1.4"
23+
} else {
24+
implementation "com.tonyodev.fetch2:fetch2:3.0.10"
25+
}
2226
}

0 commit comments

Comments
 (0)