Commit graph

11453 commits

Author SHA1 Message Date
evermind
db53faa50d BraveNewPipeLegacy: use getApplicationContext to have a static variable inside BraveApp
In the App.java from main source set there is the static method App.getApp() from which
many parts of the application get ApplicationContext. But as the class App inherits from
BraveApp and sets the app variable in onCreate() only after the super.onCreate()
from BraveApp is called. Therefore App.getApp() has not yet an initialized variable
thus we need another way to get the ApplicationContext
2024-04-26 00:47:00 +02:00
evermind
3df1047d91 BraveNewPipeLegacy: move custom TrustManagerFactory creation into BraveTLSSocketFactory
As the custom TrustManagerFactory was only set correctly in BraveOkHttpTlsHelper
but not if setting the default SSLSocketFactory for HttpsURLConnection.

So the whole code for adding own CA's was moved into BraveTrustManagerFactoryHelper
and the BraveTLSSocketFactory handles now its usage internally and not via
constructor.
2024-04-26 00:47:00 +02:00
evermind
837ae586f2 BraveNewPipeLegacy: remove MainActivity from flavor as the source code no longer differs from main flavor 2024-04-26 00:47:00 +02:00
evermind
9472c69e70 BraveNewPipeLegacy: Move setting HttpsURLConnection default ssl factory to BraveApp 2024-04-26 00:47:00 +02:00
evermind
142c40f461 BraveNewPipeLegacy: add generating of icons for drawable-night to tasks [un]prepareLegacyFlavor
In main_settings.xml the icons did not show up if dark themes (-night -dark) are used.
This commit will generate -night version of this icons
2024-04-26 00:47:00 +02:00
evermind
b0ea9e5672 BraveNewPipe: move service styles to brave flavor to prevent conflicts merging upstream 2024-04-26 00:47:00 +02:00
evermind
83b691d01b BraveNewPipe: try to circumvent TransactionTooLargeException.
As workaround internally we use GZIP to reduce the amount of data that
is put as in intent.putExtra(). It has to be tested if that compressing
takes to much time and truncate here already.

As later on if we share on the ErrorActivity we have to truncate the traces
to around 100Kb as it otherwise crash there.
2024-04-26 00:47:00 +02:00
evermind
f44a2f594c BraveNewPipe: move all sponsorblock strings into own sponsorblock flavor
This helps avoiding upstream conflicts
2024-04-26 00:47:00 +02:00
evermind
533994c943 BraveNewPipe Release 0.26.1-2.1.9
- Hotfix for wrong okhttp-urlconnection dependency on non Kitkat version.
  Thank you @marcel263 for reporting

- BraveNewPipe Settings page:
  config option to circumvent some censoring
  https://github.com/bravenewpipe/NewPipeExtractor/issues/122

- Use cookie on rumble.com stream page to tackle redirect glitch
  https://github.com/bravenewpipe/NewPipeExtractor/issues/123

- Kitkat flavor: This is only a test. I could not really test it on hardware.
  Therefore it will not migrate any data from previous installs. It installs
  in parallel to any BraveNewPipe installation. This will change if I get feedback
  that it is working more or less properly.
  All problems please enter in https://github.com/bravenewpipe/NewPipeExtractor/issues/124
  and if it is too big create a extra bug entry.
2024-04-26 00:47:00 +02:00
evermind
f210cbca00 BraveNewPipe: handle okhttp-urlconnection for non legacy flavors correctly 2024-04-26 00:47:00 +02:00
evermind
0b449a0d02 BraveNewPipe Release 0.26.1-2.1.8
- BraveNewPipe Settings page:
  config option to circumvent some censoring
  https://github.com/bravenewpipe/NewPipeExtractor/issues/122

- Use cookie on rumble.com stream page to tackle redirect glitch
  https://github.com/bravenewpipe/NewPipeExtractor/issues/123

- Kitkat flavor: This is only a test. I could not really test it on hardware.
  Therefore it will not migrate any data from previous installs. It installs
  in parallel to any BraveNewPipe installation. This will change if I get feedback
  that it is working more or less properly.
  All problems please enter in https://github.com/bravenewpipe/NewPipeExtractor/issues/124
  and if it is too big create a extra bug entry.
2024-04-26 00:47:00 +02:00
evermind
55861298d1 BraveNewPipeLegacy: (Kitkat) for the first testphase the name Kitkat is included in the app_name 2024-04-26 00:47:00 +02:00
evermind
b634b9e8b4 BraveNewPipe: all flavors are build on push
use 'bravify' 'assembleBrave*Debug' as standalone gradle runs
Before running assembleBraveDebug combined with the test stuff.
2024-04-26 00:47:00 +02:00
evermind
7772621f8a BraveNewPipe: refactor the data.json creation script to work with several branches
As for now we use separated release data.json.
One for brave and braveConscrypt flavor and one for braveLegacy
2024-04-26 00:47:00 +02:00
evermind
76537e4e00 BraveNewPipe: add braveLegacy flavor to releases action 2024-04-26 00:47:00 +02:00
evermind
82aabc1f41 BraveNewPipe: reflect the APK variants and add a quick building guide into README.md 2024-04-26 00:47:00 +02:00
evermind
04fc10bb67 BraveNewPipe: convert to doLast in testReplaceMailandJsonandSignature()
and really match two lines
2024-04-26 00:47:00 +02:00
evermind
38e9f03fb0 BraveNewPipeLegacy: add us/shandian/giga/** files to checkstyle ignore 2024-04-26 00:47:00 +02:00
evermind
d167a80985 BraveNewPipeLegacy: remove duplicated files for braveLegacy flavor compilation 2024-04-26 00:47:00 +02:00
evermind
d7518c9d5d BraveNewPipeLegacy: Integrate TLSSocketFactory and missing CAs
- TLS 1.3 and 1.2 activated only
- TrustManager with CA's for rumble and framatube
2024-04-26 00:46:45 +02:00
evermind
fdef0046d9 BraveNewPipeLegacy: (Kitkat) fixup Sponsorblock VideoSegments handling 2024-04-24 00:17:50 +02:00
evermind
ff9a10d4e3 BraveNewPipeLegacy: (Kitkat) fix missing supportsSource() method in DeviceUtils 2024-04-24 00:17:50 +02:00
evermind
228c1d3681 BraveNewPipeLegacy: BraveApp inherit from MultiDexApplication 2024-04-24 00:17:50 +02:00
evermind
4211329c89 BraveNewPipeLegacy: (Kitkat) only allow search UI's that work on Kitkat 2024-04-24 00:17:50 +02:00
evermind
8b039b7b7a BraveNewPipeLegacy: add flavor braveLegacy for supporting Kitkat 2024-04-24 00:17:50 +02:00
evermind
c897ec9564 BraveNewPipeLegacy: (Kitkat) fix GridLayout Alignment for KitKat for search filter dialogs 2024-04-24 00:17:50 +02:00
evermind
5dfe4a8366 BraveNewPipeLegacy: (Kitkat) reapply 'More minSdk 21 cleanup' in reverse
The relevant files are gathered from commit 189c92affa
'More minSdk 21 cleanup'
2024-04-24 00:17:50 +02:00
evermind
4f7fc2480f BraveNewPipeLegacy: (Kitkat) readd strings that have been removed by 'Clean up pre-Lollipop checks'
The relevant files are gathered from commit 99104fc11d
'Clean up pre-Lollipop checks'
2024-04-24 00:17:50 +02:00
evermind
225effed0b BraveNewPipeLegacy: (Kitkat) reapply 'Clean up pre-Lollipop checks' in reverse
The patch is from commit 99104fc11d
'Clean up pre-Lollipop checks'
2024-04-24 00:17:50 +02:00
evermind
8fb17b4301 BraveNewPipeLegacy: (Kitkat) copy of SearchFilterDialogGenerator.java to flavor 2024-04-24 00:17:50 +02:00
evermind
d8d41c9a9c BraveNewPipeLegacy: (Kitkat) copy files relevant for 'More minSdk 21 cleanup'
This patch copies all the relevant files for Kitkat from main to the legacy flavor unmodified.

The relevant files are gathered from commit 189c92affa
'More minSdk 21 cleanup'

These files are the base to reapply above 'More minSdk 21 cleanup' commit
in reverse in a later patch.
2024-04-24 00:17:50 +02:00
evermind
443dd279f5 BraveNewPipeLegacy: (Kitkat) copy files relevant for 'Clean up pre-Lollipop checks'
This patch copies all the relevant files for kitkat from main to the legacy flavor unmodified.

The relevant files are gathered from commit 99104fc11d
'Clean up pre-Lollipop checks'

These files are the base to reapply above 'Clean up pre-Lollipop checks' commit
in reverse in a later patch.
2024-04-24 00:17:50 +02:00
evermind
4f22e9b662 BraveNewPipe: Rumble needs to handle cookies to correctly redirect 2024-03-11 09:15:54 +01:00
evermind
2aeb429ce9 BraveNewPipe: move conscrypt dependencies to braveConscrypt flavor and update to 2.5.2 2024-03-11 09:15:54 +01:00
evermind
89a366856a BraveNewPipe: integrate BraveTimeoutInterceptor into PicassoHelper 2024-03-11 09:15:54 +01:00
evermind
aac9f2e59c BraveNewPipe: convert PicassoHelper using the DownloaderImpl#getNewBuilder() to share ConnectionPool etc. 2024-03-11 09:15:54 +01:00
evermind
2e330311c4 BraveNewPipe: Interceptor to replace youtube host domain name yt3.ggpht.com -> yt4.ggpht.com
add config option to replace host domain names that are blocked in some countries
2024-03-11 09:15:50 +01:00
evermind
c57819b271 BraveNewPipe: own settings page 2024-03-11 09:14:29 +01:00
evermind
5af96432f5 BraveNewPipe: Interceptor for SponsorBlock/ReturnYouTubeDislike custom timeouts
DownloaderImpl:
- add: reInitInterceptors() method to recreate in case of config changes
BraveDownloaderImplUtils:
- add: BraveTimeoutInterceptor that handles the custom timeout via temporary http header.
2024-02-21 23:49:25 +01:00
evermind
210424a914 BraveNewPipe: convert DownloaderImpl to singleton and customize OkHttpClient by using its method .newBuilder()
- OkHttpClient is now instantiated right away. This should be the only instance
  within the app.
- All OkHttpClient.Builder instances should be retrieved via
  DownloaderImpl.getNewBuilder() which delegates the call to
  OkHttpClient.newBuilder() So we are not recreating the whole ConnectionPool etc.
2024-02-21 23:49:25 +01:00
evermind
a3544cd8b8 BraveNewPipe: DownloaderImpl: always close the OkHttp Response after using it 2024-02-21 23:49:25 +01:00
evermind
087fe97531 move BraveNewPipe specific code to extra class
original commit was 2d662d79ff

'RUMBLE: fix getting video size for Rumble as they no longer support HEAD (discovered 20230203)'
2024-02-21 23:49:25 +01:00
evermind
2ff42e8013 BraveNewPipe: remove the setCustomTimeout() introduced by SponsorBlock/ReturnYouTubeDislike
SponsorBlock/ReturnYouTubeDislike created a new OkHttpClient each call if
setCustomTimeout() was set once. This commit restores DownloaderImpl back.

-> the calls to setCustomTimeout() will be replaced with a custom http header
   solution
2024-02-21 23:49:25 +01:00
evermind
17a8e014dc BraveNewPipe Release 0.26.1-2.1.7
- update RUMBLE/BITCHUTE to new Tab-Framework
- RUMBLE: most issues should be fixed #119
- BITCHUTE: Broken: Trending -> account is now needed -> CANTFIX
- BITCHUTE: Broken: import of many subscriptions will fail due to use of reCatchpa
  -> may implement a workaround - if I've some time
2024-01-31 01:17:52 +01:00
evermind
bf023d1f14 fix zipalign not found in release workflow
Github removed older buildtools version.
This fix tries to always use the latest version available

see https://github.com/r0adkll/sign-android-release/issues/84
2024-01-31 01:17:52 +01:00
evermind
76bdb25145 searchfilters: info about SearchViewModel 2024-01-28 22:01:45 +01:00
evermind
cad6b98be7 use FilterItem for tabs 2024-01-28 22:01:33 +01:00
evermind
3af415037e Merge tag 'v0.26.1' of https://github.com/TeamNewPipe/NewPipe into dev 2024-01-28 22:01:06 +01:00
evermind
c3757fa2f5 Merge tag 'v0.26.0' of https://github.com/TeamNewPipe/NewPipe into dev 2024-01-28 21:54:12 +01:00
Tobi
49429ff40a
Merge pull request #10700 from TeamNewPipe/newpipe_0.26.1
Newpipe 0.26.1
2023-12-26 18:26:48 +01:00