Commit Graph

9904 Commits

Author SHA1 Message Date
Stypox bac9f7eebf
Merge branch 'refactor' into pr11060 2024-11-10 16:50:46 +01:00
litetex 8ada566bf1
Replaced ``Icepick`` with ``Bridge`` and ``Android-State``
* IcePick fails on Java 21 (default in Android Studio 2024.2)
* Bridge is the most modern alternative that is currently available. It is backed by ``Android-State`` and can be configured with various frameworks
* In the long term this should be replaced with something better
2024-11-10 16:42:42 +01:00
litetex 5bd4ed77df
Fix Android Gradle plugin warning 2024-11-10 16:42:42 +01:00
litetex 6dd24033a4
Replace symlink with original
Co-Authored-By: Thompson3142 <115718208+thompson3142@users.noreply.github.com>
2024-11-10 16:42:41 +01:00
litetex 4de3ef20be
Delete symlink 2024-11-10 16:42:41 +01:00
litetex 702f74291d
Use working Extractor version
The tag can't be resolved by Jitpack so use the commit-hash instead
2024-11-10 16:42:41 +01:00
Isira Seneviratne 4f4136c6e9 Merge branch 'refs/heads/refactor' into About-Compose
# Conflicts:
#	app/build.gradle
#	build.gradle
2024-10-22 20:15:07 +05:30
Siddhesh Naik b399030e19
Settings redesign debug page (#10876)
Initial Work for Settings Page with Jetpack Compose

- Implemented a new settings page using Jetpack Compose.
- Added a new settings option to enable the redesigned settings page.
- This option allows for gradual integration and testing of the new
  settings page, minimizing disruptions to current functionality.

Plan for Settings Items:
- Jetpack Compose does not have a direct equivalent to the
  Preference/settings library.
- We could consider using third-party libraries that offer preference
  items as composables.
- However, these libraries may be incomplete or lack active development.
- Given our specific needs for only a subset of preference types,
  creating custom composables would be beneficial.
- This approach allows for fine-tuning the components to our specific
  use case.
2024-10-22 00:47:26 +05:30
Isira Seneviratne 0991461d04 Merge branch 'refs/heads/refactor' into About-Compose 2024-09-26 07:01:03 +05:30
Stypox 49bcf2c41b
Merge branch 'dev' into refactor 2024-09-24 14:45:59 +02:00
Isira Seneviratne c00c6c460c Add scaffold preview, use container color in about screen and scaffold 2024-09-17 04:26:36 +05:30
Isira Seneviratne 4c4fe3f511 Add scrollbar color scheme 2024-09-16 16:28:49 +05:30
Isira Seneviratne db485c3d77 Remove unnecessary annotation 2024-09-16 16:15:37 +05:30
Isira Seneviratne 6471b64ab6 Update dependencies 2024-09-16 12:53:16 +05:30
Isira Seneviratne b9fcf0dff8 Enable edge-to-edge display 2024-09-16 12:45:03 +05:30
Isira Seneviratne 1f4298b6c2 Avoid issues if context is a ContextWrapper 2024-09-11 22:10:25 +05:30
Isira Seneviratne 3177ca6e8a Avoid issues if context is a ContextWrapper 2024-09-11 21:57:51 +05:30
Isira Seneviratne 0d12cfc983 Remove AndroidX Browser, make scrollbars red 2024-09-07 05:13:52 +05:30
Isira Seneviratne 8f9faf3e53 Address some review comments 2024-09-06 22:07:18 +05:30
Isira Seneviratne 31d164d116 Update dependencies 2024-09-05 09:37:47 +05:30
Isira Seneviratne 5017f4f05a Update dependencies 2024-09-05 09:23:00 +05:30
Isira Seneviratne c4efd2fd44 Update dependencies 2024-09-03 03:56:55 +05:30
Isira Seneviratne bc87575410 Allow scrolling of about channel section 2024-09-02 09:06:03 +05:30
Isira Seneviratne 387a4d5f56 Rm unused layouts 2024-09-01 21:01:49 +05:30
Isira Seneviratne bbbb7f574b Use textAlign in TagsSection 2024-09-01 19:50:38 +05:30
Isira Seneviratne a094abd9ef Use constant 2024-09-01 19:16:30 +05:30
Isira Seneviratne 45aa445b50 Fix crash when minimizing the channel about tab 2024-09-01 18:30:18 +05:30
Isira Seneviratne 507b3b4108 Show image tags even if image loading is disabled 2024-09-01 18:28:58 +05:30
Isira Seneviratne 2653787fe1 Migrate about channel fragment to Jetpack Compose 2024-09-01 17:41:18 +05:30
Isira Seneviratne de6285b1e2 Migrate description fragment to Jetpack Compose 2024-08-31 15:53:09 +05:30
Isira Seneviratne 99996d940d Rename .java to .kt 2024-08-31 15:04:48 +05:30
Isira Seneviratne 823d4a041f Improve loading indicator positioning 2024-08-30 16:59:15 +05:30
Isira Seneviratne 62d4044d6c Make lazy column scrollbars red 2024-08-30 09:02:56 +05:30
Isira Seneviratne 3785404618 Display number of comments 2024-08-30 08:46:02 +05:30
Isira Seneviratne 4cac111b66 Reduce preview count 2024-08-29 07:46:37 +05:30
Isira Seneviratne 941b8eb194 Implement copy on long click 2024-08-29 07:24:03 +05:30
Isira Seneviratne b1add13bfd Address code review comments 2024-08-28 18:15:11 +05:30
Isira Seneviratne 5fffee2c7d Fix text color in bottom sheet 2024-08-28 17:59:38 +05:30
Isira Seneviratne f9340ae604 Improve compose function organisation 2024-08-27 08:19:37 +05:30
Isira Seneviratne d3a6991fd4 Use Fragment.content extension, improve comment composables 2024-08-26 19:29:46 +05:30
Isira Seneviratne b0bfd4a807 Merge branch 'refs/heads/refactor' into About-Compose
# Conflicts:
#	app/build.gradle
#	app/src/main/java/org/schabi/newpipe/ktx/Bundle.kt
#	build.gradle
2024-08-23 20:16:19 +05:30
Isira Seneviratne 3641698379 Merge branch 'refs/heads/refactor' into Comments-Compose
# Conflicts:
#	app/build.gradle
2024-08-23 20:13:03 +05:30
Isira Seneviratne 2836191fb3
Migrate related items fragment to Jetpack Compose (#11383)
* Rename .java to .kt

* Migrate related items fragment to Jetpack Compose

* Specify mode parameter explicitly

* Rm unused class

* Fix list item size

* Added stream progress bar, separate stream and playlist thumbnails

* Display message if no related streams are available

* Dispose of related items when closing the video player

* Add modifiers for no items message function

* Implement remaining stream menu items

* Improved stream composables

* Use view model lifecycle scope

* Make live color solid red

* Use nested scroll modifier

* Simplify determineItemViewMode()
2024-08-23 19:51:32 +05:30
Isira Seneviratne 0df6c7fc2c Remove unused assets 2024-08-23 14:48:41 +05:30
Isira Seneviratne b1ebd3ecd9 Update Compose BOM 2024-08-23 14:22:45 +05:30
Isira Seneviratne 4758244cf5 Use AboutLibraries to display library information 2024-08-23 14:05:50 +05:30
Isira Seneviratne 294b9cf347 Rm unused declaration 2024-08-17 08:25:39 +05:30
Isira Seneviratne 6d05af484e Use int array 2024-08-11 09:31:09 +05:30
TwoAi 38c823a042 Remove outdated returnActivity test code
returnActivity was removed in 463dd8e
2024-08-10 23:09:54 -04:00
Isira Seneviratne e082bca5e0 Use nested scroll modifier 2024-08-11 08:23:13 +05:30
Isira Seneviratne f9dae9078e Always show comment thumbnails, even if placeholders 2024-08-11 08:23:13 +05:30
Isira Seneviratne e955beeef1 Update Kotlin to 2.0, update dependencies and fix issues 2024-08-11 08:23:10 +05:30
Isira Seneviratne eaac7f3f85 Improved component organisation 2024-08-11 08:21:53 +05:30
Isira Seneviratne ea414f57d4 Added DescriptionText composable 2024-08-11 08:21:53 +05:30
Isira Seneviratne f984b26626 Fix some modifiers 2024-08-11 08:21:53 +05:30
Isira Seneviratne edab9a6a1f Fix alignment of comment message 2024-08-11 08:21:53 +05:30
Isira Seneviratne 4740e3be86 Make parsed links clickable, visible 2024-08-11 08:21:53 +05:30
Isira Seneviratne e639b02fed Animate comment expand/collapse 2024-08-11 08:21:53 +05:30
Isira Seneviratne ac1ca1412d Improve comment loading smoothness 2024-08-11 08:21:52 +05:30
Isira Seneviratne d131d3399a Rm unused method 2024-08-11 08:21:52 +05:30
Isira Seneviratne 1009dc4d4e Added loading indicator 2024-08-11 08:21:52 +05:30
Isira Seneviratne 42cb914616 Replace padding modifier with verticalArrangement in comment header 2024-08-11 08:21:52 +05:30
Isira Seneviratne e72da94eb1 Rm extra padding in header 2024-08-11 08:21:52 +05:30
Isira Seneviratne c5d94a5b60 Add comment view model 2024-08-11 08:21:52 +05:30
Isira Seneviratne 02c5f2607a Cache paging data using the cachedIn() extension 2024-08-11 08:21:52 +05:30
Isira Seneviratne 369a46f8fe Improve code organization 2024-08-11 08:21:52 +05:30
Isira Seneviratne 909d214002 Rm redundant Surface 2024-08-11 08:21:52 +05:30
Isira Seneviratne 5e7e14ee4d Handle no comments and comments disabled scenarios 2024-08-11 08:21:52 +05:30
Isira Seneviratne b092fe2c76 Replace Spacers with the horizontalArrangement parameter 2024-08-11 08:21:52 +05:30
Isira Seneviratne b9dd7078ad Replace CommentRepliesFragment with bottom sheet composable, improve previews 2024-08-11 08:21:52 +05:30
Isira Seneviratne 93310955f2 Added scrollbar to comment section 2024-08-11 08:21:52 +05:30
Isira Seneviratne 9c52e039ee Migrate comments fragment to Jetpack Compose 2024-08-11 08:21:52 +05:30
Isira Seneviratne be037e0756 Rename .java to .kt 2024-08-11 08:21:52 +05:30
Isira Seneviratne 5bfb0449cf Fixed fragment title 2024-08-11 08:21:52 +05:30
Isira Seneviratne 0ec81c9e52 Fixed like count display 2024-08-11 08:21:52 +05:30
Isira Seneviratne 5841eaa6d7 Set view strategy 2024-08-11 08:21:52 +05:30
Isira Seneviratne e92ba8f5d1 Add replies button 2024-08-11 08:21:52 +05:30
Isira Seneviratne 1908e18dc4 Use AnnotatedString to handle HTML parsing 2024-08-11 08:21:52 +05:30
Isira Seneviratne e30d5e4305 Fixed some comment issues 2024-08-11 08:21:52 +05:30
Isira Seneviratne 11bb2495ba Improve previews, display date of comment 2024-08-11 08:21:52 +05:30
Isira Seneviratne 341cc37ce7 Update replies fragment to use the comment composable as well 2024-08-11 08:21:52 +05:30
Isira Seneviratne 1620668966 Add comment ellipsis 2024-08-11 08:21:51 +05:30
Isira Seneviratne 56c80ce6dd Added missing comment features, fixed theming 2024-08-11 08:21:51 +05:30
Isira Seneviratne 8ce9a7e43c Added like count 2024-08-11 08:21:51 +05:30
Isira Seneviratne e05d97732e Use reply header composable in fragment 2024-08-11 08:21:51 +05:30
Isira Seneviratne 644a345b55 Rename .java to .kt 2024-08-11 08:21:51 +05:30
Isira Seneviratne bda961a04c Convert comment replies views to Jetpack Compose 2024-08-11 08:21:51 +05:30
Isira Seneviratne ba2efded76 Replace Picasso with Coil in about 2024-08-11 08:13:21 +05:30
Isira Seneviratne b05b98ca61 Improved component organisation 2024-08-11 08:13:21 +05:30
Isira Seneviratne 7a7f81ac7f Fix tab text color 2024-08-11 08:13:21 +05:30
Isira Seneviratne 6e6c171dd7 Added new icon 2024-08-11 08:13:21 +05:30
Isira Seneviratne 8a41c8cf66 Added buttons to alert dialog 2024-08-11 08:13:21 +05:30
Isira Seneviratne 05271d95a9 Migrate about activity to Jetpack Compose 2024-08-11 08:13:21 +05:30
Isira Seneviratne 9d04a73c85
Merge dev to refactor (#11427)
* add NP icon for Android Studio's NewUI

* Fix NPE in MediaSessionPlayerUi while destroying player

* Update NewPipeExtractor to v0.24.1

* Add changelogs for hotfix release v0.27.1 (998)

* Hotfix release v0.27.1 (998)

* Update README.pt_BR.md (#11275)

* Update Matrix room link, and prioritise it (#11350)

* Update Matrix room link, and prioritise it

* Update Matrix room link in CONTRIBUTING.md

* Prioritise Matrix in contribution doc too

* Update NewPipeExtractor to v0.24.2

* Hotfix release v0.27.2 (999)

* Add changelogs for hotfix release v0.27.2 (999)

* Don't warn about rhino class in proguard

Likely related to 01a7b20655 but I am not completely sure.
I tested the app and it works well, so I think that org.mozilla.javascript.JavaToJSONConverters is not used really.

This is the full list of errors:
Missing class java.beans.BeanDescriptor (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object))
Missing class java.beans.BeanInfo (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object))
Missing class java.beans.IntrospectionException (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object))
Missing class java.beans.Introspector (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object))
Missing class java.beans.PropertyDescriptor (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object))

* Remove code committed accidentally

---------

Co-authored-by: Christian Schabesberger <chris.schabesberger@mailbox.org>
Co-authored-by: Tobi <TobiGr@users.noreply.github.com>
Co-authored-by: Stypox <stypox@pm.me>
Co-authored-by: #27 <68751594+tag27@users.noreply.github.com>
Co-authored-by: opusforlife2 <53176348+opusforlife2@users.noreply.github.com>
2024-08-11 08:11:50 +05:30
Stypox 51ee2f8d1e
Merge branch 'master' into dev 2024-07-25 21:20:44 +02:00
Stypox d442b45836
Remove code committed accidentally 2024-07-25 20:58:29 +02:00
Stypox dbcb721dc2
Don't warn about rhino class in proguard
Likely related to 01a7b20655 but I am not completely sure.
I tested the app and it works well, so I think that org.mozilla.javascript.JavaToJSONConverters is not used really.

This is the full list of errors:
Missing class java.beans.BeanDescriptor (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object))
Missing class java.beans.BeanInfo (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object))
Missing class java.beans.IntrospectionException (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object))
Missing class java.beans.Introspector (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object))
Missing class java.beans.PropertyDescriptor (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object))
2024-07-25 20:56:16 +02:00
Stypox 56b6241311
Hotfix release v0.27.2 (999) 2024-07-25 18:43:03 +02:00
Stypox 947ac2826a
Update NewPipeExtractor to v0.24.2 2024-07-25 18:40:50 +02:00
Isira Seneviratne 4ec7532126 Addressed code review comments 2024-07-23 05:25:55 +05:30