Skip to content

Commit 7b35c9b

Browse files
chakrihackermatt-oakes
authored andcommitted
docs: Added doc for gradle task downloadDependencies (#18)
1 parent 6e52052 commit 7b35c9b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,27 @@ You will also need to ensure that you have a MacOS plan enabled if you want to b
2323
## Documentation
2424
[You can read the full documentation here](https://circleci.com/orbs/registry/orb/react-native-community/react-native).
2525

26+
## Android
27+
28+
Add this task in your <example>/app/build.gradle
29+
30+
```gradle
31+
task downloadDependencies() {
32+
description 'Download all dependencies to the Gradle cache'
33+
doLast {
34+
configurations.findAll().each { config ->
35+
if (config.name.contains("minReactNative") && config.canBeResolved) {
36+
print config.name
37+
print '\n'
38+
config.files
39+
}
40+
}
41+
}
42+
}
43+
```
44+
2645
## Example
46+
2747
Here is a full example of how the Orb can be used in a CircleCI workflow to build and test a React Native app:
2848

2949
```yaml

0 commit comments

Comments
 (0)