Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit 29feaeb

Browse files
Merge branch 'master' into sponsorblock
2 parents 7857ae2 + ecb8ef6 commit 29feaeb

File tree

549 files changed

+8372
-5411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

549 files changed

+8372
-5411
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The [checkStyle](https://github.com/checkstyle/checkstyle) plugin verifies that
6868
- Go to `File -> Settings -> Plugins`, search for `checkstyle` and install `CheckStyle-IDEA`.
6969
- Go to `File -> Settings -> Tools -> Checkstyle`.
7070
- Add NewPipe's configuration file by clicking the `+` in the right toolbar of the "Configuration File" list.
71-
- Under the "Use a local Checkstyle file" bullet, click on `Browse` and pick the file named `checkstyle.xml` in the project's root folder.
71+
- Under the "Use a local Checkstyle file" bullet, click on `Browse` and, enter `checkstyle` folder under the project's root path and pick the file named `checkstyle.xml`.
7272
- Enable "Store relative to project location" so that moving the directory around does not create issues.
7373
- Insert a description in the top bar, then click `Next` and then `Finish`.
7474
- Activate the configuration file you just added by enabling the checkbox on the left.

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
branches:
77
- dev
88
- master
9+
- release/**
910
paths-ignore:
1011
- 'README.md'
1112
- 'doc/**'
@@ -31,7 +32,7 @@ jobs:
3132
build-and-test-jvm:
3233
runs-on: ubuntu-latest
3334
steps:
34-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v3
3536
- uses: gradle/wrapper-validation-action@v1
3637

3738
- name: create and checkout branch
@@ -40,7 +41,7 @@ jobs:
4041
run: git checkout -B ${{ github.head_ref }}
4142

4243
- name: set up JDK 11
43-
uses: actions/setup-java@v2
44+
uses: actions/setup-java@v3
4445
with:
4546
java-version: 11
4647
distribution: "temurin"
@@ -50,7 +51,7 @@ jobs:
5051
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint
5152

5253
- name: Upload APK
53-
uses: actions/upload-artifact@v2
54+
uses: actions/upload-artifact@v3
5455
with:
5556
name: app
5657
path: app/build/outputs/apk/debug/*.apk
@@ -64,10 +65,10 @@ jobs:
6465
# api-level 19 is min sdk, but throws errors related to desugaring
6566
api-level: [ 21, 29 ]
6667
steps:
67-
- uses: actions/checkout@v2
68+
- uses: actions/checkout@v3
6869

6970
- name: set up JDK 11
70-
uses: actions/setup-java@v2
71+
uses: actions/setup-java@v3
7172
with:
7273
java-version: 11
7374
distribution: "temurin"
@@ -82,7 +83,7 @@ jobs:
8283
script: ./gradlew connectedCheck --stacktrace
8384

8485
- name: Upload test report when tests fail # because the printed out stacktrace (console) is too short, see also #7553
85-
uses: actions/upload-artifact@v2
86+
uses: actions/upload-artifact@v3
8687
if: failure()
8788
with:
8889
name: android-test-report-api${{ matrix.api-level }}
@@ -91,19 +92,19 @@ jobs:
9192
sonar:
9293
runs-on: ubuntu-latest
9394
steps:
94-
- uses: actions/checkout@v2
95+
- uses: actions/checkout@v3
9596
with:
9697
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
9798

9899
- name: Set up JDK 11
99-
uses: actions/setup-java@v2
100+
uses: actions/setup-java@v3
100101
with:
101102
java-version: 11 # Sonar requires JDK 11
102103
distribution: "temurin"
103104
cache: 'gradle'
104105

105106
- name: Cache SonarCloud packages
106-
uses: actions/cache@v2
107+
uses: actions/cache@v3
107108
with:
108109
path: ~/.sonar/cache
109110
key: ${{ runner.os }}-sonar

.github/workflows/image-minimizer.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515

16-
- uses: actions/setup-node@v2
16+
- uses: actions/setup-node@v3
1717
with:
1818
node-version: 16
1919

2020
- name: Install probe-image-size
2121
run: npm i [email protected] --ignore-scripts
2222

2323
- name: Minimize simple images
24-
uses: actions/github-script@v5
24+
uses: actions/github-script@v6
2525
timeout-minutes: 3
2626
with:
2727
script: |

LICENSE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GNU GENERAL PUBLIC LICENSE
22
Version 3, 29 June 2007
33

4-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
55
Everyone is permitted to copy and distribute verbatim copies
66
of this license document, but changing it is not allowed.
77

@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
645645
GNU General Public License for more details.
646646

647647
You should have received a copy of the GNU General Public License
648-
along with this program. If not, see <http://www.gnu.org/licenses/>.
648+
along with this program. If not, see <https://www.gnu.org/licenses/>.
649649

650650
Also add information on how to contact you by electronic and paper mail.
651651

@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
664664
You should also get your employer (if you work as a programmer) or school,
665665
if any, to sign a "copyright disclaimer" for the program, if necessary.
666666
For more information on this, and how to apply and follow the GNU GPL, see
667-
<http://www.gnu.org/licenses/>.
667+
<https://www.gnu.org/licenses/>.
668668

669669
The GNU General Public License does not permit incorporating your program
670670
into proprietary programs. If your program is a subroutine library, you
671671
may consider it more useful to permit linking proprietary applications with
672672
the library. If this is what you want to do, use the GNU Lesser General
673673
Public License instead of this License. But first, please read
674-
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
674+
<https://www.gnu.org/licenses/why-not-lgpl.html>.

app/build.gradle

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ plugins {
99

1010
android {
1111
compileSdk 31
12-
buildToolsVersion '30.0.3'
12+
buildToolsVersion '31.0.0'
1313

1414
defaultConfig {
1515
applicationId "org.polymorphicshade.newpipe"
1616
resValue "string", "app_name", "NewPipe SponsorBlock"
1717
minSdk 19
1818
targetSdk 29
19-
versionCode 985
20-
versionName "0.22.2"
19+
versionCode 986
20+
versionName "0.23.0"
2121

2222
multiDexEnabled true
2323

@@ -98,13 +98,14 @@ android {
9898
}
9999

100100
ext {
101-
checkstyleVersion = '9.2.1'
101+
checkstyleVersion = '10.0'
102102

103103
androidxLifecycleVersion = '2.3.1'
104-
androidxRoomVersion = '2.3.0'
104+
androidxRoomVersion = '2.4.2'
105+
androidxWorkVersion = '2.7.1'
105106

106107
icepickVersion = '3.2.0'
107-
exoPlayerVersion = '2.14.2'
108+
exoPlayerVersion = '2.17.1'
108109
googleAutoServiceVersion = '1.0.1'
109110
groupieVersion = '2.10.0'
110111
markwonVersion = '4.6.2'
@@ -121,7 +122,7 @@ configurations {
121122
}
122123

123124
checkstyle {
124-
getConfigDirectory().set(rootProject.file("."))
125+
getConfigDirectory().set(rootProject.file("checkstyle"))
125126
ignoreFailures false
126127
showViolations true
127128
toolVersion = checkstyleVersion
@@ -189,28 +190,28 @@ dependencies {
189190
// name and the commit hash with the commit hash of the (pushed) commit you want to test
190191
// This works thanks to JitPack: https://jitpack.io/
191192
implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'
192-
implementation 'com.github.TeamNewPipe:NewPipeExtractor:b77c72fb8826c3ffca0be5f96b066cca0a07b1c9'
193+
implementation 'com.github.TeamNewPipe:NewPipeExtractor:ac1c22d81c65b7b0c5427f4e1989f5256d617f32'
193194

194195
/** Checkstyle **/
195196
checkstyle "com.puppycrawl.tools:checkstyle:${checkstyleVersion}"
196-
ktlint 'com.pinterest:ktlint:0.43.2'
197+
ktlint 'com.pinterest:ktlint:0.44.0'
197198

198199
/** Kotlin **/
199200
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}"
200201

201202
/** AndroidX **/
202203
implementation 'androidx.appcompat:appcompat:1.3.1'
203204
implementation 'androidx.cardview:cardview:1.0.0'
204-
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
205+
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
205206
implementation 'androidx.core:core-ktx:1.6.0'
206207
implementation 'androidx.documentfile:documentfile:1.0.1'
207208
implementation 'androidx.fragment:fragment-ktx:1.3.6'
208209
implementation "androidx.lifecycle:lifecycle-livedata:${androidxLifecycleVersion}"
209210
implementation "androidx.lifecycle:lifecycle-viewmodel:${androidxLifecycleVersion}"
210-
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
211-
implementation 'androidx.media:media:1.4.3'
211+
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
212+
implementation 'androidx.media:media:1.5.0'
212213
implementation 'androidx.multidex:multidex:2.0.1'
213-
implementation 'androidx.preference:preference:1.1.1'
214+
implementation 'androidx.preference:preference:1.2.0'
214215
implementation 'androidx.recyclerview:recyclerview:1.2.1'
215216
implementation "androidx.room:room-runtime:${androidxRoomVersion}"
216217
implementation "androidx.room:room-rxjava3:${androidxRoomVersion}"
@@ -220,7 +221,10 @@ dependencies {
220221
// https://developer.android.com/jetpack/androidx/releases/viewpager2#1.1.0-alpha01
221222
implementation 'androidx.viewpager2:viewpager2:1.1.0-beta01'
222223
implementation 'androidx.webkit:webkit:1.4.0'
223-
implementation 'com.google.android.material:material:1.4.0'
224+
implementation 'com.google.android.material:material:1.5.0'
225+
implementation "androidx.work:work-runtime:${androidxWorkVersion}"
226+
implementation "androidx.work:work-runtime-ktx:${androidxWorkVersion}"
227+
implementation "androidx.work:work-rxjava3:${androidxWorkVersion}"
224228

225229
/** Third-party libraries **/
226230
// Instance state boilerplate elimination
@@ -246,8 +250,6 @@ dependencies {
246250
implementation "com.github.lisawray.groupie:groupie:${groupieVersion}"
247251
implementation "com.github.lisawray.groupie:groupie-viewbinding:${groupieVersion}"
248252

249-
// Circular ImageView
250-
implementation "de.hdodenhof:circleimageview:3.1.0"
251253
// Image loading
252254
//noinspection GradleDependency --> 2.8 is the last version, not 2.71828!
253255
implementation "com.squareup.picasso:picasso:2.8"

app/proguard-rules.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@
5151
private void writeObject(java.io.ObjectOutputStream);
5252
private void readObject(java.io.ObjectInputStream);
5353
}
54+
55+
# for some reason NotificationModeConfigFragment wasn't kept (only referenced in a preference xml)
56+
-keep class org.schabi.newpipe.settings.notifications.** { *; }

0 commit comments

Comments
 (0)