Update README.md

This commit is contained in:
Alok 2022-09-18 09:05:56 +05:30 committed by GitHub
parent 14ef430546
commit 86a122be3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -10,8 +10,15 @@ NewPipe Extractor is available at JitPack's Maven repo.
If you're using Gradle, you could add NewPipe Extractor as a dependency with the following steps:
**Gradle older versions**
1. Add `maven { url 'https://jitpack.io' }` to the `repositories` in your `build.gradle`.
2. Add `implementation 'com.github.TeamNewPipe:NewPipeExtractor:INSERT_VERSION_HERE'` to the `dependencies` in your `build.gradle`. Replace `INSERT_VERSION_HERE` with the [latest release](https://github.com/TeamNewPipe/NewPipeExtractor/releases/latest).
2. Add `implementation 'com.github.TeamNewPipe:NewPipeExtractor:INSERT_VERSION_HERE'` to the `dependencies` in your `build.gradle`.
**Gradle v6.8 and above**
1. Add `maven { url 'https://jitpack.io' }` to the `repositories` of `dependencyResolutionManagement` block in project's `settings.gradle`.
2. Add `implementation 'com.github.TeamNewPipe.NewPipeExtractor:NewPipeExtractor:v<INSERT_VERSION_HERE>'` to the `dependencies` in your `build.gradle`.
Replace `INSERT_VERSION_HERE` with the [latest release](https://github.com/TeamNewPipe/NewPipeExtractor/releases/latest).
**Note:** To use NewPipe Extractor in projects with a `minSdkVersion` below 26, [API desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring) is required.