feat: target sdk 34 (#405)

This commit is contained in:
Jarne Demeulemeester 2023-07-30 14:50:58 +02:00 committed by GitHub
parent 0902172965
commit 75ea33fd33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 15 deletions

View file

@ -11,13 +11,13 @@ plugins {
android {
namespace = "dev.jdtech.jellyfin"
compileSdk = 33
buildToolsVersion = "33.0.2"
compileSdk = 34
buildToolsVersion = "34.0.0"
defaultConfig {
applicationId = "dev.jdtech.jellyfin"
minSdk = 27
targetSdk = 33
targetSdk = 34
val appVersionCode: Int by rootProject.extra
val appVersionName: String by rootProject.extra

View file

@ -167,11 +167,12 @@ class PlayerGestureHelper(
object : GestureDetector.SimpleOnGestureListener() {
@SuppressLint("SetTextI18n")
override fun onScroll(
firstEvent: MotionEvent,
firstEvent: MotionEvent?,
currentEvent: MotionEvent,
distanceX: Float,
distanceY: Float,
): Boolean {
if (firstEvent == null) return false
// Excludes area where app gestures conflicting with system gestures
if (inExclusionArea(firstEvent)) return false
// Disables seek gestures if view is locked
@ -209,11 +210,12 @@ class PlayerGestureHelper(
object : GestureDetector.SimpleOnGestureListener() {
@SuppressLint("SetTextI18n")
override fun onScroll(
firstEvent: MotionEvent,
firstEvent: MotionEvent?,
currentEvent: MotionEvent,
distanceX: Float,
distanceY: Float,
): Boolean {
if (firstEvent == null) return false
// Excludes area where app gestures conflicting with system gestures
if (inExclusionArea(firstEvent)) return false
// Disables volume gestures when player is locked

View file

@ -10,8 +10,8 @@ plugins {
android {
namespace = "dev.jdtech.jellyfin.core"
compileSdk = 33
buildToolsVersion = "33.0.2"
compileSdk = 34
buildToolsVersion = "34.0.0"
defaultConfig {
minSdk = 27

View file

@ -8,8 +8,8 @@ plugins {
android {
namespace = "dev.jdtech.jellyfin.data"
compileSdk = 33
buildToolsVersion = "33.0.2"
compileSdk = 34
buildToolsVersion = "34.0.0"
defaultConfig {
minSdk = 27

View file

@ -7,8 +7,8 @@ plugins {
android {
namespace = "dev.jdtech.jellyfin.player.core"
compileSdk = 33
buildToolsVersion = "33.0.2"
compileSdk = 34
buildToolsVersion = "34.0.0"
defaultConfig {
minSdk = 27

View file

@ -9,8 +9,8 @@ plugins {
android {
namespace = "dev.jdtech.jellyfin.player.video"
compileSdk = 33
buildToolsVersion = "33.0.2"
compileSdk = 34
buildToolsVersion = "34.0.0"
defaultConfig {
minSdk = 27

View file

@ -6,8 +6,8 @@ plugins {
android {
namespace = "dev.jdtech.jellyfin.preferences"
compileSdk = 33
buildToolsVersion = "33.0.2"
compileSdk = 34
buildToolsVersion = "34.0.0"
defaultConfig {
minSdk = 27