Skip to content

Commit bfefd43

Browse files
committed
Merge branch 'dev' into refactor
2 parents dd917ca + c169232 commit bfefd43

File tree

10 files changed

+50
-168
lines changed

10 files changed

+50
-168
lines changed

app/proguard-rules.pro

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
-dontwarn javax.script.**
1717
-keep class jdk.dynalink.** { *; }
1818
-dontwarn jdk.dynalink.**
19-
# Rules for jsoup
20-
# Ignore intended-to-be-optional re2j classes - only needed if using re2j for jsoup regex
21-
# jsoup safely falls back to JDK regex if re2j not on classpath, but has concrete re2j refs
22-
# See https://github.com/jhy/jsoup/issues/2459 - may be resolved in future, then this may be removed
23-
-dontwarn com.google.re2j.**
2419

2520
## Rules for ExoPlayer
2621
-keep class com.google.android.exoplayer2.** { *; }

app/src/main/java/org/schabi/newpipe/fragments/list/kiosk/KioskFragment.java

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2017-2024 NewPipe contributors <https://newpipe.net>
3+
* SPDX-License-Identifier: GPL-3.0-or-later
4+
*/
5+
16
package org.schabi.newpipe.fragments.list.kiosk;
27

38
import android.os.Bundle;
@@ -33,30 +38,6 @@
3338

3439
import io.reactivex.rxjava3.core.Single;
3540

36-
/**
37-
* Created by Christian Schabesberger on 23.09.17.
38-
* <p>
39-
* Copyright (C) Christian Schabesberger 2017 <chris.schabesberger@mailbox.org>
40-
* KioskFragment.java is part of NewPipe.
41-
* </p>
42-
* <p>
43-
* NewPipe is free software: you can redistribute it and/or modify
44-
* it under the terms of the GNU General Public License as published by
45-
* the Free Software Foundation, either version 3 of the License, or
46-
* (at your option) any later version.
47-
* </p>
48-
* <p>
49-
* NewPipe is distributed in the hope that it will be useful,
50-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
51-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52-
* GNU General Public License for more details.
53-
* </p>
54-
* <p>
55-
* You should have received a copy of the GNU General Public License
56-
* along with NewPipe. If not, see <http://www.gnu.org/licenses/>.
57-
* </p>
58-
*/
59-
6041
public class KioskFragment extends BaseListInfoFragment<StreamInfoItem, KioskInfo> {
6142
@State
6243
String kioskId = "";

app/src/main/java/org/schabi/newpipe/player/Player.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,6 +1761,13 @@ public void play() {
17611761
}
17621762
}
17631763

1764+
if (isStopped()) {
1765+
// Some phones suspend a paused player after 10 minutes. This causes the player to
1766+
// enter STATE_IDLE, causing playback to fail. So we try to recover from that here.
1767+
setRecovery();
1768+
reloadPlayQueueManager();
1769+
}
1770+
17641771
simpleExoPlayer.play();
17651772
saveStreamProgressState();
17661773
}

app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueueAdapter.java

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2016-2026 NewPipe contributors <https://newpipe.net>
3+
* SPDX-License-Identifier: GPL-3.0-or-later
4+
*/
5+
16
package org.schabi.newpipe.player.playqueue;
27

38
import android.content.Context;
@@ -22,30 +27,6 @@
2227
import io.reactivex.rxjava3.core.Observer;
2328
import io.reactivex.rxjava3.disposables.Disposable;
2429

25-
/**
26-
* Created by Christian Schabesberger on 01.08.16.
27-
* <p>
28-
* Copyright (C) Christian Schabesberger 2016 <chris.schabesberger@mailbox.org>
29-
* InfoListAdapter.java is part of NewPipe.
30-
* </p>
31-
* <p>
32-
* NewPipe is free software: you can redistribute it and/or modify
33-
* it under the terms of the GNU General Public License as published by
34-
* the Free Software Foundation, either version 3 of the License, or
35-
* (at your option) any later version.
36-
* </p>
37-
* <p>
38-
* NewPipe is distributed in the hope that it will be useful,
39-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
40-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41-
* GNU General Public License for more details.
42-
* </p>
43-
* <p>
44-
* You should have received a copy of the GNU General Public License
45-
* along with NewPipe. If not, see <http://www.gnu.org/licenses/>.
46-
* </p>
47-
*/
48-
4930
public class PlayQueueAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
5031
private static final String TAG = PlayQueueAdapter.class.toString();
5132

app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueueItemHolder.java

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2016-2021 NewPipe contributors <https://newpipe.net>
3+
* SPDX-License-Identifier: GPL-3.0-or-later
4+
*/
5+
16
package org.schabi.newpipe.player.playqueue;
27

38
import android.view.View;
@@ -8,30 +13,6 @@
813

914
import org.schabi.newpipe.R;
1015

11-
/**
12-
* Created by Christian Schabesberger on 01.08.16.
13-
* <p>
14-
* Copyright (C) Christian Schabesberger 2016 <chris.schabesberger@mailbox.org>
15-
* StreamInfoItemHolder.java is part of NewPipe.
16-
* </p>
17-
* <p>
18-
* NewPipe is free software: you can redistribute it and/or modify
19-
* it under the terms of the GNU General Public License as published by
20-
* the Free Software Foundation, either version 3 of the License, or
21-
* (at your option) any later version.
22-
* </p>
23-
* <p>
24-
* NewPipe is distributed in the hope that it will be useful,
25-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
26-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27-
* GNU General Public License for more details.
28-
* </p>
29-
* <p>
30-
* You should have received a copy of the GNU General Public License
31-
* along with NewPipe. If not, see <http://www.gnu.org/licenses/>.
32-
* </p>
33-
*/
34-
3516
public class PlayQueueItemHolder extends RecyclerView.ViewHolder {
3617
public final TextView itemVideoTitleView;
3718
public final TextView itemDurationView;

app/src/main/java/org/schabi/newpipe/settings/SelectChannelFragment.java

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2017-2025 NewPipe contributors <https://newpipe.net>
3+
* SPDX-License-Identifier: GPL-3.0-or-later
4+
*/
5+
16
package org.schabi.newpipe.settings;
27

38
import android.content.DialogInterface;
@@ -33,27 +38,6 @@
3338
import io.reactivex.rxjava3.disposables.Disposable;
3439
import io.reactivex.rxjava3.schedulers.Schedulers;
3540

36-
/**
37-
* Created by Christian Schabesberger on 26.09.17.
38-
* SelectChannelFragment.java is part of NewPipe.
39-
* <p>
40-
* NewPipe is free software: you can redistribute it and/or modify
41-
* it under the terms of the GNU General Public License as published by
42-
* the Free Software Foundation, either version 3 of the License, or
43-
* (at your option) any later version.
44-
* </p>
45-
* <p>
46-
* NewPipe is distributed in the hope that it will be useful,
47-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
48-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49-
* GNU General Public License for more details.
50-
* </p>
51-
* <p>
52-
* You should have received a copy of the GNU General Public License
53-
* along with NewPipe. If not, see <http://www.gnu.org/licenses/>.
54-
* </p>
55-
*/
56-
5741
public class SelectChannelFragment extends DialogFragment {
5842

5943
private OnSelectedListener onSelectedListener = null;

app/src/main/java/org/schabi/newpipe/settings/SelectFeedGroupFragment.java

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2017-2025 NewPipe contributors <https://newpipe.net>
3+
* SPDX-License-Identifier: GPL-3.0-or-later
4+
*/
5+
16
package org.schabi.newpipe.settings;
27

38
import android.content.DialogInterface;
@@ -30,27 +35,6 @@
3035
import io.reactivex.rxjava3.disposables.Disposable;
3136
import io.reactivex.rxjava3.schedulers.Schedulers;
3237

33-
/**
34-
* Created by Christian Schabesberger on 26.09.17.
35-
* SelectChannelFragment.java is part of NewPipe.
36-
* <p>
37-
* NewPipe is free software: you can redistribute it and/or modify
38-
* it under the terms of the GNU General Public License as published by
39-
* the Free Software Foundation, either version 3 of the License, or
40-
* (at your option) any later version.
41-
* </p>
42-
* <p>
43-
* NewPipe is distributed in the hope that it will be useful,
44-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
45-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46-
* GNU General Public License for more details.
47-
* </p>
48-
* <p>
49-
* You should have received a copy of the GNU General Public License
50-
* along with NewPipe. If not, see <http://www.gnu.org/licenses/>.
51-
* </p>
52-
*/
53-
5438
public class SelectFeedGroupFragment extends DialogFragment {
5539

5640
private OnSelectedListener onSelectedListener = null;

app/src/main/java/org/schabi/newpipe/settings/SelectKioskFragment.java

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2017-2022 NewPipe contributors <https://newpipe.net>
3+
* SPDX-License-Identifier: GPL-3.0-or-later
4+
*/
5+
16
package org.schabi.newpipe.settings;
27

38
import android.os.Bundle;
@@ -25,27 +30,6 @@
2530
import java.util.List;
2631
import java.util.Vector;
2732

28-
/**
29-
* Created by Christian Schabesberger on 09.10.17.
30-
* SelectKioskFragment.java is part of NewPipe.
31-
* <p>
32-
* NewPipe is free software: you can redistribute it and/or modify
33-
* it under the terms of the GNU General Public License as published by
34-
* the Free Software Foundation, either version 3 of the License, or
35-
* (at your option) any later version.
36-
* </p>
37-
* <p>
38-
* NewPipe is distributed in the hope that it will be useful,
39-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
40-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41-
* GNU General Public License for more details.
42-
* </p>
43-
* <p>
44-
* You should have received a copy of the GNU General Public License
45-
* along with NewPipe. If not, see <http://www.gnu.org/licenses/>.
46-
* </p>
47-
*/
48-
4933
public class SelectKioskFragment extends DialogFragment {
5034
private SelectKioskAdapter selectKioskAdapter = null;
5135

app/src/main/java/org/schabi/newpipe/util/ZipHelper.java

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2018-2026 NewPipe contributors <https://newpipe.net>
3+
* SPDX-License-Identifier: GPL-3.0-or-later
4+
*/
5+
16
package org.schabi.newpipe.util;
27

38
import org.schabi.newpipe.streams.io.SharpInputStream;
@@ -16,26 +21,6 @@
1621
import java.util.zip.ZipInputStream;
1722
import java.util.zip.ZipOutputStream;
1823

19-
/**
20-
* Created by Christian Schabesberger on 28.01.18.
21-
* Copyright 2018 Christian Schabesberger <chris.schabesberger@mailbox.org>
22-
* ZipHelper.java is part of NewPipe
23-
* <p>
24-
* License: GPL-3.0+
25-
* This program is free software: you can redistribute it and/or modify
26-
* it under the terms of the GNU General Public License as published by
27-
* the Free Software Foundation, either version 3 of the License, or
28-
* (at your option) any later version.
29-
* <p>
30-
* This program is distributed in the hope that it will be useful,
31-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
32-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33-
* GNU General Public License for more details.
34-
* <p>
35-
* You should have received a copy of the GNU General Public License
36-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
37-
*/
38-
3924
public final class ZipHelper {
4025
@FunctionalInterface
4126
public interface InputStreamConsumer {

gradle/libs.versions.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ autoservice-google = "1.1.1"
1313
autoservice-zacsweers = "1.2.0"
1414
bridge = "v2.0.2"
1515
cardview = "1.0.0"
16-
checkstyle = "13.3.0"
16+
checkstyle = "13.4.0"
1717
coil = "3.4.0"
1818
compose-bom = "2024.10.01"
1919
constraintlayout = "2.2.1"
20-
core = "1.17.0" # Newer versions require minSdk >= 23
20+
core = "1.18.0"
2121
desugar = "2.1.5"
2222
documentfile = "1.1.0"
2323
exoplayer = "2.19.1"
@@ -30,12 +30,12 @@ junit = "4.13.2"
3030
junit-ext = "1.3.0"
3131
kotlin = "2.3.20"
3232
kotlinx-coroutines-rx3 = "1.10.2"
33-
kotlinx-serialization-json = "1.10.0"
33+
kotlinx-serialization-json = "1.11.0"
3434
ksp = "2.3.6"
3535
ktlint = "1.8.0"
3636
lazy-column-scrollbar = "2.2.0"
3737
leakcanary = "2.14"
38-
lifecycle = "2.9.4" # Newer versions require minSdk >= 23
38+
lifecycle = "2.10.0"
3939
markwon = "4.6.2"
4040
material = "1.11.0" # TODO: update to newer version after bug is fixed. See https://github.com/TeamNewPipe/NewPipe/pull/13018
4141
media = "1.7.1"
@@ -47,7 +47,7 @@ phoenix = "3.0.0"
4747
preference = "1.2.1"
4848
prettytime = "5.0.8.Final"
4949
recyclerview = "1.4.0"
50-
room = "2.7.2" # Newer versions require minSdk >= 23
50+
room = "2.8.4"
5151
runner = "1.7.0"
5252
rxandroid = "3.0.2"
5353
rxbinding = "4.0.0"
@@ -66,9 +66,9 @@ teamnewpipe-nanojson = "e9d656ddb49a412a5a0a5d5ef20ca7ef09549996"
6666
# the corresponding commit hash, since JitPack sometimes deletes artifacts.
6767
# If there’s already a git hash, just add more of it to the end (or remove a letter)
6868
# to cause jitpack to regenerate the artifact.
69-
teamnewpipe-newpipe-extractor = "v0.26.1"
70-
webkit = "1.14.0" # Newer versions require minSdk >= 23
71-
work = "2.10.5" # Newer versions require minSdk >= 23
69+
teamnewpipe-newpipe-extractor = "1512cf3222b0c5d87a249e6ac231b98090c42623"
70+
webkit = "1.15.0"
71+
work = "2.11.2"
7272

7373
[libraries]
7474
about-libraries-compose-m3 = { group = "com.mikepenz", name = "aboutlibraries-compose-m3", version.ref = "about-libraries" }

0 commit comments

Comments
 (0)