[Android] Bump the dependency versions
Nicolas Pomepuy
git at videolan.org
Thu Oct 27 06:57:14 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Oct 25 11:11:12 2022 +0200| [c7f5a138e690cfcac59b4621c50329f0edb202df] | committer: Nicolas Pomepuy
Bump the dependency versions
> https://code.videolan.org/videolan/vlc-android/commit/c7f5a138e690cfcac59b4621c50329f0edb202df
---
.../src/org/videolan/vlc/gui/dialogs/VlcDialog.kt | 2 +-
.../src/org/videolan/vlc/gui/helpers/BitmapUtil.kt | 4 ++--
.../src/org/videolan/vlc/gui/view/AccessibleSeekBar.kt | 2 +-
build.gradle | 16 ++++++++--------
4 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/VlcDialog.kt b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/VlcDialog.kt
index 8eceadabc..db363641f 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/VlcDialog.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/VlcDialog.kt
@@ -50,7 +50,7 @@ abstract class VlcDialog<T : Dialog, B : ViewDataBinding> : DialogFragment() {
override fun onCreateDialog(savedInstanceState: Bundle?): android.app.Dialog {
retainInstance = true
- val dialog = AppCompatDialog(activity, theme)
+ val dialog = AppCompatDialog(requireActivity(), theme)
dialog.setCancelable(true)
dialog.setCanceledOnTouchOutside(true)
if (::vlcDialog.isInitialized) {
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/helpers/BitmapUtil.kt b/application/vlc-android/src/org/videolan/vlc/gui/helpers/BitmapUtil.kt
index 5fd343527..4c655e0b1 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/helpers/BitmapUtil.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/helpers/BitmapUtil.kt
@@ -148,8 +148,8 @@ object BitmapUtil {
}
}
- fun vectorToBitmap(context: Context, @DrawableRes resVector: Int, width: Int? = null, height: Int? = null): Bitmap? {
- val drawable = AppCompatResources.getDrawable(context, resVector) ?: return null
+ fun vectorToBitmap(context: Context, @DrawableRes resVector: Int, width: Int? = null, height: Int? = null): Bitmap {
+ val drawable = AppCompatResources.getDrawable(context, resVector) ?: throw IllegalStateException("Invalid drawable")
val b = Bitmap.createBitmap(width ?: drawable.intrinsicWidth, height
?: drawable.intrinsicHeight, Bitmap.Config.ARGB_8888)
val c = Canvas(b)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/view/AccessibleSeekBar.kt b/application/vlc-android/src/org/videolan/vlc/gui/view/AccessibleSeekBar.kt
index 6e0f4a42f..6d4041254 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/view/AccessibleSeekBar.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/view/AccessibleSeekBar.kt
@@ -32,7 +32,7 @@ class AccessibleSeekBar : AppCompatSeekBar {
* @param host the view selected
* @param event the accessibility event to send
*/
- override fun sendAccessibilityEventUnchecked(host: View?, event: AccessibilityEvent) {
+ override fun sendAccessibilityEventUnchecked(host: View, event: AccessibilityEvent) {
if (disabled) {
super.sendAccessibilityEventUnchecked(host, event)
return
diff --git a/build.gradle b/build.gradle
index 6b7ff69fe..70d36f55f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -49,21 +49,21 @@ ext {
androidxLegacyVersion = '1.0.0'
androidxCoreVersion = '1.7.0'
appCompatVersion = '1.4.1'
- lifecycleVersion = '2.4.0'
+ lifecycleVersion = '2.5.1'
androidxPreferencesVersion = '1.1.1'
androidxVersion = '1.1.0'
- androidxActivityVersion = '1.4.0'
- androidxFragmentVersion = '1.4.1'
- androidxAnnotationVersion = '1.3.0'
+ androidxActivityVersion = '1.6.0'
+ androidxFragmentVersion = '1.5.3'
+ androidxAnnotationVersion = '1.5.0'
androidxRecyclerviewVersion = '1.2.1'
androidxMediaVersion = '1.1.0'
androidxLeanbackVersion = '1.0.0'
- androidxMaterialVersion = '1.5.0'
- constraintLayoutVersion = '2.1.3'
+ androidxMaterialVersion = '1.7.0'
+ constraintLayoutVersion = '2.1.4'
viewPager2Version = "1.0.0"
archVersion = '2.1.0'
- roomVersion = '2.4.1'
- pagingVersion = '3.1.0'
+ roomVersion = '2.4.3'
+ pagingVersion = '3.1.1'
junitVersion = '4.13.2'
junitExtVersion = '1.1.2'
mockito = '2.25.0'
More information about the Android
mailing list