Update compile and target SDK to 34

This commit is contained in:
Maxr1998 2023-08-19 23:27:41 +02:00 committed by Niels van Velzen
parent c540980e1f
commit ca3513f7a3
3 changed files with 14 additions and 5 deletions

View File

@ -22,11 +22,11 @@ detekt {
android {
namespace = "org.jellyfin.mobile"
compileSdk = 33
compileSdk = 34
defaultConfig {
minSdk = 21
targetSdk = 32
targetSdk = 34
versionName = project.getVersionName()
versionCode = getVersionCode(versionName!!)
setProperty("archivesBaseName", "jellyfin-android-v$versionName")

View File

@ -4,10 +4,14 @@
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage"
tools:node="remove" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
@ -60,6 +64,7 @@
<service
android:name="org.jellyfin.mobile.player.audio.MediaService"
android:exported="true"
android:foregroundServiceType="mediaPlayback"
tools:ignore="ExportedService">
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService" />

View File

@ -128,7 +128,7 @@ class PlayerGestureHelper(
}
override fun onScroll(
firstEvent: MotionEvent,
firstEvent: MotionEvent?,
currentEvent: MotionEvent,
distanceX: Float,
distanceY: Float,
@ -139,7 +139,11 @@ class PlayerGestureHelper(
// Check whether swipe was started in excluded region
val exclusionSize = playerView.resources.dip(Constants.SWIPE_GESTURE_EXCLUSION_SIZE_VERTICAL)
if (firstEvent.y < exclusionSize || firstEvent.y > playerView.height - exclusionSize) {
if (
firstEvent == null ||
firstEvent.y < exclusionSize ||
firstEvent.y > playerView.height - exclusionSize
) {
return false
}