You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,16 @@ If you're using Gradle, you could add NewPipe Extractor as a dependency with the
12
12
13
13
1. Add `maven { url 'https://jitpack.io' }` to the `repositories` in your `build.gradle`.
14
14
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).
15
+
3. If you are using tools to minimize your project, make sure to keep the files below, by e.g. adding the following lines to your proguard file:
16
+
```
17
+
## Rules for NewPipeExtractor
18
+
-keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; }
19
+
-keep class org.mozilla.javascript.** { *; }
20
+
-keep class org.mozilla.classfile.ClassFileWriter
21
+
-dontwarn org.mozilla.javascript.tools.**
22
+
```
15
23
16
-
**Note:** To use NewPipe Extractor in projects with a `minSdk` below 26, [API desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring) is required. If the `minSdk` is below 19, the `desugar_jdk_libs_nio` artifact is required, which requires Android Gradle Plugin (AGP) version 7.4.0.
24
+
**Note:** To use NewPipe Extractor in Android projects with a `minSdk` below 26, [API desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring) is required. If the `minSdk` is below 19, the `desugar_jdk_libs_nio` artifact is required, which requires Android Gradle Plugin (AGP) version 7.4.0.
17
25
18
26
### Testing changes
19
27
@@ -50,7 +58,7 @@ The following sites are currently supported:
0 commit comments