mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2025-03-01 10:35:40 +00:00
Update compile and target SDK to 34
This commit is contained in:
parent
c540980e1f
commit
ca3513f7a3
@ -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")
|
||||
|
@ -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" />
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user