Skip to content

Commit e1ce3fe

Browse files
committed
Merge branch 'dev' into pr8221
2 parents 8ad7bf6 + 3c0a200 commit e1ce3fe

1,741 files changed

Lines changed: 56823 additions & 20986 deletions

File tree

Some content is hidden

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

.github/CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
### Please do **not** open pull requests for *new features* now, as we are planning to rewrite large chunks of the code. Only bugfix PRs will be accepted. More details will be announced soon!
2+
13
NewPipe contribution guidelines
24
===============================
35

@@ -22,6 +24,7 @@ You'll see *exactly* what is sent, be able to add **your comments**, and then se
2224

2325
* NewPipe is translated via [Weblate](https://hosted.weblate.org/projects/newpipe/strings/). Log in there with your GitHub account, or register.
2426
* Add the language you want to translate if it is not there already: see [How to add a new language](https://github.com/TeamNewPipe/NewPipe/wiki/How-to-add-a-new-language-to-NewPipe) in the wiki.
27+
* NewPipe uses the [PrettyTime](https://github.com/ocpsoft/prettytime) library to display localized versions of dates and times. It needs to be translated, too. Read [these instructions to add a new language](https://www.ocpsoft.org/prettytime/#section-14) and [this issue](https://github.com/TeamNewPipe/NewPipe/issues/9134) for more info.
2528

2629
## Code contribution
2730

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
name: Question
2-
description: Ask about anything NewPipe-related
3-
labels: [question]
41
body:
52
- type: markdown
63
attributes:
74
value: |
8-
Thanks for taking the time to fill out this issue! :hugs:
5+
Thanks for taking the time to fill out this form! :hugs:
96
107
Note that you can also ask questions on our [IRC channel](https://web.libera.chat/#newpipe).
118
@@ -14,7 +11,9 @@ body:
1411
attributes:
1512
label: "Checklist"
1613
options:
17-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/TeamNewPipe/NewPipe/issues) or [closed](https://github.com/TeamNewPipe/NewPipe/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
14+
- label: "I made sure that there are *no existing issues or discussions* - [open](https://github.com/TeamNewPipe/NewPipe/issues) or [closed](https://github.com/TeamNewPipe/NewPipe/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
15+
required: true
16+
- label: "I have read the [FAQ](https://newpipe.net/FAQ/) and my question isn't listed."
1817
required: true
1918
- label: "I have taken the time to fill in all the required details. I understand that the question will be dismissed otherwise."
2019
required: true
@@ -27,7 +26,7 @@ body:
2726
label: What is/are your question(s)?
2827
validations:
2928
required: true
30-
29+
3130
- type: textarea
3231
id: additional-information
3332
attributes:

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bug report
22
description: Create a bug report to help us improve
3-
labels: [bug]
3+
labels: [bug, needs triage]
44
body:
55
- type: markdown
66
attributes:
@@ -14,10 +14,12 @@ body:
1414
attributes:
1515
label: "Checklist"
1616
options:
17-
- label: "I am able to reproduce the bug with the [latest version](https://github.com/TeamNewPipe/NewPipe/releases/latest)."
17+
- label: "I am able to reproduce the bug with the latest version given here: [CLICK THIS LINK](https://github.com/TeamNewPipe/NewPipe/releases/latest)."
1818
required: true
1919
- label: "I made sure that there are *no existing issues* - [open](https://github.com/TeamNewPipe/NewPipe/issues) or [closed](https://github.com/TeamNewPipe/NewPipe/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
2020
required: true
21+
- label: "I have read the [FAQ](https://newpipe.net/FAQ/) and my problem isn't listed."
22+
required: true
2123
- label: "I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise."
2224
required: true
2325
- label: "This issue contains only one bug."
@@ -40,7 +42,7 @@ body:
4042
label: Steps to reproduce the bug
4143
description: |
4244
What did you do for the bug to show up?
43-
45+
4446
If you can't cause the bug to show up again reliably (and hence don't have a proper set of steps to give us), please still try to give as many details as possible on how you think you encountered the bug.
4547
placeholder: |
4648
1. Go to '...'
@@ -69,11 +71,11 @@ body:
6971
label: Screenshots/Screen recordings
7072
description: |
7173
A picture or video is worth a thousand words.
72-
74+
7375
If applicable, add screenshots or a screen recording to help explain your problem.
7476
GitHub supports uploading them directly in the text box.
7577
If your file is too big for Github to accept, try to compress it (ZIP-file) or feel free to paste a link to an image/video hoster here instead.
76-
78+
7779
:heavy_exclamation_mark: DON'T POST SCREENSHOTS OF THE ERROR PAGE.
7880
Instead, follow the instructions in the "Logs" section below.
7981

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
blank_issues_enabled: false
22
contact_links:
3+
- name: ❓ Question
4+
url: https://github.com/TeamNewPipe/NewPipe/discussions/new?category=questions
5+
about: Ask about anything NewPipe-related
36
- name: 💬 IRC
47
url: https://web.libera.chat/#newpipe
58
about: Chat with us via IRC for quick Q/A

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
name: Feature request
22
description: Suggest an idea for this project
3-
labels: [enhancement]
3+
labels: [feature request, needs triage]
44
body:
55
- type: markdown
66
attributes:
77
value: |
88
Thank you for helping to make NewPipe better by suggesting a feature. :hugs:
99
1010
Your ideas are highly welcome! The app is made for you, the users, after all.
11-
1211
- type: checkboxes
1312
id: checklist
1413
attributes:
1514
label: "Checklist"
1615
options:
1716
- label: "I made sure that there are *no existing issues* - [open](https://github.com/TeamNewPipe/NewPipe/issues) or [closed](https://github.com/TeamNewPipe/NewPipe/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
1817
required: true
18+
- label: "I have read the [FAQ](https://newpipe.net/FAQ/) and my problem isn't listed."
19+
required: true
1920
- label: "I'm aware that this is a request for NewPipe itself and that requests for adding a new service need to be made at [NewPipeExtractor](https://github.com/TeamNewPipe/NewPipeExtractor/issues)."
2021
required: true
2122
- label: "I have taken the time to fill in all the required details. I understand that the feature request will be dismissed otherwise."
@@ -43,7 +44,7 @@ body:
4344
Describe any problem or limitation you come across while using the app which would be solved by this feature.
4445
validations:
4546
required: true
46-
47+
4748
- type: textarea
4849
id: additional-information
4950
attributes:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
<!-- Delete this if it doesn't apply to your PR. -->
2626
-
2727

28-
#### APK testing
28+
#### APK testing
2929
<!-- Use a new, meaningfully named branch. The name is used as a suffix for the app ID to allow installing and testing multiple versions of NewPipe, e.g. "commentfix", if your PR implements a bugfix for comments. (No names like "patch-0" and "feature-1".) -->
3030
<!-- Remove the following line if you directly link the APK created by the CI pipeline. Directly linking is preferred if you need to let users test.-->
31-
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
31+
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration [on this wiki page](https://github.com/TeamNewPipe/NewPipe/wiki/Download-APK-for-PR).
3232

3333
#### Due diligence
3434
- [ ] I read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md).
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add 'size/small' label to any changes with less than 50 lines
2+
size/small:
3+
max: 49
4+
5+
# Add 'size/medium' label to any changes between 50 and 249 lines
6+
size/medium:
7+
min: 50
8+
max: 249
9+
10+
# Add 'size/large' label to any changes between 250 and 749 lines
11+
size/large:
12+
min: 250
13+
max: 749
14+
15+
# Add 'size/giant' label to any changes for more than 749 lines
16+
size/giant:
17+
min: 750

.github/workflows/ci.yml

Lines changed: 43 additions & 23 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/**'
@@ -30,27 +31,33 @@ on:
3031
jobs:
3132
build-and-test-jvm:
3233
runs-on: ubuntu-latest
34+
35+
permissions:
36+
contents: read
37+
3338
steps:
34-
- uses: actions/checkout@v2
35-
- uses: gradle/wrapper-validation-action@v1
39+
- uses: actions/checkout@v4
40+
- uses: gradle/wrapper-validation-action@v2
3641

3742
- name: create and checkout branch
3843
# push events already checked out the branch
3944
if: github.event_name == 'pull_request'
40-
run: git checkout -B ${{ github.head_ref }}
45+
env:
46+
BRANCH: ${{ github.head_ref }}
47+
run: git checkout -B "$BRANCH"
4148

42-
- name: set up JDK 11
43-
uses: actions/setup-java@v2
49+
- name: set up JDK 17
50+
uses: actions/setup-java@v4
4451
with:
45-
java-version: 11
52+
java-version: 17
4653
distribution: "temurin"
4754
cache: 'gradle'
4855

4956
- name: Build debug APK and run jvm tests
5057
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint
5158

5259
- name: Upload APK
53-
uses: actions/upload-artifact@v2
60+
uses: actions/upload-artifact@v4
5461
with:
5562
name: app
5663
path: app/build/outputs/apk/debug/*.apk
@@ -61,49 +68,62 @@ jobs:
6168
timeout-minutes: 20
6269
strategy:
6370
matrix:
64-
# api-level 19 is min sdk, but throws errors related to desugaring
65-
api-level: [ 21, 29 ]
71+
include:
72+
- api-level: 21
73+
target: default
74+
arch: x86
75+
- api-level: 33
76+
target: google_apis # emulator API 33 only exists with Google APIs
77+
arch: x86_64
78+
79+
permissions:
80+
contents: read
81+
6682
steps:
67-
- uses: actions/checkout@v2
83+
- uses: actions/checkout@v4
6884

69-
- name: set up JDK 11
70-
uses: actions/setup-java@v2
85+
- name: set up JDK 17
86+
uses: actions/setup-java@v4
7187
with:
72-
java-version: 11
88+
java-version: 17
7389
distribution: "temurin"
7490
cache: 'gradle'
7591

7692
- name: Run android tests
7793
uses: reactivecircus/android-emulator-runner@v2
7894
with:
7995
api-level: ${{ matrix.api-level }}
80-
# workaround to emulator bug: https://github.com/ReactiveCircus/android-emulator-runner/issues/160
81-
emulator-build: 7425822
96+
target: ${{ matrix.target }}
97+
arch: ${{ matrix.arch }}
8298
script: ./gradlew connectedCheck --stacktrace
83-
99+
84100
- 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
101+
uses: actions/upload-artifact@v4
86102
if: failure()
87103
with:
88104
name: android-test-report-api${{ matrix.api-level }}
89105
path: app/build/reports/androidTests/connected/**
90106

91107
sonar:
92108
runs-on: ubuntu-latest
109+
110+
permissions:
111+
contents: read
112+
93113
steps:
94-
- uses: actions/checkout@v2
114+
- uses: actions/checkout@v4
95115
with:
96116
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
97117

98-
- name: Set up JDK 11
99-
uses: actions/setup-java@v2
118+
- name: Set up JDK 17
119+
uses: actions/setup-java@v4
100120
with:
101-
java-version: 11 # Sonar requires JDK 11
121+
java-version: 17
102122
distribution: "temurin"
103123
cache: 'gradle'
104124

105125
- name: Cache SonarCloud packages
106-
uses: actions/cache@v2
126+
uses: actions/cache@v4
107127
with:
108128
path: ~/.sonar/cache
109129
key: ${{ runner.os }}-sonar
@@ -113,4 +133,4 @@ jobs:
113133
env:
114134
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
115135
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
116-
run: ./gradlew build sonarqube --info
136+
run: ./gradlew build sonar --info

0 commit comments

Comments
 (0)