Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.20.0 #4333

Merged
merged 465 commits into from
Oct 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
465 commits
Select commit Hold shift + click to select a range
bd34c7e
Make player foreground playback-specific in manifest
Stypox Sep 8, 2020
1d6370e
Translated using Weblate (Croatian)
Stipess1 Sep 8, 2020
a13e6b6
Merge branch 'dev' into pr3178
Stypox Sep 8, 2020
2215ce5
Merge pull request #3794 from budde25/download-same-file-crash
Stypox Sep 9, 2020
1605e50
Update notification when play queue is edited
Stypox Sep 9, 2020
52e89c1
Prevent seeking out of video duration in player
Stypox Sep 9, 2020
5846fba
Change "image" to "thumbnail"
Stypox Sep 9, 2020
bccfe50
Fix seekbar invisible or not updating
Stypox Sep 10, 2020
2017e6a
Refactor MediaSessionManager
Stypox Sep 10, 2020
883e4fc
Small fixes of issues with old devices support, brightness, etc
avently Sep 11, 2020
11d9a03
Merge pull request #4252 from opusforlife2/autoplay_to_autoqueue2
Stypox Sep 11, 2020
eeba9c0
Merge remote-tracking branch 'upstream/dev' into unsupported-url-dialog
B0pol Sep 12, 2020
4b7311b
Merge pull request #3826 from Stypox/unsupported-url-dialog
B0pol Sep 12, 2020
b747d09
change default quality
B0pol Sep 13, 2020
011cc7d
Android 11 initial support
avently Sep 13, 2020
6d38615
Android 11: transparent navigation and status bars
avently Sep 14, 2020
150e156
Reimagined player positioning
avently Sep 15, 2020
a5312c1
Perfect shadow
avently Sep 15, 2020
5ada0ae
Hiding controls when orientation changes to landscape
avently Sep 15, 2020
a1e4ef9
Fix for multiple listeners of insets
avently Sep 16, 2020
1afc48f
Translated using Weblate (Arabic)
Sep 15, 2020
59e7eba
Random adjustements to notification
Stypox Sep 16, 2020
c9be812
Fix for untouchable area
avently Sep 16, 2020
92e13da
Correct exit from fullscreen in case of error or close from notificat…
avently Sep 17, 2020
886a949
Enable/disable video after screen on/off regardless of background pla…
avently Sep 17, 2020
5b8eda4
Increased performance of the UI. main thread is not as busy as before
avently Sep 17, 2020
7317737
Fix invisible queue close button
Stypox Sep 19, 2020
f8de72f
Improve search suggestion experience when remote ones can't be fetched
Stypox Jul 31, 2020
0062ff9
Fix deprecations, warnings and useless null checks in SearchFragment
Stypox Jul 31, 2020
b69e477
Merge pull request #4029 from Stypox/search-suggestions
TobiGr Sep 19, 2020
f41549c
Added a comment and excluded automatic switch of orientation on table…
avently Sep 19, 2020
518eb97
Variable width for caption button and hiding system UI after popup close
avently Sep 19, 2020
b914d67
Translated using Weblate (Czech)
zeritti Sep 19, 2020
7901339
Translated using Weblate (Persian)
ahangarha Sep 18, 2020
de54dc2
Translated using Weblate (Persian)
Sep 19, 2020
34e7855
Translated using Weblate (Hungarian)
wrghig Sep 21, 2020
11e048a
Remove hardcoded and duplicate strings, use exoplayer ones
Stypox Sep 22, 2020
814efbf
Remove ACTION_BUFFERING, update buffering only if needed
Stypox Sep 22, 2020
b4e073c
Show replay icon in notification when player state is completed
Stypox Sep 22, 2020
8a3c752
Merge pull request #4275 from B0pol/quality
B0pol Sep 22, 2020
093d6e5
Translated using Weblate (Lithuanian)
Kornelijus Sep 21, 2020
c843e77
Made notification thumbnail smaller
avently Sep 23, 2020
411d069
Merge remote-tracking branch 'Weblate/dev' into dev
TobiGr Sep 24, 2020
e93a285
Translations improvements :
B0pol Sep 19, 2020
b97ad99
lint translations
B0pol Sep 24, 2020
adcc420
Merge pull request #4310 from B0pol/duplicate
TobiGr Sep 24, 2020
b3812d9
Translated using Weblate (French)
B0pol Sep 24, 2020
2d65c35
Translated using Weblate (Indonesian)
zmni Sep 24, 2020
941ca57
Translated using Weblate (Turkish)
Sep 24, 2020
b3b6384
Translated using Weblate (Portuguese (Brazil))
Sam-Oak Sep 25, 2020
631cb73
Translated using Weblate (Chinese (Simplified))
Sep 25, 2020
3465002
Translated using Weblate (Chinese (Traditional))
s8321414 Sep 25, 2020
a2b8cc9
Translated using Weblate (Hebrew)
yarons Sep 24, 2020
00c4c10
String improvements
comradekingu Sep 25, 2020
e0f02d4
Merge pull request #4246 from avently/preloading
TobiGr Sep 25, 2020
3add24b
Merged 'dev' branch
avently Sep 25, 2020
ad33646
Add migration concept for shared preferences
TobiGr Sep 22, 2020
0e5f85d
Remove "Detail Page" open action from share dialog under certain circ…
TobiGr Sep 9, 2020
3c4a4e5
Set default value for "minimize_on_exit" to background for better UX.
TobiGr Sep 9, 2020
b53d5d8
Allow numbers and uppercase letters in app package id
Stypox Sep 26, 2020
2f1007c
Translated using Weblate (German)
TobiGr Sep 25, 2020
cd0d58a
Translated using Weblate (French)
B0pol Sep 25, 2020
95570d7
Translated using Weblate (Russian)
Sep 25, 2020
e3ff9f9
Translated using Weblate (Japanese)
AioiLight Sep 25, 2020
1603123
Translated using Weblate (Italian)
pjammo Sep 25, 2020
2d6dd4b
Translated using Weblate (Czech)
zeritti Sep 25, 2020
d9cf4de
Translated using Weblate (Polish)
WaldiSt Sep 25, 2020
af0928e
Translated using Weblate (Norwegian Bokmål)
comradekingu Sep 25, 2020
eeb09c0
Translated using Weblate (Sardinian)
asereze Sep 26, 2020
df98239
Changes for tablets and device's orientation behavior
avently Sep 27, 2020
d0fc9fd
Fixed player's ZOOM mode for KitKat devices
avently Sep 27, 2020
9a0c2c4
Refactoring and made the player returning from landscape & fullscreen…
avently Sep 27, 2020
fc9c073
Merge pull request #3178 from cool-student/notificationImprovements
TobiGr Sep 27, 2020
d5f6033
Merge pull request #4259 from TeamNewPipe/pref_migration
TobiGr Sep 27, 2020
4152c7f
Translated using Weblate (Greek)
Sep 27, 2020
5b74d22
Translated using Weblate (Kurdish)
ShexSMohammed Sep 26, 2020
0466b32
Merge branch 'origin/dev' into Weblate.
weblate Sep 27, 2020
a9fafe9
Merge pull request #4326 from Stypox/appid-numbers
B0pol Sep 27, 2020
609bf64
Merged 'dev' branch
avently Sep 27, 2020
e53e5ca
Disabled nested scrolling of queue
avently Sep 27, 2020
541eb70
Merge pull request #4272 from avently/small-fixes2
TobiGr Sep 27, 2020
7ab323b
Spelling: Back to browser
comradekingu Sep 27, 2020
0370fa6
Merged 'dev' branch
avently Sep 27, 2020
0ae3dfd
Merge pull request #4315 from comradekingu/patch-12
TobiGr Sep 27, 2020
b3136c2
Translated using Weblate (German)
nautilusx Sep 27, 2020
a65aaa6
Translated using Weblate (German)
TobiGr Sep 27, 2020
6898b9d
Translated using Weblate (French)
Floflr Sep 27, 2020
3d2ba05
Translated using Weblate (French)
B0pol Sep 27, 2020
d13c19f
Translated using Weblate (Japanese)
AioiLight Sep 27, 2020
2d06c01
Translated using Weblate (Greek)
Sep 27, 2020
77c612f
Translated using Weblate (Indonesian)
zmni Sep 27, 2020
6c2f63f
Translated using Weblate (Turkish)
Sep 27, 2020
89b4f2c
Translated using Weblate (Hebrew)
yarons Sep 27, 2020
e380d63
Translated using Weblate (Norwegian Bokmål)
comradekingu Sep 27, 2020
8b29460
Translated using Weblate (Central Kurdish)
Hiigtsef7 Sep 27, 2020
e550a8e
Translated using Weblate (Sardinian)
asereze Sep 27, 2020
123d897
Merge branch 'origin/dev' into Weblate.
weblate Sep 27, 2020
2a558ad
Translated using Weblate (Spanish)
larjona Sep 27, 2020
44b19e7
Translated using Weblate (Spanish)
Rachel010010 Sep 27, 2020
30b8835
Translated using Weblate (Portuguese (Brazil))
davbrasan Sep 27, 2020
bafc1df
Translated using Weblate (Turkish)
Sep 27, 2020
d9329bf
Added translation using Weblate (Bengali)
Oymate Sep 28, 2020
23bfc30
Translated using Weblate (Bengali (Bangladesh))
Oymate Sep 28, 2020
160a04c
Merge pull request #4288 from avently/performance-increase
opusforlife2 Sep 28, 2020
c1d5a5c
Player will be rebound when needed, prev/next/queue buttons, preservi…
avently Sep 29, 2020
de84db0
Translated using Weblate (German)
franconian Sep 27, 2020
f5e7b8f
Translated using Weblate (German)
Sep 27, 2020
314287a
Translated using Weblate (German)
TobiGr Sep 27, 2020
7fd49c2
Translated using Weblate (Spanish)
thermosflasche Sep 28, 2020
dcba3a6
Translated using Weblate (Spanish)
larjona Sep 27, 2020
df06cfc
Translated using Weblate (French)
B0pol Sep 27, 2020
ac888f4
Translated using Weblate (Dutch)
bjdmeest Sep 27, 2020
6b2788b
Translated using Weblate (Russian)
Sep 27, 2020
14985b1
Translated using Weblate (Japanese)
AioiLight Sep 27, 2020
1cf757d
Translated using Weblate (Italian)
pjammo Sep 27, 2020
e1845ba
Translated using Weblate (Portuguese)
SantosSi Sep 28, 2020
e0237a0
Translated using Weblate (Greek)
Sep 27, 2020
439edbf
Translated using Weblate (Slovak)
marulinko Sep 27, 2020
6da2e80
Translated using Weblate (Czech)
Krysaczek Sep 28, 2020
2d3271e
Translated using Weblate (Arabic)
rex07 Sep 28, 2020
0625a35
Translated using Weblate (Turkish)
emintufan Sep 27, 2020
0d5730d
Translated using Weblate (Polish)
WaldiSt Sep 28, 2020
95b4565
Translated using Weblate (Portuguese (Brazil))
Sam-Oak Sep 27, 2020
ea1f2f4
Translated using Weblate (Chinese (Simplified))
Sep 28, 2020
d42af74
Translated using Weblate (Chinese (Simplified))
chr56 Sep 27, 2020
bb6438e
Translated using Weblate (Chinese (Traditional))
s8321414 Sep 28, 2020
33deaae
Translated using Weblate (Hebrew)
yarons Sep 27, 2020
e9c88fe
Translated using Weblate (Swedish)
Sep 27, 2020
1ac4890
Translated using Weblate (Finnish)
vrntnn Sep 27, 2020
323161c
Translated using Weblate (Norwegian Bokmål)
comradekingu Sep 27, 2020
7a1e502
Translated using Weblate (Belarusian)
yurochka2005 Sep 27, 2020
54f8a17
Translated using Weblate (Bengali)
Oymate Sep 28, 2020
f4bd203
Fix auto-queue with no next videos
wb9688 Sep 29, 2020
3ba9fb3
Merge pull request #4349 from wb9688/fix-queue-with-no-next-videos
TobiGr Sep 29, 2020
87ce514
Translated using Weblate (Dutch)
Sep 29, 2020
49615f8
Translated using Weblate (Indonesian)
zmni Sep 29, 2020
87ae26e
Disabled commenter image view on LoadThumbnail set to false
4D17Y4 Sep 29, 2020
b68f015
Update extractor version
TobiGr Sep 29, 2020
54e9858
Prevent tapping behind queue in main player
opusforlife2 Sep 29, 2020
295836f
Translated using Weblate (Portuguese)
SantosSi Sep 29, 2020
f0b658b
Translated using Weblate (Basque)
Sep 29, 2020
81cbeb4
Translated using Weblate (Arabic)
Sep 29, 2020
be76b3d
Translated using Weblate (Sardinian)
asereze Sep 29, 2020
2d25b6a
Translated using Weblate (Portuguese (Portugal))
SantosSi Sep 29, 2020
4864fa3
Merge remote-tracking branch 'Weblate/dev' into dev
TobiGr Sep 29, 2020
06764db
Small adjustments to notification settings layout
Stypox Sep 28, 2020
6ffbb7b
Remove linebreaks from localizations of notification_actions_summary
TobiGr Sep 29, 2020
ed51c8b
Merge pull request #4340 from Stypox/notification-settings-fix
TobiGr Sep 29, 2020
ed87d6b
Deleted translation using Weblate (Neapolitan)
TobiGr Sep 29, 2020
7706d74
Do the same for tablet layout.
opusforlife2 Sep 29, 2020
6665d63
Added comments and improved the code
avently Sep 29, 2020
3a3ecc7
Merge pull request #4353 from opusforlife2/tap_behind_queue
TobiGr Sep 30, 2020
dd726fa
Skipped interception of buttons in the player in some cases and made …
avently Oct 1, 2020
26a8bd1
Now player's overlays are aware of insets
avently Oct 1, 2020
4e76329
Merge pull request #4347 from avently/player-rebind
TobiGr Oct 1, 2020
b1ea7d6
Merge pull request #4350 from 4D17Y4/commenter
TobiGr Oct 1, 2020
d4fda58
Remove unused string resource "next_video_title"
TobiGr Oct 1, 2020
4d88dad
Remove unused string resource "play_btn_text"
TobiGr Oct 1, 2020
09578b4
Remove unused string resource "enable_lock_screen_video_thumbnail_sum…
TobiGr Oct 1, 2020
196b9dc
Remove unused string resource "enable_lock_screen_video_thumbnail_title"
TobiGr Oct 1, 2020
c0e1bbb
Fix queue close image not following theme
Stypox Oct 2, 2020
a4bb222
Prevent touches behind minimized player
Stypox Oct 2, 2020
dbdc04c
Make player close button always white
Stypox Oct 2, 2020
fbcdaa7
Initialize player notification asap
Stypox Oct 2, 2020
794c74e
Merge pull request #4360 from avently/player-overlays
TobiGr Oct 2, 2020
dbb86d2
Fix video detail controls visibility set inconsistently
Stypox Oct 2, 2020
83ea915
Merge pull request #4362 from Stypox/fix-queue
TobiGr Oct 2, 2020
d8ba2ce
Translated using Weblate (Hungarian)
TobiGr Sep 30, 2020
8768fe4
Translated using Weblate (Portuguese)
SantosSi Sep 29, 2020
903aeec
Translated using Weblate (Basque)
TobiGr Sep 30, 2020
42fd318
Translated using Weblate (Chinese (Traditional, Hong Kong))
TobiGr Sep 30, 2020
b991d5c
Translated using Weblate (Romanian)
TobiGr Sep 30, 2020
c7a695c
Translated using Weblate (Persian)
ahangarha Oct 1, 2020
9410bf4
Translated using Weblate (Persian)
TobiGr Sep 30, 2020
fb745b9
Translated using Weblate (Bengali (Bangladesh))
TobiGr Sep 30, 2020
c1f29a7
Translated using Weblate (Swedish)
TobiGr Sep 30, 2020
f3eb0c4
Translated using Weblate (Croatian)
TobiGr Sep 30, 2020
ecf1921
Translated using Weblate (Hindi)
TobiGr Sep 30, 2020
272b03e
Translated using Weblate (Telugu)
TobiGr Sep 30, 2020
32ba2ba
Translated using Weblate (Tamil)
TobiGr Sep 30, 2020
703a4b7
Translated using Weblate (Bulgarian)
TobiGr Sep 30, 2020
06aaceb
Translated using Weblate (Macedonian)
TobiGr Sep 30, 2020
0e70e1a
Translated using Weblate (Punjabi)
TobiGr Sep 30, 2020
ef888d1
Translated using Weblate (Estonian)
TobiGr Sep 30, 2020
9e9687b
Translated using Weblate (Belarusian)
TobiGr Sep 30, 2020
8eb6686
Translated using Weblate (Malay)
TobiGr Sep 30, 2020
343d0fa
Translated using Weblate (Central Kurdish)
Hiigtsef7 Oct 1, 2020
34de0e5
Translated using Weblate (Bengali)
digiwizkid Oct 2, 2020
1988a08
Translated using Weblate (Bengali)
TobiGr Sep 30, 2020
4dcca9d
Merge remote-tracking branch 'Weblate/dev' into dev
TobiGr Oct 2, 2020
e4ab250
add berber, bengali languages
B0pol Oct 3, 2020
272be02
Release 0.20.0
TobiGr Sep 27, 2020
5b6fc71
translate fastlane metadata in french
B0pol Oct 3, 2020
5383e53
fix typo in 0.20.0 french changelog
B0pol Oct 3, 2020
5e7bbcd
Add italian translation for fastlane
Stypox Oct 3, 2020
d8b5464
Rename short_description.fr.txt to short_description.txt
B0pol Oct 3, 2020
be5f4cb
Rename full_description.fr.txt to full_description.txt
B0pol Oct 3, 2020
2b1469e
update to PrettyTime 4.0.6
B0pol Oct 3, 2020
ef8a1bc
Merge pull request #4365 from B0pol/prettytime
TobiGr Oct 2, 2020
d6a1ae3
Norwegian Bokmål fastlane support (#4374)
comradekingu Oct 3, 2020
5a35842
fix fastlane locale
TobiGr Oct 3, 2020
8b63aa2
Translated using Weblate (Albanian)
AnXh3L0 Oct 3, 2020
71d027a
Translated using Weblate (Chinese (Simplified))
comradekingu Oct 3, 2020
54fd601
Translated using Weblate (Chinese (Simplified))
chr56 Oct 4, 2020
9fe4de5
Added Portuguese (Portugal), Neapolitan and Sardinian
TobiGr Oct 4, 2020
23bdc03
Translated using Weblate (Spanish)
comradekingu Oct 3, 2020
77fd206
Translated using Weblate (French)
VeryTastyTomato Oct 3, 2020
fc1447d
Translated using Weblate (Hungarian)
comradekingu Oct 3, 2020
df5e731
Translated using Weblate (Dutch)
comradekingu Oct 3, 2020
f171a69
Translated using Weblate (English)
VeryTastyTomato Oct 3, 2020
f7a030c
Translated using Weblate (English)
comradekingu Oct 3, 2020
c3836de
Translated using Weblate (Russian)
comradekingu Oct 3, 2020
4a2d62e
Translated using Weblate (Japanese)
comradekingu Oct 3, 2020
b5a9631
Translated using Weblate (Korean)
comradekingu Oct 3, 2020
db5e3f2
Translated using Weblate (Portuguese)
SantosSi Oct 4, 2020
9558177
Translated using Weblate (Slovak)
comradekingu Oct 3, 2020
5bfaa9a
Translated using Weblate (Esperanto)
comradekingu Oct 3, 2020
3836f2f
Translated using Weblate (Czech)
comradekingu Oct 3, 2020
7aab782
Translated using Weblate (Arabic)
comradekingu Oct 3, 2020
222ed2d
Translated using Weblate (Indonesian)
comradekingu Oct 3, 2020
801320a
Translated using Weblate (Turkish)
Oct 3, 2020
dd943d2
Translated using Weblate (Polish)
comradekingu Oct 3, 2020
f1b62a9
Translated using Weblate (Portuguese (Brazil))
comradekingu Oct 3, 2020
f1a31bf
Translated using Weblate (Chinese (Traditional))
comradekingu Oct 3, 2020
2a3b89e
Translated using Weblate (Hebrew)
yarons Oct 3, 2020
730988e
Translated using Weblate (Swedish)
comradekingu Oct 3, 2020
3433b2a
Translated using Weblate (Finnish)
comradekingu Oct 3, 2020
3c49a33
Translated using Weblate (Kurdish)
comradekingu Oct 3, 2020
e866771
Translated using Weblate (Catalan)
comradekingu Oct 3, 2020
ffd65d5
Translated using Weblate (Urdu)
comradekingu Oct 3, 2020
ac8efe1
Translated using Weblate (Albanian)
comradekingu Oct 3, 2020
67a651f
Translated using Weblate (Punjabi)
Oct 4, 2020
a2becac
Translated using Weblate (Punjabi)
comradekingu Oct 3, 2020
554ab4e
Translated using Weblate (Galician)
comradekingu Oct 3, 2020
f1cbeb3
Translated using Weblate (Danish)
comradekingu Oct 3, 2020
bfe90c5
Translated using Weblate (Nepali)
comradekingu Oct 3, 2020
6770ad6
Translated using Weblate (Malayalam)
comradekingu Oct 3, 2020
bb63673
Translated using Weblate (Central Kurdish)
comradekingu Oct 3, 2020
1b8b15b
Translated using Weblate (Sardinian)
comradekingu Oct 3, 2020
f11b0be
Translated using Weblate (Portuguese (Portugal))
SantosSi Oct 4, 2020
618d36d
Translated using Weblate (Portuguese (Portugal))
comradekingu Oct 3, 2020
9387753
Translated using Weblate (Berber)
hakimzenata Oct 3, 2020
796755d
Translated using Weblate (Japanese)
AioiLight Oct 4, 2020
9d8570d
Translated using Weblate (Portuguese)
SantosSi Oct 4, 2020
f87d447
Translated using Weblate (Hebrew)
yarons Oct 3, 2020
b3882ec
Translated using Weblate (Portuguese (Portugal))
SantosSi Oct 4, 2020
996f864
Translated using Weblate (Sardinian)
asereze Oct 3, 2020
b70bea4
Translated using Weblate (Chinese (Traditional))
chr56 Oct 4, 2020
365c49d
Translated using Weblate (Chinese (Simplified))
Oct 4, 2020
535a050
Merge branch 'origin/dev' into Weblate.
weblate Oct 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ with your GitHub account.

## Code contribution

* If you want to add a feature or change one, please open an issue describing your change. This gives the team and community a chance to give feedback before you spend any time on something that could be done differently or not done at all. It also prevents two contributors from working on the same thing and one being disappointed when only one user's code can be added.
* Stick to NewPipe's style conventions: follow [checkStyle](https://github.com/checkstyle/checkstyle). It will run each time you build the project.
* Do not bring non-free software (e.g. binary blobs) into the project. Also, make sure you do not introduce Google
libraries.
Expand Down
21 changes: 12 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
resValue "string", "app_name", "NewPipe"
minSdkVersion 19
targetSdkVersion 29
versionCode 953
versionName "0.19.8"
versionCode 954
versionName "0.20.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand All @@ -33,7 +33,7 @@ android {

// suffix the app id and the app name with git branch name
def workingBranch = getGitWorkingBranch()
def normalizedWorkingBranch = workingBranch.replaceAll("[^A-Za-z]+", "").toLowerCase()
def normalizedWorkingBranch = workingBranch.replaceFirst("^[^A-Za-z]+", "").replaceAll("[^0-9A-Za-z]+", "")
if (normalizedWorkingBranch.isEmpty() || workingBranch == "master" || workingBranch == "dev") {
// default values when branch name could not be determined or is master or dev
applicationIdSuffix ".debug"
Expand Down Expand Up @@ -84,11 +84,12 @@ ext {
checkstyleVersion = '8.32'
stethoVersion = '1.5.1'
leakCanaryVersion = '2.2'
exoPlayerVersion = '2.11.6'
exoPlayerVersion = '2.11.8'
androidxLifecycleVersion = '2.2.0'
androidxRoomVersion = '2.2.5'
groupieVersion = '2.8.0'
markwonVersion = '4.3.1'
googleAutoServiceVersion = '1.0-rc7'
}

configurations {
Expand Down Expand Up @@ -138,7 +139,7 @@ afterEvaluate {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"

implementation "frankiesardo:icepick:${icepickVersion}"
kapt "frankiesardo:icepick-processor:${icepickVersion}"
Expand All @@ -163,18 +164,21 @@ dependencies {
exclude module: 'support-annotations'
}

implementation 'com.github.TeamNewPipe:NewPipeExtractor:5ac80624a40f4c600ae493e66881b5bf008f0ddb'
implementation 'com.github.TeamNewPipe:NewPipeExtractor:2463884aa8b696df5812f7feff553008bbd2f888'

implementation "com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
implementation "org.jsoup:jsoup:1.13.1"

implementation "com.squareup.okhttp3:okhttp:3.12.11"
implementation "com.squareup.okhttp3:okhttp:3.12.12"

implementation "com.google.android.exoplayer:exoplayer:${exoPlayerVersion}"
implementation "com.google.android.exoplayer:extension-mediasession:${exoPlayerVersion}"

implementation "com.google.android.material:material:1.1.0"

compileOnly "com.google.auto.service:auto-service-annotations:${googleAutoServiceVersion}"
kapt "com.google.auto.service:auto-service:${googleAutoServiceVersion}"

implementation "androidx.appcompat:appcompat:1.1.0"
implementation "androidx.preference:preference:1.1.1"
implementation "androidx.recyclerview:recyclerview:1.1.0"
Expand All @@ -183,7 +187,6 @@ dependencies {

implementation "androidx.lifecycle:lifecycle-livedata:${androidxLifecycleVersion}"
implementation "androidx.lifecycle:lifecycle-viewmodel:${androidxLifecycleVersion}"
implementation "androidx.lifecycle:lifecycle-extensions:${androidxLifecycleVersion}"

implementation "androidx.room:room-runtime:${androidxRoomVersion}"
implementation "androidx.room:room-rxjava2:${androidxRoomVersion}"
Expand All @@ -206,7 +209,7 @@ dependencies {
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
implementation "com.jakewharton.rxbinding2:rxbinding:2.2.0"

implementation "org.ocpsoft.prettytime:prettytime:4.0.5.Final"
implementation "org.ocpsoft.prettytime:prettytime:4.0.6.Final"
}

static String getGitWorkingBranch() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ public class ErrorInfoTest {

@Test
public void errorInfoTestParcelable() {
ErrorInfo info = ErrorInfo.make(UserAction.USER_REPORT, "youtube", "request",
final ErrorInfo info = ErrorInfo.make(UserAction.USER_REPORT, "youtube", "request",
R.string.general_error);
// Obtain a Parcel object and write the parcelable object to it:
Parcel parcel = Parcel.obtain();
final Parcel parcel = Parcel.obtain();
info.writeToParcel(parcel, 0);
parcel.setDataPosition(0);
ErrorInfo infoFromParcel = ErrorInfo.CREATOR.createFromParcel(parcel);
final ErrorInfo infoFromParcel = ErrorInfo.CREATOR.createFromParcel(parcel);

assertEquals(UserAction.USER_REPORT, infoFromParcel.userAction);
assertEquals("youtube", infoFromParcel.serviceName);
Expand Down
12 changes: 6 additions & 6 deletions app/src/debug/java/org/schabi/newpipe/DebugApp.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.schabi.newpipe

import android.content.Context
import androidx.multidex.MultiDex
import androidx.preference.PreferenceManager
import com.facebook.stetho.Stetho
Expand All @@ -11,11 +10,6 @@ import okhttp3.OkHttpClient
import org.schabi.newpipe.extractor.downloader.Downloader

class DebugApp : App() {
override fun attachBaseContext(base: Context) {
super.attachBaseContext(base)
MultiDex.install(this)
}

override fun onCreate() {
super.onCreate()
initStetho()
Expand All @@ -34,6 +28,12 @@ class DebugApp : App() {
return downloader
}

override fun initACRA() {
// install MultiDex before initializing ACRA
MultiDex.install(this)
super.initACRA()
}

private fun initStetho() {
// Create an InitializerBuilder
val initializerBuilder = Stetho.newInitializerBuilder(this)
Expand Down
30 changes: 11 additions & 19 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
android:logo="@mipmap/ic_launcher"
android:requestLegacyExternalStorage="true"
android:theme="@style/OpeningTheme"
android:resizeableActivity="true"
tools:ignore="AllowBackup">
<activity
android:name=".MainActivity"
Expand All @@ -43,34 +44,19 @@
</receiver>

<service
android:name=".player.BackgroundPlayer"
android:exported="false">
android:name=".player.MainPlayer"
android:exported="false"
android:foregroundServiceType="mediaPlayback">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</service>

<activity
android:name=".player.BackgroundPlayerActivity"
android:label="@string/title_activity_background_player"
android:label="@string/title_activity_play_queue"
android:launchMode="singleTask" />

<activity
android:name=".player.PopupVideoPlayerActivity"
android:label="@string/title_activity_popup_player"
android:launchMode="singleTask" />

<service
android:name=".player.PopupVideoPlayer"
android:exported="false" />

<activity
android:name=".player.MainVideoPlayer"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
android:launchMode="singleTask"
android:theme="@style/VideoPlayerTheme" />

<activity
android:name=".settings.SettingsActivity"
android:label="@string/settings" />
Expand Down Expand Up @@ -334,5 +320,11 @@
<service
android:name=".RouterActivity$FetcherService"
android:exported="false" />

<!-- see https://github.com/TeamNewPipe/NewPipe/issues/3947 -->
<!-- Version < 3.0. DeX Mode and Screen Mirroring support -->
<meta-data android:name="com.samsung.android.keepalive.density" android:value="true"/>
<!-- Version >= 3.0. DeX Dual Mode support -->
<meta-data android:name="com.samsung.android.multidisplay.keep_process_alive" android:value="true"/>
</application>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public Object instantiateItem(@NonNull final ViewGroup container, final int posi
// from its saved state, where the fragment manager has already
// taken care of restoring the fragments we previously had instantiated.
if (mFragments.size() > position) {
Fragment f = mFragments.get(position);
final Fragment f = mFragments.get(position);
if (f != null) {
return f;
}
Expand All @@ -160,12 +160,12 @@ public Object instantiateItem(@NonNull final ViewGroup container, final int posi
mCurTransaction = mFragmentManager.beginTransaction();
}

Fragment fragment = getItem(position);
final Fragment fragment = getItem(position);
if (DEBUG) {
Log.v(TAG, "Adding item #" + position + ": f=" + fragment);
}
if (mSavedState.size() > position) {
Fragment.SavedState fss = mSavedState.get(position);
final Fragment.SavedState fss = mSavedState.get(position);
if (fss != null) {
fragment.setInitialSavedState(fss);
}
Expand All @@ -191,7 +191,7 @@ public Object instantiateItem(@NonNull final ViewGroup container, final int posi
@Override
public void destroyItem(@NonNull final ViewGroup container, final int position,
@NonNull final Object object) {
Fragment fragment = (Fragment) object;
final Fragment fragment = (Fragment) object;

if (mCurTransaction == null) {
mCurTransaction = mFragmentManager.beginTransaction();
Expand All @@ -217,7 +217,7 @@ public void destroyItem(@NonNull final ViewGroup container, final int position,
@SuppressWarnings({"ReferenceEquality", "deprecation"})
public void setPrimaryItem(@NonNull final ViewGroup container, final int position,
@NonNull final Object object) {
Fragment fragment = (Fragment) object;
final Fragment fragment = (Fragment) object;
if (fragment != mCurrentPrimaryItem) {
if (mCurrentPrimaryItem != null) {
mCurrentPrimaryItem.setMenuVisibility(false);
Expand Down Expand Up @@ -267,17 +267,17 @@ public Parcelable saveState() {
Bundle state = null;
if (mSavedState.size() > 0) {
state = new Bundle();
Fragment.SavedState[] fss = new Fragment.SavedState[mSavedState.size()];
final Fragment.SavedState[] fss = new Fragment.SavedState[mSavedState.size()];
mSavedState.toArray(fss);
state.putParcelableArray("states", fss);
}
for (int i = 0; i < mFragments.size(); i++) {
Fragment f = mFragments.get(i);
final Fragment f = mFragments.get(i);
if (f != null && f.isAdded()) {
if (state == null) {
state = new Bundle();
}
String key = "f" + i;
final String key = "f" + i;
mFragmentManager.putFragment(state, key, f);

//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Expand All @@ -294,21 +294,21 @@ public Parcelable saveState() {
@Override
public void restoreState(@Nullable final Parcelable state, @Nullable final ClassLoader loader) {
if (state != null) {
Bundle bundle = (Bundle) state;
final Bundle bundle = (Bundle) state;
bundle.setClassLoader(loader);
Parcelable[] fss = bundle.getParcelableArray("states");
final Parcelable[] fss = bundle.getParcelableArray("states");
mSavedState.clear();
mFragments.clear();
if (fss != null) {
for (int i = 0; i < fss.length; i++) {
mSavedState.add((Fragment.SavedState) fss[i]);
for (final Parcelable parcelable : fss) {
mSavedState.add((Fragment.SavedState) parcelable);
}
}
Iterable<String> keys = bundle.keySet();
for (String key: keys) {
final Iterable<String> keys = bundle.keySet();
for (final String key : keys) {
if (key.startsWith("f")) {
int index = Integer.parseInt(key.substring(1));
Fragment f = mFragmentManager.getFragment(bundle, key);
final int index = Integer.parseInt(key.substring(1));
final Fragment f = mFragmentManager.getFragment(bundle, key);
if (f != null) {
while (mFragments.size() <= index) {
mFragments.add(null);
Expand Down
Loading