[Android] Retrieve and display more info from the Next API

Nicolas Pomepuy git at videolan.org
Thu Nov 28 11:40:41 CET 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Wed Oct 30 09:19:10 2019 +0100| [9e7b81b8b69b857e98495286cde4dbe4439b82b2] | committer: Geoffrey Métais

Retrieve and display more info from the Next API

Info retrieved : Video infos + images + persons
At this point the migration is not done so a clear data may be needed

> https://code.videolan.org/videolan/vlc-android/commit/9e7b81b8b69b857e98495286cde4dbe4439b82b2
---

 vlc-android/build.gradle                           |   1 +
 .../res/drawable/ic_account_circle_black_24dp.xml  |  33 ++++
 vlc-android/res/layout/next_item.xml               |   2 +-
 vlc-android/res/layout/tv_description_row.xml      |  41 +++++
 vlc-android/res/layout/tv_video_details.xml        | 178 +++++++++++++++++++++
 vlc-android/res/values/strings.xml                 |  13 ++
 vlc-android/res/values/styles.xml                  |  21 +++
 .../src/org/videolan/vlc/database/Converters.kt    |  39 ++++-
 .../src/org/videolan/vlc/database/MediaDatabase.kt |  19 ++-
 .../src/org/videolan/vlc/database/MediaImageDao.kt |  59 +++++++
 .../org/videolan/vlc/database/MediaMetadataDao.kt  |  60 +++++++
 .../vlc/database/MediaMetadataDataFullDao.kt       |  41 +++++
 .../videolan/vlc/database/MediaPersonJoinDao.kt    |  56 +++++++
 .../src/org/videolan/vlc/database/Migrations.kt    |   8 +
 .../src/org/videolan/vlc/database/PersonDao.kt     |  60 +++++++
 .../org/videolan/vlc/database/models/MediaImage.kt |  72 +++++++++
 .../videolan/vlc/database/models/MediaMetadata.kt  |  81 ++++++++++
 .../vlc/database/models/MediaMetadataWithImages.kt |  36 +++++
 .../videolan/vlc/database/models/MediaPerson.kt    |  56 +++++++
 .../src/org/videolan/vlc/database/models/Person.kt |  61 +++++++
 .../src/org/videolan/vlc/gui/NextActivity.kt       |  11 +-
 .../src/org/videolan/vlc/gui/NextResultAdapter.kt  |  12 +-
 .../org/videolan/vlc/gui/helpers/ImageLoader.kt    |   2 +-
 .../src/org/videolan/vlc/gui/tv/CardPresenter.kt   |  10 +-
 .../vlc/gui/tv/DetailsDescriptionPresenter.kt      |  19 ++-
 .../videolan/vlc/gui/tv/FullWidthRowPresenter.kt   |  54 +++++++
 .../videolan/vlc/gui/tv/MediaImageCardPresenter.kt | 130 +++++++++++++++
 .../vlc/gui/tv/MediaItemDetailsFragment.kt         | 119 +++++++++++++-
 .../src/org/videolan/vlc/gui/tv/NextTvActivity.kt  |   4 +-
 .../src/org/videolan/vlc/gui/tv/NextTvFragment.kt  |  19 ++-
 .../org/videolan/vlc/gui/tv/PersonCardPresenter.kt | 127 +++++++++++++++
 .../videolan/vlc/gui/tv/VideoDetailsPresenter.kt   |  68 ++++++++
 .../src/org/videolan/vlc/next/INextApiService.kt   |  18 ++-
 .../src/org/videolan/vlc/next/NextApiService.kt    |  10 +-
 .../videolan/vlc/next/models/body/ScrobbleBody.kt  |  40 +++++
 .../videolan/vlc/next/models/identify/Backdrop.kt  |  36 +++++
 .../vlc/next/models/identify/Externalids.kt        |  34 ++++
 .../vlc/next/models/identify/IdentifyResult.kt     |  36 +++++
 .../videolan/vlc/next/models/identify/Images.kt    |  34 ++++
 .../org/videolan/vlc/next/models/identify/Media.kt |  89 +++++++++++
 .../videolan/vlc/next/models/identify/Poster.kt    |  36 +++++
 .../org/videolan/vlc/next/models/identify/Video.kt |  36 +++++
 .../videolan/vlc/next/models/{ => media}/Images.kt |   3 +-
 .../vlc/next/models/{ => media}/MediaResult.kt     |   4 +-
 .../videolan/vlc/next/models/{ => media}/Medias.kt |   2 +-
 .../vlc/next/models/{ => media}/NextResults.kt     |   2 +-
 .../vlc/next/models/{ => media}/PersonResult.kt    |   2 +-
 .../vlc/next/models/{ => media}/Persons.kt         |   2 +-
 .../videolan/vlc/next/models/{ => media}/Phrase.kt |   2 +-
 .../videolan/vlc/next/models/media/cast/Actor.kt   |  36 +++++
 .../vlc/next/models/media/cast/CastResult.kt       |  40 +++++
 .../vlc/next/models/media/cast/Director.kt         |  34 ++++
 .../videolan/vlc/next/models/media/cast/Images.kt  |  32 ++++
 .../vlc/next/models/media/cast/Musician.kt         |  34 ++++
 .../videolan/vlc/next/models/media/cast/Person.kt  |  45 ++++++
 .../vlc/next/models/media/cast/Producer.kt         |  34 ++++
 .../videolan/vlc/next/models/media/cast/Profile.kt |  36 +++++
 .../vlc/next/models/media/cast/ProfileX.kt         |  36 +++++
 .../videolan/vlc/next/models/media/cast/Writer.kt  |  34 ++++
 .../vlc/repository/MediaMetadataRepository.kt      |  72 +++++++++
 .../vlc/repository/MediaPersonRepository.kt        |  88 ++++++++++
 .../videolan/vlc/repository/NextApiRepository.kt   |  18 ++-
 .../videolan/vlc/repository/PersonRepository.kt    |  65 ++++++++
 vlc-android/src/org/videolan/vlc/util/FileUtils.kt |   4 +-
 .../videolan/vlc/viewmodels/MediaMetadataModel.kt  |  74 +++++++++
 .../src/org/videolan/vlc/viewmodels/NextModel.kt   | 130 ++++++++++++++-
 66 files changed, 2636 insertions(+), 74 deletions(-)

Diff:   https://code.videolan.org/videolan/vlc-android/commit/9e7b81b8b69b857e98495286cde4dbe4439b82b2


More information about the Android mailing list