[Android] Move the media DB to a new module
Nicolas Pomepuy
git at videolan.org
Tue Jan 14 11:00:14 CET 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Jan 8 10:50:55 2020 +0100| [8ee47a0ef5c5e7329a08d2aac1412074ae8b88b4] | committer: Nicolas Pomepuy
Move the media DB to a new module
> https://code.videolan.org/videolan/vlc-android/commit/8ee47a0ef5c5e7329a08d2aac1412074ae8b88b4
---
mediadb/.gitignore | 1 +
mediadb/build.gradle | 70 ++++++++++++++++++++++
mediadb/consumer-rules.pro | 0
mediadb/proguard-rules.pro | 21 +++++++
.../vlc/mediadb/ExampleInstrumentedTest.kt | 48 +++++++++++++++
mediadb/src/main/AndroidManifest.xml | 26 ++++++++
.../org/videolan/vlc/mediadb}/BrowserFavDao.kt | 5 +-
.../java/org/videolan/vlc/mediadb/Converters.kt | 67 +++++++++++++++++++++
.../videolan/vlc/mediadb}/CustomDirectoryDao.kt | 2 +-
.../org/videolan/vlc/mediadb}/ExternalSubDao.kt | 8 ++-
.../org/videolan/vlc/mediadb}/MediaDatabase.kt | 36 +++++++++--
.../java/org/videolan/vlc/mediadb}/Migrations.kt | 10 ++--
.../java/org/videolan/vlc/mediadb}/SlaveDao.kt | 2 +-
.../org/videolan/vlc/mediadb/models/BrowserFav.kt | 63 +++++++++++++++++++
.../vlc/mediadb}/models/CustomDirectory.kt | 2 +-
.../videolan/vlc/mediadb}/models/ExternalSub.kt | 2 +-
.../java/org/videolan/vlc/mediadb}/models/Slave.kt | 2 +-
mediadb/src/main/res/values/strings.xml | 27 +++++++++
.../org/videolan/vlc/mediadb/ExampleUnitTest.kt | 48 ++++++++-------
resources/build.gradle | 17 ++++++
.../java/org/videolan/resources}/AndroidDevices.kt | 25 +++++---
.../main/java/org/videolan/resources/Constants.kt | 3 +-
.../main/java/org/videolan/resources}/Strings.kt | 6 +-
settings.gradle | 2 +-
tools/src/main/java/org/videolan/tools/Workers.kt | 46 ++++++++++++++
.../org/videolan/vlc/database/MigrationTest.kt | 14 ++---
vlc-android/build.gradle | 1 +
vlc-android/res/layout/playlist_item.xml | 2 +-
.../src/org/videolan/vlc/DebugLogService.kt | 2 +-
.../src/org/videolan/vlc/ExternalMonitor.kt | 5 +-
vlc-android/src/org/videolan/vlc/FileProvider.kt | 2 +-
.../src/org/videolan/vlc/MediaParsingService.kt | 15 ++---
.../src/org/videolan/vlc/MediaSessionCallback.kt | 2 +-
.../src/org/videolan/vlc/PlaybackService.kt | 1 +
.../src/org/videolan/vlc/RecommendationsService.kt | 5 +-
.../src/org/videolan/vlc/RendererDelegate.kt | 2 +-
vlc-android/src/org/videolan/vlc/StartActivity.kt | 1 +
.../src/org/videolan/vlc/StoragesMonitor.kt | 2 +-
vlc-android/src/org/videolan/vlc/TvReceiver.kt | 2 +-
vlc-android/src/org/videolan/vlc/VLCApplication.kt | 2 +-
.../src/org/videolan/vlc/gui/ContentActivity.kt | 2 +-
.../src/org/videolan/vlc/gui/InfoActivity.kt | 1 +
.../src/org/videolan/vlc/gui/MainActivity.kt | 5 +-
.../src/org/videolan/vlc/gui/PlaylistActivity.kt | 1 +
.../src/org/videolan/vlc/gui/SecondaryActivity.kt | 2 +-
.../src/org/videolan/vlc/gui/SendCrashActivity.kt | 6 +-
.../org/videolan/vlc/gui/audio/BaseAudioBrowser.kt | 1 +
.../videolan/vlc/gui/browser/BaseBrowserAdapter.kt | 2 +-
.../vlc/gui/browser/BaseBrowserFragment.kt | 4 +-
.../vlc/gui/browser/FileBrowserFragment.kt | 6 +-
.../videolan/vlc/gui/browser/FilePickerFragment.kt | 4 +-
.../vlc/gui/browser/MediaBrowserFragment.kt | 4 +-
.../org/videolan/vlc/gui/browser/PathAdapter.kt | 2 +-
.../org/videolan/vlc/gui/dialogs/ContextSheet.kt | 2 +-
.../vlc/gui/dialogs/NetworkServerDialog.kt | 2 +-
.../vlc/gui/dialogs/PlaybackSpeedDialog.kt | 2 +-
.../vlc/gui/dialogs/SubtitleDownloadFragment.kt | 3 +-
.../org/videolan/vlc/gui/dialogs/VlcLoginDialog.kt | 5 +-
.../src/org/videolan/vlc/gui/helpers/AudioUtil.kt | 4 +-
.../org/videolan/vlc/gui/helpers/BitmapCache.kt | 4 +-
.../org/videolan/vlc/gui/helpers/ImageLoader.kt | 2 +-
.../videolan/vlc/gui/helpers/MedialibraryUtils.kt | 8 +--
.../videolan/vlc/gui/helpers/NotificationHelper.kt | 1 +
.../vlc/gui/helpers/PlayerOptionsDelegate.kt | 2 +
.../src/org/videolan/vlc/gui/helpers/UiTools.kt | 4 +-
.../gui/helpers/hf/StoragePermissionsDelegate.kt | 4 +-
.../vlc/gui/helpers/hf/WriteExternalDelegate.kt | 7 +--
.../vlc/gui/onboarding/OnboardingActivity.kt | 5 +-
.../vlc/gui/onboarding/OnboardingThemeFragment.kt | 2 +-
.../vlc/gui/onboarding/OnboardingViewModel.kt | 5 +-
.../vlc/gui/preferences/PreferencesAdvanced.kt | 2 +-
.../vlc/gui/preferences/PreferencesAudio.kt | 2 +-
.../videolan/vlc/gui/preferences/PreferencesUi.kt | 3 +-
.../src/org/videolan/vlc/gui/tv/MainTvFragment.kt | 2 +-
.../vlc/gui/tv/audioplayer/AudioPlayerActivity.kt | 2 +-
.../vlc/gui/tv/preferences/PreferencesAdvanced.kt | 2 +-
.../vlc/gui/tv/preferences/PreferencesFragment.kt | 1 +
.../vlc/gui/tv/preferences/PreferencesUi.kt | 3 +-
.../vlc/gui/tv/preferences/PreferencesVideo.kt | 2 +-
.../org/videolan/vlc/gui/video/MediaInfoAdapter.kt | 3 +-
.../videolan/vlc/gui/video/VideoPlayerActivity.kt | 7 +--
.../videolan/vlc/gui/video/VideoTouchDelegate.kt | 4 +-
.../vlc/gui/video/benchmark/BenchActivity.kt | 2 +-
.../src/org/videolan/vlc/media/MediaUtils.kt | 1 +
.../src/org/videolan/vlc/media/PlaylistManager.kt | 6 +-
.../org/videolan/vlc/providers/BrowserProvider.kt | 1 +
.../videolan/vlc/providers/FileBrowserProvider.kt | 6 +-
.../org/videolan/vlc/providers/StorageProvider.kt | 2 +-
.../vlc/repository/BrowserFavRepository.kt | 11 ++--
.../videolan/vlc/repository/DirectoryRepository.kt | 11 ++--
.../vlc/repository/ExternalSubRepository.kt | 8 +--
.../org/videolan/vlc/repository/SlaveRepository.kt | 6 +-
.../src/org/videolan/vlc/util/Browserutils.kt | 4 +-
vlc-android/src/org/videolan/vlc/util/FileUtils.kt | 2 +
.../src/org/videolan/vlc/util/Kextensions.kt | 1 +
.../src/org/videolan/vlc/util/TvChannels.kt | 1 +
vlc-android/src/org/videolan/vlc/util/Util.kt | 3 +
.../org/videolan/vlc/util/VLCAudioFocusHelper.kt | 1 +
vlc-android/src/org/videolan/vlc/util/Workers.kt | 22 -------
.../org/videolan/vlc/viewmodels/tv/MainTvModel.kt | 6 +-
.../videolan/vlc/widget/VLCAppWidgetProvider.kt | 9 ++-
.../test-common/org/videolan/vlc/util/TestUtil.kt | 40 ++++++-------
.../vlc/repository/BrowserFavRepositoryTest.kt | 8 +--
.../vlc/repository/DirectoryRepositoryTest.kt | 12 ++--
.../vlc/repository/ExternalSubRepositoryTest.kt | 14 ++---
.../videolan/vlc/repository/SlaveRepositoryTest.kt | 4 +-
.../test/org/videolan/vlc/util/StringsTest.kt | 1 +
.../videolan/vlc/viewmodels/SubtitlesModelTest.kt | 4 +-
.../vlc/viewmodels/browser/FileBrowserModelTest.kt | 8 +--
.../vlc/viewmodels/browser/StorageModelTest.kt | 10 ++--
110 files changed, 664 insertions(+), 272 deletions(-)
Diff: https://code.videolan.org/videolan/vlc-android/commit/8ee47a0ef5c5e7329a08d2aac1412074ae8b88b4
More information about the Android
mailing list