Commit graph

76 commits

Author SHA1 Message Date
Stypox
34dd7c0fbf Update most dependencies 2020-11-22 14:03:10 +01:00
Stypox
0ff63c94cb Fix crash on startup without internet: Cbservable callable returning null
Use Maybe instead
2020-11-21 12:02:03 +01:00
Isira Seneviratne
39a008db6e Convert ErrorInfo to Kotlin and use the Parcelize annotation. 2020-11-21 12:47:35 +05:30
Isira Seneviratne
82ba67ca82 Use RxJava instead of AsyncTask to check for new app versions. 2020-11-05 11:06:50 +05:30
Isira Seneviratne
e4b31a30aa Use multidex for all build types. 2020-10-18 14:14:27 +05:30
Isira Seneviratne
27c0e408fb Combine initNotificationChannel() and setUpUpdateNotificationChannel() into a single method. 2020-10-09 08:52:05 +05:30
Isira Seneviratne
3da55d9f40 Use ContextCompat.getSystemService() and the Context.getSystemService() extension function. 2020-10-09 08:52:05 +05:30
TacoTheDank
7db90c0561 Clean up SDK version checks 2020-09-06 12:55:30 +02:00
wb9688
25b56bf5e4 Use final where possible 2020-08-16 10:25:09 +02:00
Stypox
b5e7b86df8 Remove deprecated calls to set Sender class to ACRA
setReportSenderFactoryClasses() is deprecated, now extensions (ReportSenderFactory is an extension) should be registered using AutoService: https://github.com/ACRA/acra/wiki/Custom-Extensions#by-annotation
2020-07-29 10:56:33 +02:00
Stypox
d7f69f0ac6 Do not init ACRA if inside its own process
https://github.com/ACRA/acra/wiki/Troubleshooting-Guide#applicationoncreate
2020-07-28 10:48:54 +02:00
Stypox
7ff31f58c3 Fix empty stacktrace in bug report
ACRA has to be initialized after MultiDex
https://github.com/ACRA/acra/issues/619
https://github.com/ACRA/acra/wiki/Troubleshooting-Guide#legacy-multidex
2020-07-28 10:48:25 +02:00
wb9688
863b8242b7 Use androidx.annotation.NonNull instead of io.reactivex.annotations.NonNull 2020-07-14 21:15:29 +02:00
wb9688
e0092771a1 Upgrade ACRA 2020-05-25 11:03:07 +02:00
wb9688
76fee31989 Upgrade LeakCanary 2020-05-25 11:03:07 +02:00
Vincent Nagel
6bd25dc805 rename setting to "YouTube restricted mode" 2020-04-20 21:47:32 -05:00
Vincent Nagel
eed9fe2684 renamed to "restricted mode" 2020-04-20 21:46:40 -05:00
Vincent Nagel
b1c310ce22 ageRestrictedContent first draft
Cookie updated whenever ageRestrictedContent setting is changed or
service is changed. Right now there is only a cookie for youtube, but
cookies for other services could be added in the future.

Problems with this approach: Even when the service is set to youtube,
the downloader doesn't only request youtube urls e.g. it also sends
reqeusts to i.ytimg.com, suggestqueries.google.com, and yt3.ggpht.com.
The ageRestrictedContent cookie is not normally sent when sending
requests to these other urls, so doing so might have unknown effects.
2020-04-20 21:45:32 -05:00
Stypox
c62e363ba5 Save and restore cookies to/from preferences
So that the user does not have to solve a recaptcha every time he opens the app
2020-04-15 13:30:27 +02:00
Mauricio Colli
9ff7c90a9c Move exception utils to a separate class and add tests for it 2020-04-09 13:22:18 -03:00
wb9688
ac264464ef Improve code style to be more consistent 2020-04-02 15:57:50 +02:00
bopol
3dd492e82b app language now changes time formatting (3hrs ago), was system language b4 2020-01-09 15:51:41 +01:00
yausername
2a843a16d7 merged upstream/dev 2019-11-20 03:48:56 +05:30
Mauricio Colli
ab1c2b00da Show parsed relative times instead of whatever the service gives us
Before, the direct value was given to the user, now it uses the parsed
date so we can match the device's language.

To get the relative time from the parsed dates, we use the PrettyTime
library.

Also introduces a debug option to check the service's original value.
2019-11-17 23:58:55 -03:00
Mauricio Colli
cb2f0625b1 Use new Localization and Downloader implementations from extractor 2019-11-17 23:58:52 -03:00
yausername
ca9dff049c merged upstream/dev 2019-11-16 04:37:14 +05:30
Robin
edd5ad2d13 Migrate to AndroidX 2019-10-04 14:59:08 +02:00
Ritvik Saraf
ac4e0a51ef init services in app onCreate 2019-03-10 17:30:21 +05:30
krtkush
fd3475f000 Conflict resolution 2018-11-23 01:41:47 +05:30
krtkush
27d0902b98 Pull request changes. 2018-11-18 19:15:50 +05:30
Christian Schabesberger
8d10693d07 Merge branch 'dev' into 1520_app_update_notif 2018-10-06 18:04:39 +02:00
Christian Schabesberger
0c72d4614e add support for content language and content country 2018-10-05 16:20:27 +02:00
Kartikey Kushwaha
e6ba244c8c Removed flvor checks. Added update settings under main settings. 2018-09-15 20:51:17 +05:30
BO41
89eeaab6f0 code cleanup
mainly removes throw statements

automated using Android Studio, staged by hand

BUILD SUCCESSFUL in 52s
39 actionable tasks: 37 executed, 2 up-to-date
2018-09-11 19:14:21 +02:00
Kartikey Kushwaha
37ddb56fe8 Bug fix. 2018-08-17 01:11:51 +05:30
Kartikey Kushwaha
ffab379338 Added version code check. 2018-08-17 00:53:42 +05:30
Kartikey Kushwaha
5f1360a88e Code refactored and added comments. 2018-08-12 18:34:20 +05:30
Kartikey Kushwaha
bf2a900080 Moved the new version check to the application class. 2018-08-12 16:35:53 +05:30
Kartikey Kushwaha
88276f7338 Added notification channel and code to show notification. 2018-08-12 15:01:50 +05:30
Mauricio Colli
6b5c818cbf Implement subscriptions import/export
- Import subscriptions from YouTube and SoundCloud (all services that the extractor support)
- Import/export a JSON representation of the subscriptions
- [Minor] Remove some javax annotations in favor of the one provided by the android support library
2018-03-08 10:39:24 -03:00
wb9688
17ba6d5c9a Use OkHttp with UIL 2018-02-22 13:25:56 +01:00
Christian Schabesberger
86151786e8 Merge branch 'player_fix' of https://github.com/karyogamy/NewPipe into dev 2018-02-21 23:20:08 +01:00
Christian Schabesberger
e098cee28a Merge branch 'pfix' into dev 2018-02-21 23:00:56 +01:00
John Zhen Mo
76f921e6e6 -Changed Rx exception handling to swallow undeliverable exceptions by default. 2018-02-21 10:42:54 -08:00
Mauricio Colli
806e7c4bf5 Improve some aspects of the Downloader implementation 2018-02-21 08:08:52 -03:00
John Zhen Mo
d5b167b1b6 -Changed global Rx exception handling to no longer trigger error activity if the exception is undeliverable.
-Added debug settings to force reporting of undeliverable Rx exceptions.
-Changed back MediaSourceManager to use serial disposable for syncing.
2018-02-20 22:35:34 -08:00
John Zhen Mo
cdc06439df -Added toggle for enabling leak canary heap dump. 2018-02-11 11:33:16 -08:00
John Zhen Mo
32d48057f1 -Added LeakCanary to debug build for memory detection on activities and fragments.
-Added LeakCanary no-op lib to release and beta builds.
2018-02-11 11:32:57 -08:00
John Zhen Mo
667549894c -Added ability to save playlist as remote playlist link rather than storing it in database.
-Added LeakCanary as part of debug build.
-Modified bookmark list to show both remote and local playlists.
-Removed ability to save channel items as local playlist, in favor of subscribe.
2018-02-07 19:24:36 -08:00
John Zhen Mo
286b4f80b1 -Fixed NPE issues when button views are clicked on local playlist and statistics playlist fragments are out of focus.
-Added disk cache size limit for image loader.
-Fixed button names for playlist rename dialog.
2018-02-07 19:24:36 -08:00