Merge pull request #19 from B0pol/howtorun

Add how to run changes in app: Use local version of NPE
This commit is contained in:
Tobias Groza 2020-04-19 23:32:39 +02:00 committed by GitHub
commit f8c2c3f000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 1 deletions

View File

@ -22,7 +22,24 @@ sometimes have to adjust the udev rules in order to
### Run Your Changes on the Extractor ### Run Your Changes on the Extractor
In order to use the extractor in our app, we use [JitPack](https://jitpack.io). This is a build service that can build There are several ways to test your extractor version in NewPipe. We will show you the most convenient ones:
#### Using local folder
In NewPipe app root folder, edit [settings.gradle](https://github.com/TeamNewPipe/NewPipe/blob/dev/settings.gradle) file and add this:
```
includeBuild('../NewPipeExtractor') {
dependencySubstitution {
substitute module('com.github.TeamNewPipe:NewPipeExtractor') with project(':extractor')
}
}
```
`includeBuild` should have the relative path as argument. `../NewPipeExtractor` means one folder up in hierarchy,
and the folder is exactly named `NewPipeExtractor`. If that's not the case, edit this part.
#### Using JitPack
Another way is to use [JitPack](https://jitpack.io). This is a build service that can build
maven *.jar packages for Android and Java based on GitHub or GitLab repositories. maven *.jar packages for Android and Java based on GitHub or GitLab repositories.
To use the extractor through JitPack, you need to push it to your online repository of To use the extractor through JitPack, you need to push it to your online repository of