* Add AddServerScreen
* Upgrade androidx-compose-material3 and androidx-compose-ui to alpha
* Add DiscoveredServerComponent
* Show discovered servers
* Add navigation using compose-destinations
* Implement Loginscreen
* Start of HomeScreen
* Use coil for home screen images and update layout with spacers
* Select correct startRoute based on conditions
* Upgrade compose material3 to 1.1.0-alpha05
* Add series title, max 1 line, padding
* Upgrade dependencies
* Switch to TvLazyColumn and TvLazyRow
* Add header to `HomeScreen`
* Add progress bar to Continue watching items
* Limit the number of lines under Movie or Show and use correct episode text
* chore: run ktlintFormat
* ci: assemble tv
* feat: `LibraryScreen`
* fix: update to reworked items system
* chore(deps): update androidx-paging-compose and compose-destination
Also fix lint issue on HomeScreen
* feat: start using androidx.material3 composables
* feat: add coil svg
* feat: experimenting with cards
* lint: fix linting issues
* feat: server select screen
* build: upgrade dependencies
* lint: run ktlintFormat
* feat(ServerSelectScreen): add "No servers found" text
* feat: update AddServerScreen
* feat: implement `UiText.asString()` composable
* lint: run ktlintFormat
* refactor(phone): remove livedata from `ServerSelectScreen`
* feat: add `UserSelectScreen`
* feat(UserSelectScreen): load user's profile picture
* feat: update LoginScreen
* feat: update progress indicator on `AddServerScreen`
* fix: change color of `ServerComponent`
* style(ServerSelect): use material typography
* chore: update ktlint config in build.gradle
* style: use material typography
* refactor: move home screen to separate layout function so it can be previewed
- Introduce dummy items
- Fix `UiText.asString()` composable
* refactor: preview `LibraryScreen`
* refactor: preview `ServerSelectScreen`
* refactor: preview `AddServerScreen`
* refactor: preview `UserSelectScreen`
* refactor: preview `LoginScreen`
* lint: run ktlintFormat
* feat: switch servers
* feat: main screen tabs navigation
* feat: add Live TV tab (not shown for now)
* chore: remove libraries from `HomeViewModel`
* chore: change colors of selected tab
* feat: new item card component
* chore: remove `HomeItem.Libraries`
* style: update spacing
* feat: add findroid icon and profile button on main screen
* style(main): add gradient background
* fix: use "latest" + library name in home screen
* fix: navigate from LoginScreen and UserSelectScreen to MainScreen
* style: update tab colors
* fix: remove reference to `HomeItem.Libraries` from `ViewListAdapter`
* chore: update kotlin compiler to 1.5.0
* feat: add horizontal item card variant
* feat: `LibrariesScreen`
* feat: `LibraryScreen`
* fix(`LibraryScreen`): remove hardcoded library name
* feat: `MovieScreen`
* feat(`MovieScreen`): Make trailer button work
Also hide the button when there is no trailer
* refactor(`MovieScreen`): move click logic out of layout
* refactor: create `FindroidImages` which holds all image uris
* build: upgrade androidx.tv to 1.0.0-alpha08
* chore: update compose libraries
* chore: update compose compiler to 1.5.1
* fix(ItemCard): only show progress when horizontal
* refactor: clean build.gradle.kts
* build: up minSdk to 28 and targetSdk to 34
* refactor: use spacings to provide paddings (#443)
* feat: add Spacings in MaterialTheme
* style: use MaterialTheme.spacings in layouts
Using sizes in Spacer & padding & PaddingValues to standardize it.
* fix: linting issues and a few paddings
* feat: use spacings in `LibraryScreen`
* feat: use spacings in `MovieScreen`
* fix: missing trailing comma
* refactor: replace hardcoded spacer in ItemCard with spacing
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
* build: migrate to ksp and upgrade compose compiler
* build: upgrade compose libraries
* fix: align with main codebase
* chore: update agp to 8.1.3
* chore: update ksp and compose-destinations
ksp 1.9.10-1.0.13 -> 1.9.20-1.0.14
compose-destinations 1.9.51 -> 1.9.54
* refactor(UserSelectViewModel): use channel for events
* feat: basic video player
First implementation of the video player.
Uses the basic player view with no custom layout.
Only media keys are passed to the PlayerView.
* feat: show screen
Still a work in progress
* fix: make player background black
* fix(player): keep screen on
* feat: add border around focused tab
* lint: run ktlintFormat
* feat: focus improvements
* feat: logo for main screen
* fix: remember tab position
* feat: add loading indicator to main screen
And fix home and libraries screen list refresh on navigating back
* feat: add seasons to show screen
* feat: add season screen
* feat: add progress badge
* chore(deps) update dependencies
android-plugin 8.1.3 -> 8.1.4
androidx-activity 1.8.0 -> 1.8.1
androidx-media3 1.1.1 -> 1.2.0
coil 2.4.0 -> 2.5.0
kotlinx-serialization 1.6.0 -> 1.6.1
* ci: upload tv artifacts and don't build universal apks
* chore: get rid of deprecated android.defaults.buildfeatures.buildconfig
* build: upgrade dependencies
android-plugin 8.1.4 -> 8.2.0
androidx-room 2.6.0 -> 2.6.1
androidx-work 2.8.1 -> 2.9.0
jellyfin 1.4.5 -> 1.4.6
compose compiler 1.5.4 -> 1.5.5
* fix: workManagerConfiguration is now a property
* feat: add profile picture to main screen
* feat: start of settings screen
* refactor: base tv theme on normal compose material theme
* chore(deps): update kotlin to 1.9.21
kotlin 1.9.20 -> 1.9.21
ksp 1.9.20-1.0.14 -> 1.9.21-1.0.15
compose-compiler 1.5.5 -> 1.5.6
* feat(settings): add categories and pop backstack when navigating to main screen
* feat(settings): nested settings and switch setting
* feat(settings): settings select component
* feat(settings): icons for cache and about
* feat(settings): add option to toggle mpv player
* feat(settings): move preference value logic to viewmodel
* feat(settings): add dependencies
* chore: update compose compiler
compose-compiler 1.5.6 -> 1.5.7
* feat(settings): add settings detail select card
New sub settings screen with different layout
Settings detail select card to select an option
* feat: play episode from home screen
* feat(player): basic custom overlay
Courtesy of Android TV JetStreamCompose sample
* feat(player): add track selection dialog
* feat(player): add media session and clean up dpad events
* refactor(mpv): implement track selection via TrackSelectionParameters
Need to add ability to disable track type
* feat: implement watched and favorite buttons
* refactor: remove unused PreferenceType enum
---------
* Organize code, fix "locking" problem
Organize `MainActivity.kt`.
Open `serverSelectFragment` instead of `loginFragment` which could've lead to app locking if no user has logged in after adding the server.
* Fix linting
* Optimize imports
* fix: update jellyfinApi before navigating to login fragment
Also move logic to viewmodel
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
* Fix snackbar not showing in landscape
This affected also all tablets since they use the landscape view!
Added `setTextMaxLines` because for some reason the text is truncated on tablets.
Fixes#473.
Co-Authored-By: Jcuhfehl <91626737+Jcuhfehl@users.noreply.github.com>
* Remove unused import
---------
Co-authored-by: Jcuhfehl <91626737+Jcuhfehl@users.noreply.github.com>
* improvement: changed Person Detail Fragment
Changed the Person Detail Fragment to better use the available space.
Separate layout for larger screens/landscape orientation
* added values for different screen sizes
* fixed spacing
* refactor: rename `layout_height_def` to `person_detail_overview_height`
* refactor: remove `+` from some ids
I know that xml files are parsed top to bottom and the plus sign create a new id. But it seems to work even if the id is created after it is referenced.
I think this is cleaner
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
Fixes#445
The episode indicator background was constrained to a 24dp box. If this box could not contain the count, then the count would wrap onto a new line.
The proposed solution is to use a rounded rectangle as the background instead. This can then expand into a chip as needed to accommodate larger numbers without wrapping.
* add pip
* fixed OnResume() OnStop()
add picture in picture button
add pip settings
* fixed sourceRectHint
add aspectRatio
* fix import
* improve hide playerControls
* add onNewIntent()
* Home button/gesture settings
* add summary
* add GESTURE_EXCLUSION_AREA_SIDE
* remove if else in sourceRectHint
fix onStop() behavior
* fix behavior when using pip button, now go home
* test
* fix onStop()
* fix: mpv aspect ratio
* fix when in PiP mode and starting new playback
* refactor: pip implementation
Remove option to disable pip button, always show the button when pip is supported
Remove the option to completely disable pip
Format using ktlint
* fix when in pip mode and play a new video
* fix recent app behavior
* lint
* Some adjustments
* fix: Aspect ratio is too extreme
* fix: Activity recreation
* fix merge issues
* fix merge issues
* ktlintFormat
* Add Picture in Picture
* fix
* fix sourceRectHint, updateZoomMode before entering pip
* lint
* fix: disable pip when player is locked
* lint
* lint
* fix: sourceRectHint
* fix: replace media items in mpv
* fix: don't show skip intro button in pip
* chore: remove `android:resizeableActivity` from manifest since the default is already `true`
* refactor: remove option to force 16:9 aspect ratio
* refactor: update strings
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
* refactor: remove deprecated methods to hide system ui
* fix: action bar reappear after changing the brightness
* lint: run ktlintFormat
* refactor: remove sdk check
* fix: system bars stay visible after closing dialog
* fix: add player theme to set navigationbar and statusbar colors to transparent
* fix: draw behind navigationbar and statusbar
* refactor: remove swipeToShowStatusBars extensions
Remove fix for status bar reappearing on LineageOS after changing brightness with gesture.
This can always be added back when official Android version from manufacturers also need this fix.
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
* feat: Add seek and play/pause functionality to onDoubleTap
This patch enhances the `onDoubleTap` method within the media player
component. It introduces a split-screen layout where the player view is
divided into three equal areas (in the ratio of 2:1:2).
1. Leftmost Area: When double-tapped, it seeks the media playback
backward by the defined seek increment
(`appPreferences.playerSeekBackIncrement`).
2. Middle Area: A double-tap in this area toggles the play/pause state
of the player. If the player is currently playing, it will be paused,
and if it's paused, it will be resumed.
3. Rightmost Area: When double-tapped, it seeks the media playback
forward by the specified seek increment
(`appPreferences.playerSeekForwardIncrement`).
* refactor: inline some variables and put x position inside when statement
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>