[Android] Move more util classes to tools module

Nicolas Pomepuy git at videolan.org
Tue Jan 14 11:00:17 CET 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Jan  9 08:55:56 2020 +0100| [e685595090206252641d24d5d005af0fd1d96b4e] | committer: Nicolas Pomepuy

Move more util classes to tools module

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

 .../java/org/videolan/resources/AndroidDevices.kt  |  3 +
 .../src/main/java/org/videolan/tools}/AppUtils.kt  |  2 +-
 .../main/java/org/videolan/tools}/BitmapCache.kt   | 30 +++++++--
 .../main/java/org/videolan/tools/CloseableUtils.kt | 41 ++++++++++++
 .../videolan/tools}/CoroutineContextProvider.kt    |  2 +-
 .../java/org/videolan/tools}/DependencyProvider.kt |  2 +-
 .../java/org/videolan/tools}/HttpImageLoader.kt    | 35 +++++------
 .../src/main/java/org/videolan/tools}/Strings.kt   |  2 +-
 .../org/videolan/tools/livedata/LiveDataMap.kt     | 50 +++++++++++++++
 .../org/videolan/tools/livedata/LiveDataset.kt     | 72 ++++++++++++++++++++++
 .../org/videolan/vlc/gui/PlaylistFragmentUITest.kt |  2 +-
 vlc-android/res/layout/playlist_item.xml           |  2 +-
 .../src/org/videolan/vlc/DebugLogService.kt        | 10 +--
 .../src/org/videolan/vlc/ExternalMonitor.kt        |  3 +-
 .../src/org/videolan/vlc/RendererDelegate.kt       |  2 +-
 vlc-android/src/org/videolan/vlc/VLCApplication.kt |  2 +-
 .../src/org/videolan/vlc/VLCCrashHandler.kt        |  6 +-
 .../src/org/videolan/vlc/gui/InfoActivity.kt       |  2 +-
 .../src/org/videolan/vlc/gui/SendCrashActivity.kt  |  4 +-
 .../vlc/gui/browser/BaseBrowserFragment.kt         |  1 +
 .../vlc/gui/browser/FileBrowserFragment.kt         |  2 +-
 .../videolan/vlc/gui/browser/FilePickerFragment.kt |  2 +-
 .../vlc/gui/dialogs/PlaybackSpeedDialog.kt         |  2 +-
 .../videolan/vlc/gui/dialogs/SavePlaylistDialog.kt |  4 +-
 .../src/org/videolan/vlc/gui/helpers/AudioUtil.kt  |  8 +--
 .../src/org/videolan/vlc/gui/helpers/BitmapUtil.kt |  1 +
 .../org/videolan/vlc/gui/helpers/ImageLoader.kt    |  3 +-
 .../videolan/vlc/gui/helpers/MedialibraryUtils.kt  |  1 +
 .../vlc/gui/helpers/PlayerOptionsDelegate.kt       |  1 +
 .../vlc/gui/tv/MediaItemDetailsFragment.kt         |  2 +-
 .../vlc/gui/tv/MoviepediaTvshowDetailsFragment.kt  |  2 +-
 vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.kt  |  1 +
 .../org/videolan/vlc/gui/video/MediaInfoAdapter.kt |  2 +-
 .../org/videolan/vlc/providers/BrowserProvider.kt  |  4 +-
 .../videolan/vlc/providers/FileBrowserProvider.kt  |  2 +-
 .../videolan/vlc/providers/FilePickerProvider.kt   |  2 +-
 .../org/videolan/vlc/providers/NetworkProvider.kt  |  2 +-
 .../org/videolan/vlc/providers/StorageProvider.kt  |  2 +-
 .../vlc/repository/ExternalSubRepository.kt        |  6 +-
 .../src/org/videolan/vlc/util/Browserutils.kt      |  3 +-
 vlc-android/src/org/videolan/vlc/util/FileUtils.kt | 15 ++---
 .../src/org/videolan/vlc/util/LiveDataMap.kt       | 29 ---------
 .../src/org/videolan/vlc/util/LiveDataset.kt       | 48 ---------------
 vlc-android/src/org/videolan/vlc/util/Logcat.kt    | 17 ++---
 .../org/videolan/vlc/util/ThumbnailsProvider.kt    |  7 ++-
 vlc-android/src/org/videolan/vlc/util/Util.kt      | 19 +++---
 .../src/org/videolan/vlc/viewmodels/BaseModel.kt   |  2 +
 .../org/videolan/vlc/viewmodels/HistoryModel.kt    |  2 +-
 .../videolan/vlc/viewmodels/MedialibraryModel.kt   |  2 +-
 .../org/videolan/vlc/viewmodels/PlaylistModel.kt   |  2 +-
 .../org/videolan/vlc/viewmodels/StreamsModel.kt    |  4 +-
 .../org/videolan/vlc/viewmodels/SubtitlesModel.kt  |  2 +-
 .../vlc/viewmodels/browser/BrowserModel.kt         |  2 +-
 .../vlc/viewmodels/browser/NetworkModel.kt         |  2 +-
 .../vlc/util/TestCoroutineContextProvider.kt       |  1 +
 .../test/org/videolan/vlc/util/StringsTest.kt      |  2 +-
 .../vlc/viewmodels/browser/FileBrowserModelTest.kt |  3 +-
 .../vlc/viewmodels/browser/FilePickerModelTest.kt  |  2 +-
 .../vlc/viewmodels/browser/NetworkModelTest.kt     |  2 +-
 .../vlc/viewmodels/browser/StorageModelTest.kt     |  3 +-
 60 files changed, 302 insertions(+), 189 deletions(-)

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


More information about the Android mailing list