[Android] Migration to AndroidX libraries

Geoffrey Métais git at videolan.org
Thu Oct 18 16:02:22 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Oct 18 16:00:22 2018 +0200| [57a41abac0deec519c74a9f287eb93fa1bc7aeb2] | committer: Geoffrey Métais

Migration to AndroidX libraries

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

 api/build.gradle                                   |  2 +-
 .../vlc/extensions/api/VLCExtensionService.java    |  4 +-
 .../videolan/vlc/extensions/api/tools/Dialogs.java |  6 +--
 build.gradle                                       | 21 ++++----
 java-libs/appcompat/AndroidManifest.xml            |  2 +-
 java-libs/cardview/AndroidManifest.xml             |  2 +-
 libvlc/build.gradle                                |  4 +-
 libvlc/src/org/videolan/libvlc/AWindow.java        |  2 +-
 libvlc/src/org/videolan/libvlc/Dialog.java         |  2 +-
 libvlc/src/org/videolan/libvlc/IVLCVout.java       |  2 +-
 libvlc/src/org/videolan/libvlc/Media.java          |  2 +-
 .../src/org/videolan/libvlc/MediaDiscoverer.java   |  2 +-
 libvlc/src/org/videolan/libvlc/MediaPlayer.java    |  2 +-
 .../org/videolan/libvlc/RendererDiscoverer.java    |  2 +-
 libvlc/src/org/videolan/libvlc/util/Dumper.java    |  2 +-
 .../src/org/videolan/libvlc/util/MediaBrowser.java |  2 +-
 libvlc/src/org/videolan/libvlc/util/VLCUtil.java   |  2 +-
 medialibrary/build.gradle                          |  6 +--
 .../org/videolan/medialibrary/Medialibrary.java    | 14 +++---
 .../src/org/videolan/medialibrary/Tools.java       |  2 +-
 .../org/videolan/medialibrary/media/Artist.java    |  2 +-
 .../src/org/videolan/medialibrary/media/Genre.java |  2 +-
 .../videolan/medialibrary/media/MediaWrapper.java  |  2 +-
 tools/build.gradle                                 | 10 ++--
 .../org/commontools/ExampleInstrumentedTest.java   |  4 +-
 tools/src/main/AndroidManifest.xml                 |  2 +-
 .../java/org/videolan/tools/KotlinExtensions.kt    |  6 +--
 .../java/org/videolan/tools/MultiSelectHelper.kt   |  2 +-
 .../java/videolan/org/commontools/LiveEvent.kt     | 14 +++---
 .../videolan/org/commontools/TvChannelUtils.kt     |  6 +--
 vlc-android/AndroidManifest.xml                    |  4 +-
 .../org/videolan/vlc/database/BrowserFavDaoTest.kt |  2 +-
 .../org/videolan/vlc/database/ConvertersTest.kt    |  2 +-
 .../vlc/database/CustomDirectoryDaoTest.kt         |  2 +-
 .../org/videolan/vlc/database/DbTest.kt            |  6 +--
 .../videolan/vlc/database/ExternalSubDaoTest.kt    |  2 +-
 .../org/videolan/vlc/database/MigrationTest.kt     | 12 ++---
 .../org/videolan/vlc/database/SlaveDaoTest.kt      |  2 +-
 vlc-android/build.gradle                           | 47 +++++++++---------
 vlc-android/res/layout-land/audio_player.xml       | 16 +++---
 vlc-android/res/layout-land/equalizer.xml          | 10 ++--
 vlc-android/res/layout/about.xml                   |  4 +-
 vlc-android/res/layout/audio_albums_songs.xml      |  4 +-
 vlc-android/res/layout/audio_browser.xml           |  8 +--
 vlc-android/res/layout/audio_browser_item.xml      |  4 +-
 .../res/layout/audio_media_switcher_item.xml       |  4 +-
 vlc-android/res/layout/audio_player.xml            | 16 +++---
 vlc-android/res/layout/audio_player_header.xml     |  8 +--
 vlc-android/res/layout/audio_recyclerview.xml      |  2 +-
 vlc-android/res/layout/audioplayercontainer.xml    |  2 +-
 vlc-android/res/layout/browser_item.xml            |  4 +-
 vlc-android/res/layout/contextual_sheet.xml        |  4 +-
 vlc-android/res/layout/dialog_playlist.xml         |  6 +--
 vlc-android/res/layout/dialog_renderers.xml        |  6 +--
 vlc-android/res/layout/directory_browser.xml       |  6 +--
 vlc-android/res/layout/equalizer.xml               |  8 +--
 vlc-android/res/layout/extension_item_view.xml     |  4 +-
 vlc-android/res/layout/file_picker_fragment.xml    |  2 +-
 vlc-android/res/layout/history_item.xml            |  4 +-
 vlc-android/res/layout/history_list.xml            |  6 +--
 vlc-android/res/layout/info_activity.xml           | 24 ++++-----
 vlc-android/res/layout/main.xml                    | 14 +++---
 vlc-android/res/layout/ml_wizard_activity.xml      |  4 +-
 vlc-android/res/layout/mrl_item.xml                |  4 +-
 vlc-android/res/layout/mrl_panel.xml               | 16 +++---
 vlc-android/res/layout/network_server_dialog.xml   | 18 +++----
 vlc-android/res/layout/player.xml                  | 10 ++--
 vlc-android/res/layout/player_hud.xml              |  2 +-
 vlc-android/res/layout/player_remote_control.xml   |  8 +--
 vlc-android/res/layout/playlist_activity.xml       | 18 +++----
 vlc-android/res/layout/preferences_activity.xml    |  4 +-
 vlc-android/res/layout/search_activity.xml         | 20 ++++----
 vlc-android/res/layout/secondary.xml               | 12 ++---
 .../res/layout/subtitle_download_fragment.xml      | 20 ++++----
 vlc-android/res/layout/subtitle_download_item.xml  |  6 +--
 .../res/layout/subtitle_downloader_dialog.xml      | 10 ++--
 .../res/layout/subtitle_history_fragment.xml       |  6 +--
 vlc-android/res/layout/tab_layout.xml              |  2 +-
 vlc-android/res/layout/toolbar.xml                 |  8 +--
 vlc-android/res/layout/tv_audio_player.xml         |  8 +--
 vlc-android/res/layout/tv_main.xml                 |  4 +-
 vlc-android/res/layout/tv_vertical_grid.xml        |  4 +-
 vlc-android/res/layout/video_grid.xml              |  4 +-
 vlc-android/res/layout/video_grid_card.xml         |  6 +--
 vlc-android/res/layout/video_list_card.xml         |  6 +--
 vlc-android/res/layout/vlc_login_dialog.xml        |  8 +--
 vlc-android/res/layout/vlc_progress_dialog.xml     |  2 +-
 vlc-android/res/menu/activity_option.xml           |  2 +-
 vlc-android/res/xml/preferences_ui.xml             |  4 +-
 .../src/org/videolan/vlc/DebugLogService.java      |  2 +-
 .../src/org/videolan/vlc/ExternalMonitor.java      | 10 ++--
 .../src/org/videolan/vlc/MediaParsingService.kt    | 12 ++---
 .../src/org/videolan/vlc/PlaybackService.kt        | 30 +++++------
 .../src/org/videolan/vlc/RecommendationsService.kt |  6 +--
 .../src/org/videolan/vlc/RendererDelegate.kt       |  4 +-
 .../src/org/videolan/vlc/StartActivity.java        |  4 +-
 .../src/org/videolan/vlc/VLCApplication.java       |  8 +--
 .../src/org/videolan/vlc/database/BrowserFavDao.kt | 10 ++--
 .../src/org/videolan/vlc/database/Converters.kt    |  2 +-
 .../videolan/vlc/database/CustomDirectoryDao.kt    |  2 +-
 .../org/videolan/vlc/database/ExternalSubDao.kt    |  4 +-
 .../src/org/videolan/vlc/database/MediaDatabase.kt | 10 ++--
 .../src/org/videolan/vlc/database/Migrations.kt    |  4 +-
 .../src/org/videolan/vlc/database/SlaveDao.kt      |  8 +--
 .../org/videolan/vlc/database/models/BrowserFav.kt |  6 +--
 .../vlc/database/models/CustomDirectory.kt         |  4 +-
 .../videolan/vlc/database/models/ExternalSub.kt    |  2 +-
 .../src/org/videolan/vlc/database/models/Slave.kt  |  6 +--
 .../vlc/extensions/ExtensionManagerService.java    |  2 +-
 .../videolan/vlc/extensions/ExtensionsManager.java |  4 +-
 .../src/org/videolan/vlc/gui/AboutFragment.kt      | 14 +++---
 .../vlc/gui/AudioPlayerContainerActivity.java      | 20 ++++----
 .../src/org/videolan/vlc/gui/BaseActivity.java     |  6 +--
 .../src/org/videolan/vlc/gui/ContentActivity.java  |  8 +--
 .../src/org/videolan/vlc/gui/DialogActivity.java   |  2 +-
 .../src/org/videolan/vlc/gui/DiffUtilAdapter.kt    |  8 +--
 .../src/org/videolan/vlc/gui/HistoryFragment.java  | 12 ++---
 .../src/org/videolan/vlc/gui/InfoActivity.java     | 12 ++---
 .../src/org/videolan/vlc/gui/MainActivity.java     | 16 +++---
 .../videolan/vlc/gui/PlaybackServiceActivity.java  |  4 +-
 .../videolan/vlc/gui/PlaybackServiceFragment.java  |  2 +-
 .../src/org/videolan/vlc/gui/PlaylistActivity.java | 22 ++++----
 .../src/org/videolan/vlc/gui/SearchActivity.java   | 12 ++---
 .../org/videolan/vlc/gui/SearchResultAdapter.java  |  2 +-
 .../org/videolan/vlc/gui/SecondaryActivity.java    |  6 +--
 .../src/org/videolan/vlc/gui/SimpleAdapter.kt      |  8 +--
 .../vlc/gui/audio/AudioAlbumsSongsFragment.java    | 20 ++++----
 .../vlc/gui/audio/AudioBrowserAdapter.java         | 12 ++---
 .../vlc/gui/audio/AudioBrowserFragment.java        | 16 +++---
 .../videolan/vlc/gui/audio/AudioPagerAdapter.java  |  2 +-
 .../src/org/videolan/vlc/gui/audio/AudioPlayer.kt  | 58 +++++++++++-----------
 .../videolan/vlc/gui/audio/BaseAudioBrowser.java   |  6 +--
 .../videolan/vlc/gui/audio/EqualizerFragment.java  | 10 ++--
 .../videolan/vlc/gui/audio/PlaylistAdapter.java    |  8 +--
 .../vlc/gui/browser/BaseBrowserAdapter.java        |  2 +-
 .../vlc/gui/browser/BaseBrowserFragment.kt         | 36 +++++++-------
 .../videolan/vlc/gui/browser/ExtensionAdapter.java |  4 +-
 .../videolan/vlc/gui/browser/ExtensionBrowser.java | 14 +++---
 .../vlc/gui/browser/FileBrowserFragment.java       | 10 ++--
 .../vlc/gui/browser/FilePickerActivity.java        |  4 +-
 .../videolan/vlc/gui/browser/FilePickerFragment.kt |  6 +--
 .../vlc/gui/browser/MediaBrowserFragment.java      | 22 ++++----
 .../vlc/gui/browser/NetworkBrowserFragment.java    | 12 ++---
 .../org/videolan/vlc/gui/browser/PathAdapter.kt    | 10 ++--
 .../vlc/gui/browser/StorageBrowserFragment.kt      | 22 ++++----
 .../videolan/vlc/gui/dialogs/AdvOptionsDialog.java | 10 ++--
 .../org/videolan/vlc/gui/dialogs/ContextSheet.kt   | 20 ++++----
 .../vlc/gui/dialogs/DismissDialogFragment.java     |  2 +-
 .../vlc/gui/dialogs/DownloaderDialogFragment.java  |  8 +--
 .../vlc/gui/dialogs/NetworkServerDialog.java       | 10 ++--
 .../videolan/vlc/gui/dialogs/PickTimeFragment.java |  4 +-
 .../vlc/gui/dialogs/PlaybackSpeedDialog.java       |  4 +-
 .../videolan/vlc/gui/dialogs/RenderersDialog.kt    | 14 +++---
 .../vlc/gui/dialogs/SavePlaylistDialog.java        | 14 +++---
 .../vlc/gui/dialogs/SelectChapterDialog.java       |  4 +-
 .../vlc/gui/dialogs/SubtitleDownloadFragment.kt    | 16 +++---
 .../dialogs/SubtitleDownloaderDialogFragment.kt    | 10 ++--
 .../vlc/gui/dialogs/SubtitleHistoryFragment.kt     | 16 +++---
 .../videolan/vlc/gui/dialogs/SubtitlesAdapter.kt   |  6 +--
 .../org/videolan/vlc/gui/dialogs/VlcDialog.java    | 12 ++---
 .../videolan/vlc/gui/dialogs/VlcLoginDialog.java   |  4 +-
 .../org/videolan/vlc/gui/helpers/AudioUtil.java    |  4 +-
 .../org/videolan/vlc/gui/helpers/BitmapCache.java  |  2 +-
 .../vlc/gui/helpers/BottomSheetBehavior.java       |  4 +-
 .../gui/helpers/FloatingActionButtonBehavior.java  | 12 ++---
 .../org/videolan/vlc/gui/helpers/ImageLoader.kt    | 14 +++---
 .../src/org/videolan/vlc/gui/helpers/Navigator.kt  | 30 +++++------
 .../vlc/gui/helpers/NotificationHelper.java        | 10 ++--
 .../vlc/gui/helpers/SelectorViewHolder.java        |  4 +-
 .../helpers/SwipeDragItemTouchHelperCallback.java  |  4 +-
 .../vlc/gui/helpers/ThreeStatesCheckbox.java       |  2 +-
 .../src/org/videolan/vlc/gui/helpers/UiTools.java  | 18 +++----
 .../vlc/gui/helpers/hf/BaseHeadlessFragment.kt     | 10 ++--
 .../org/videolan/vlc/gui/helpers/hf/OtgAccess.kt   | 12 ++---
 .../gui/helpers/hf/StoragePermissionsDelegate.kt   |  8 +--
 .../vlc/gui/helpers/hf/WriteExternalDelegate.kt    | 14 +++---
 .../src/org/videolan/vlc/gui/network/MRLAdapter.kt |  8 +--
 .../videolan/vlc/gui/network/MRLPanelFragment.kt   | 24 ++++-----
 .../gui/preferences/BasePreferenceFragment.java    | 10 ++--
 .../vlc/gui/preferences/PreferencesActivity.java   |  8 +--
 .../vlc/gui/preferences/PreferencesAdvanced.java   |  6 +--
 .../vlc/gui/preferences/PreferencesAudio.java      |  6 +--
 .../preferences/PreferencesExtensionFragment.java  | 12 ++---
 .../vlc/gui/preferences/PreferencesExtensions.java | 10 ++--
 .../vlc/gui/preferences/PreferencesFragment.java   | 10 ++--
 .../vlc/gui/preferences/PreferencesUi.java         |  8 +--
 .../vlc/gui/preferences/PreferencesVideo.java      |  2 +-
 ...tiSelectListPreferenceDialogFragmentCompat.java | 10 ++--
 .../src/org/videolan/vlc/gui/tv/AboutActivity.kt   |  4 +-
 .../src/org/videolan/vlc/gui/tv/CardPresenter.java |  6 +--
 .../vlc/gui/tv/DetailsDescriptionPresenter.java    |  2 +-
 .../src/org/videolan/vlc/gui/tv/LicenceActivity.kt |  4 +-
 .../org/videolan/vlc/gui/tv/MainTvActivity.java    |  4 +-
 .../src/org/videolan/vlc/gui/tv/MainTvFragment.kt  | 14 +++---
 .../vlc/gui/tv/MediaItemDetailsFragment.java       | 24 ++++-----
 .../org/videolan/vlc/gui/tv/NowPlayingDelegate.kt  |  2 +-
 .../org/videolan/vlc/gui/tv/SearchActivity.java    |  2 +-
 .../src/org/videolan/vlc/gui/tv/SearchFragment.kt  |  4 +-
 .../src/org/videolan/vlc/gui/tv/TimeUpdater.kt     | 10 ++--
 vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.kt  | 16 +++---
 .../gui/tv/audioplayer/AudioPlayerActivity.java    |  8 +--
 .../vlc/gui/tv/audioplayer/PlaylistAdapter.java    |  2 +-
 .../videolan/vlc/gui/tv/browser/AlbumsFragment.kt  |  4 +-
 .../videolan/vlc/gui/tv/browser/ArtistsFragment.kt |  4 +-
 .../vlc/gui/tv/browser/BaseTvActivity.java         |  4 +-
 .../vlc/gui/tv/browser/BrowserGridFragment.java    | 16 +++---
 .../vlc/gui/tv/browser/CategoriesFragment.kt       |  8 +--
 .../gui/tv/browser/DirectoryBrowserFragment.java   |  6 +--
 .../videolan/vlc/gui/tv/browser/GenresFragment.kt  |  4 +-
 .../videolan/vlc/gui/tv/browser/GridFragment.java  |  8 +--
 .../vlc/gui/tv/browser/MediaLibBrowserFragment.kt  |  8 +--
 .../videolan/vlc/gui/tv/browser/MusicFragment.kt   |  4 +-
 .../vlc/gui/tv/browser/NetworkBrowserFragment.java |  8 +--
 .../vlc/gui/tv/browser/SongsBrowserFragment.java   | 10 ++--
 .../vlc/gui/tv/browser/VerticalGridActivity.java   |  2 +-
 .../vlc/gui/tv/browser/VideoBrowserFragment.kt     |  2 +-
 .../videolan/vlc/gui/tv/browser/VideosFragment.kt  |  2 +-
 .../gui/tv/preferences/BasePreferenceFragment.java |  2 +-
 .../gui/tv/preferences/PreferencesActivity.java    |  2 +-
 .../gui/tv/preferences/PreferencesAdvanced.java    |  4 +-
 .../vlc/gui/tv/preferences/PreferencesAudio.java   |  2 +-
 .../gui/tv/preferences/PreferencesFragment.java    |  4 +-
 .../vlc/gui/tv/preferences/PreferencesUi.java      |  2 +-
 .../vlc/gui/tv/preferences/PreferencesVideo.java   |  2 +-
 .../org/videolan/vlc/gui/video/DisplayManager.kt   |  2 +-
 .../videolan/vlc/gui/video/MediaInfoAdapter.java   |  2 +-
 .../org/videolan/vlc/gui/video/PopupManager.java   |  4 +-
 .../videolan/vlc/gui/video/VideoGridAnimator.java  |  2 +-
 .../videolan/vlc/gui/video/VideoGridFragment.java  | 14 +++---
 .../videolan/vlc/gui/video/VideoListAdapter.java   | 14 +++---
 .../vlc/gui/video/VideoPlayerActivity.java         | 38 +++++++-------
 .../videolan/vlc/gui/video/VideoTouchDelegate.kt   |  4 +-
 .../vlc/gui/video/benchmark/BenchActivity.java     |  4 +-
 .../videolan/vlc/gui/view/AutoFitRecyclerView.java |  4 +-
 .../vlc/gui/view/ClickableSwitchPreference.java    | 10 ++--
 .../org/videolan/vlc/gui/view/FastScroller.java    |  4 +-
 .../videolan/vlc/gui/view/HackyDrawerLayout.java   |  2 +-
 .../src/org/videolan/vlc/gui/view/PopupLayout.java |  2 +-
 .../videolan/vlc/gui/view/SwipeRefreshLayout.java  |  2 +-
 .../org/videolan/vlc/gui/view/VerticalSeekBar.java |  2 +-
 .../videolan/vlc/gui/wizard/MLWizardActivity.kt    |  4 +-
 .../org/videolan/vlc/interfaces/IEventsHandler.kt  |  4 +-
 .../org/videolan/vlc/media/BrowserProvider.java    |  4 +-
 .../src/org/videolan/vlc/media/MediaUtils.kt       |  8 +--
 .../org/videolan/vlc/media/MediaWrapperList.java   |  2 +-
 .../src/org/videolan/vlc/media/PlayerController.kt |  4 +-
 .../src/org/videolan/vlc/media/PlaylistManager.kt  | 10 ++--
 .../org/videolan/vlc/providers/BrowserProvider.kt  |  6 +--
 .../videolan/vlc/providers/FileBrowserProvider.kt  |  2 +-
 .../org/videolan/vlc/providers/NetworkProvider.kt  |  2 +-
 .../vlc/repository/BrowserFavRepository.kt         |  4 +-
 .../vlc/repository/ExternalSubRepository.kt        |  4 +-
 .../src/org/videolan/vlc/util/FileUtils.java       |  2 +-
 .../src/org/videolan/vlc/util/FilterDelegate.kt    |  2 +-
 .../src/org/videolan/vlc/util/HttpImageLoader.java |  2 +-
 .../src/org/videolan/vlc/util/Kextensions.kt       | 16 +++---
 .../src/org/videolan/vlc/util/LiveDataMap.kt       |  2 +-
 .../src/org/videolan/vlc/util/LiveDataset.kt       |  2 +-
 .../videolan/vlc/util/PBSMedialibraryReceiver.kt   |  6 +--
 .../src/org/videolan/vlc/util/Permissions.java     | 10 ++--
 .../org/videolan/vlc/util/ThumbnailsProvider.java  |  2 +-
 .../src/org/videolan/vlc/util/TvChannels.kt        |  6 +--
 vlc-android/src/org/videolan/vlc/util/Util.java    |  4 +-
 .../org/videolan/vlc/util/VLCDownloadManager.kt    |  8 +--
 .../src/org/videolan/vlc/util/VLCOptions.java      |  2 +-
 .../src/org/videolan/vlc/viewmodels/BaseModel.kt   |  2 +-
 .../org/videolan/vlc/viewmodels/HistoryModel.kt    |  4 +-
 .../org/videolan/vlc/viewmodels/PlaylistModel.kt   | 12 ++---
 .../src/org/videolan/vlc/viewmodels/ScopedModel.kt |  2 +-
 .../org/videolan/vlc/viewmodels/StreamsModel.kt    |  4 +-
 .../org/videolan/vlc/viewmodels/SubtitlesModel.kt  |  8 +--
 .../src/org/videolan/vlc/viewmodels/VideosModel.kt | 12 ++---
 .../videolan/vlc/viewmodels/audio/AlbumModel.kt    |  4 +-
 .../videolan/vlc/viewmodels/audio/ArtistModel.kt   |  4 +-
 .../videolan/vlc/viewmodels/audio/GenresModel.kt   |  4 +-
 .../vlc/viewmodels/audio/PlaylistsModel.kt         |  4 +-
 .../videolan/vlc/viewmodels/audio/TracksModel.kt   |  4 +-
 .../vlc/viewmodels/browser/BrowserModel.kt         |  6 +--
 .../vlc/viewmodels/browser/NetworkModel.kt         |  4 +-
 .../videolan/vlc/viewmodels/paged/MLPagedModel.kt  | 10 ++--
 .../vlc/viewmodels/paged/PagedAlbumsModel.kt       |  4 +-
 .../vlc/viewmodels/paged/PagedArtistsModel.kt      |  4 +-
 .../vlc/viewmodels/paged/PagedGenresModel.kt       |  4 +-
 .../vlc/viewmodels/paged/PagedPlaylistsModel.kt    |  4 +-
 .../vlc/viewmodels/paged/PagedTracksModel.kt       |  4 +-
 .../org/videolan/vlc/util/LiveDataTestUtil.kt      |  2 +-
 .../vlc/repository/BrowserFavRepositoryTest.kt     |  4 +-
 .../vlc/repository/DirectoryRepositoryTest.kt      |  2 +-
 .../vlc/repository/ExternalSubRepositoryTest.kt    |  4 +-
 .../videolan/vlc/repository/SlaveRepositoryTest.kt |  2 +-
 290 files changed, 1068 insertions(+), 1066 deletions(-)

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


More information about the Android mailing list