mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 22:25:44 +03:00
SETUP.md: update instructions to link library locally
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
d23d20f31b
commit
817bbe6d69
1 changed files with 17 additions and 14 deletions
23
SETUP.md
23
SETUP.md
|
@ -89,20 +89,23 @@ The app is currently equipped to be built with three flavours:
|
||||||
#### 1. Direct usage of library project
|
#### 1. Direct usage of library project
|
||||||
|
|
||||||
This is handy if one wants to make changes both to files app and library:
|
This is handy if one wants to make changes both to files app and library:
|
||||||
- in files app root: ln -s $pathToLibraryProject nextcloud-android-library
|
- In the repository root: `ln -s [path to library clone] nextcloud-android-library`
|
||||||
- uncomment in build.gradle:
|
- Add the following to `settings.gradle`:
|
||||||
- `// implementation project('nextcloud-android-library')`
|
```groovy
|
||||||
- comment in build.gradle:
|
include ':nextcloud-android-library'
|
||||||
```
|
```
|
||||||
|
- In `app/build.gradle`, replace the following:
|
||||||
|
```groovy
|
||||||
implementation ("com.github.nextcloud:android-library:$androidLibraryVersion") {
|
implementation ("com.github.nextcloud:android-library:$androidLibraryVersion") {
|
||||||
exclude group: 'org.ogce', module: 'xpp3' // unused in Android and brings wrong Junit version
|
exclude group: 'org.ogce', module: 'xpp3'
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
- comment in settings.gradle:
|
with:
|
||||||
- `include ':'`
|
``` groovy
|
||||||
- add in settings.gradle:
|
implementation project(':nextcloud-android-library')
|
||||||
- `include 'nextcloud-android-library'`
|
```
|
||||||
- sync project with gradle files
|
|
||||||
|
- Sync project with gradle files
|
||||||
|
|
||||||
Now every change in library can be directly used in files app.
|
Now every change in library can be directly used in files app.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue