[Android] WIP: Moviepedia module

Geoffrey Métais git at videolan.org
Fri Dec 27 12:16:59 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec 24 12:00:25 2019 +0100| [7a2f574556bc157058454cea61d307af970bbef8] | committer: Geoffrey Métais

WIP: Moviepedia module

> https://code.videolan.org/videolan/vlc-android/commit/7a2f574556bc157058454cea61d307af970bbef8
---

 moviepedia/.gitignore                              |   1 +
 moviepedia/build.gradle                            |  56 +++++
 moviepedia/consumer-rules.pro                      |   0
 moviepedia/proguard-rules.pro                      |  21 ++
 .../videolan/moviepedia/ExampleInstrumentedTest.kt |  24 ++
 moviepedia/src/main/AndroidManifest.xml            |   2 +
 .../videolan}/moviepedia/IMoviepediaApiService.kt  |  16 +-
 .../videolan}/moviepedia/MoviepediaApiService.kt   |  13 +-
 .../org/videolan}/moviepedia/MoviepediaIndexer.kt  |  32 +--
 .../videolan/moviepedia}/database/Converters.kt    |   8 +-
 .../videolan/moviepedia}/database/MediaImageDao.kt |   4 +-
 .../moviepedia}/database/MediaMetadataDao.kt       |   4 +-
 .../database/MediaMetadataDataFullDao.kt           |   4 +-
 .../moviepedia}/database/MediaPersonJoinDao.kt     |   8 +-
 .../moviepedia/database/MoviePediaDatabase.kt      |  53 +++++
 .../org/videolan/moviepedia}/database/PersonDao.kt |   4 +-
 .../moviepedia}/database/models/MediaMetadata.kt   |  58 ++---
 .../moviepedia/models/body/ScrobbleBody.kt         |   2 +-
 .../models/identify/IdentifyBatchResult.kt         |   2 +-
 .../moviepedia/models/identify/IdentifyResult.kt   |   2 +-
 .../moviepedia/models/media/MediaResult.kt         |   4 +-
 .../moviepedia/models/media/cast/CastResult.kt     |   2 +-
 .../repository/MediaMetadataRepository.kt          |  20 +-
 .../repository/MediaPersonRepository.kt            |  17 +-
 .../repository/MoviepediaApiRepository.kt          |  18 +-
 .../moviepedia}/repository/PersonRepository.kt     |  16 +-
 .../org/videolan/moviepedia/ExampleUnitTest.kt     |  17 ++
 settings.gradle                                    |   1 +
 tools/build.gradle                                 |   2 +-
 .../org/videolan/tools}/ConnectivityInterceptor.kt |  14 +-
 .../src/main/java/org/videolan/tools/FileUtils.kt  |  56 +++++
 .../java/org/videolan/tools/KotlinExtensions.kt    |   9 +
 .../main/java/org/videolan/tools/LocaleUtils.kt    |  65 ++++++
 .../org/videolan/vlc/database/ConvertersTest.kt    |   1 +
 .../30.json                                        | 260 +--------------------
 vlc-android/build.gradle                           |   6 +-
 vlc-android/res/layout/movie_browser_tv_item.xml   |   2 +-
 vlc-android/res/layout/moviepedia_item.xml         |   2 +-
 vlc-android/res/layout/tv_video_details.xml        |   2 +-
 .../src/org/videolan/vlc/MediaParsingService.kt    |   2 +-
 .../src/org/videolan/vlc/TVSearchProvider.kt       |  10 +-
 vlc-android/src/org/videolan/vlc/VLCApplication.kt |   3 +-
 .../org/videolan/vlc/api/OpenSubtitleService.kt    |  14 +-
 .../src/org/videolan/vlc/database/MediaDatabase.kt |  17 +-
 .../src/org/videolan/vlc/database/Migrations.kt    |  15 --
 .../src/org/videolan/vlc/gui/MoviepediaActivity.kt |   4 +-
 .../videolan/vlc/gui/MoviepediaResultAdapter.kt    |   8 +-
 .../src/org/videolan/vlc/gui/tv/CardPresenter.kt   |   7 +-
 .../vlc/gui/tv/DetailsDescriptionPresenter.kt      |   5 +-
 .../videolan/vlc/gui/tv/MediaImageCardPresenter.kt |   6 +-
 .../vlc/gui/tv/MediaItemDetailsFragment.kt         |  12 +-
 .../videolan/vlc/gui/tv/MetadataCardPresenter.kt   |   6 +-
 .../videolan/vlc/gui/tv/MoviepediaTvFragment.kt    |   6 +-
 .../videolan/vlc/gui/tv/MoviepediaTvItemAdapter.kt |   2 +-
 .../vlc/gui/tv/MoviepediaTvshowDetailsFragment.kt  |   2 +-
 .../org/videolan/vlc/gui/tv/PersonCardPresenter.kt |   2 +-
 .../vlc/gui/tv/TvShowDescriptionPresenter.kt       |   2 +-
 vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.kt  |   2 +-
 .../gui/tv/browser/MoviepediaBrowserTvFragment.kt  |   4 +-
 .../vlc/providers/MoviepediaMovieProvider.kt       |   4 +-
 .../videolan/vlc/providers/MoviepediaProvider.kt   |   2 +-
 .../vlc/providers/MoviepediaTvshowProvider.kt      |   4 +-
 .../datasources/MovieDataSourceFactory.kt          |   6 +-
 vlc-android/src/org/videolan/vlc/util/FileUtils.kt |  46 ----
 .../src/org/videolan/vlc/util/Kextensions.kt       |   2 +-
 .../src/org/videolan/vlc/util/LocaleUtils.kt       |  62 +----
 .../src/org/videolan/vlc/util/ModelsHelper.kt      |   4 +-
 .../videolan/vlc/viewmodels/MediaMetadataModel.kt  |   8 +-
 .../org/videolan/vlc/viewmodels/MoviepediaModel.kt |   6 +-
 .../org/videolan/vlc/viewmodels/SubtitlesModel.kt  |   4 +-
 .../org/videolan/vlc/viewmodels/tv/MainTvModel.kt  |   4 +-
 .../viewmodels/tv/MoviepediaBrowserViewModel.kt    |   4 +-
 .../videolan/vlc/viewmodels/SubtitlesModelTest.kt  |   2 +-
 73 files changed, 499 insertions(+), 616 deletions(-)

Diff:   https://code.videolan.org/videolan/vlc-android/commit/7a2f574556bc157058454cea61d307af970bbef8


More information about the Android mailing list