feat: target sdk 34 (#405)
This commit is contained in:
parent
0902172965
commit
75ea33fd33
7 changed files with 17 additions and 15 deletions
|
@ -11,13 +11,13 @@ plugins {
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "dev.jdtech.jellyfin"
|
namespace = "dev.jdtech.jellyfin"
|
||||||
compileSdk = 33
|
compileSdk = 34
|
||||||
buildToolsVersion = "33.0.2"
|
buildToolsVersion = "34.0.0"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "dev.jdtech.jellyfin"
|
applicationId = "dev.jdtech.jellyfin"
|
||||||
minSdk = 27
|
minSdk = 27
|
||||||
targetSdk = 33
|
targetSdk = 34
|
||||||
|
|
||||||
val appVersionCode: Int by rootProject.extra
|
val appVersionCode: Int by rootProject.extra
|
||||||
val appVersionName: String by rootProject.extra
|
val appVersionName: String by rootProject.extra
|
||||||
|
|
|
@ -167,11 +167,12 @@ class PlayerGestureHelper(
|
||||||
object : GestureDetector.SimpleOnGestureListener() {
|
object : GestureDetector.SimpleOnGestureListener() {
|
||||||
@SuppressLint("SetTextI18n")
|
@SuppressLint("SetTextI18n")
|
||||||
override fun onScroll(
|
override fun onScroll(
|
||||||
firstEvent: MotionEvent,
|
firstEvent: MotionEvent?,
|
||||||
currentEvent: MotionEvent,
|
currentEvent: MotionEvent,
|
||||||
distanceX: Float,
|
distanceX: Float,
|
||||||
distanceY: Float,
|
distanceY: Float,
|
||||||
): Boolean {
|
): Boolean {
|
||||||
|
if (firstEvent == null) return false
|
||||||
// Excludes area where app gestures conflicting with system gestures
|
// Excludes area where app gestures conflicting with system gestures
|
||||||
if (inExclusionArea(firstEvent)) return false
|
if (inExclusionArea(firstEvent)) return false
|
||||||
// Disables seek gestures if view is locked
|
// Disables seek gestures if view is locked
|
||||||
|
@ -209,11 +210,12 @@ class PlayerGestureHelper(
|
||||||
object : GestureDetector.SimpleOnGestureListener() {
|
object : GestureDetector.SimpleOnGestureListener() {
|
||||||
@SuppressLint("SetTextI18n")
|
@SuppressLint("SetTextI18n")
|
||||||
override fun onScroll(
|
override fun onScroll(
|
||||||
firstEvent: MotionEvent,
|
firstEvent: MotionEvent?,
|
||||||
currentEvent: MotionEvent,
|
currentEvent: MotionEvent,
|
||||||
distanceX: Float,
|
distanceX: Float,
|
||||||
distanceY: Float,
|
distanceY: Float,
|
||||||
): Boolean {
|
): Boolean {
|
||||||
|
if (firstEvent == null) return false
|
||||||
// Excludes area where app gestures conflicting with system gestures
|
// Excludes area where app gestures conflicting with system gestures
|
||||||
if (inExclusionArea(firstEvent)) return false
|
if (inExclusionArea(firstEvent)) return false
|
||||||
// Disables volume gestures when player is locked
|
// Disables volume gestures when player is locked
|
||||||
|
|
|
@ -10,8 +10,8 @@ plugins {
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "dev.jdtech.jellyfin.core"
|
namespace = "dev.jdtech.jellyfin.core"
|
||||||
compileSdk = 33
|
compileSdk = 34
|
||||||
buildToolsVersion = "33.0.2"
|
buildToolsVersion = "34.0.0"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk = 27
|
minSdk = 27
|
||||||
|
|
|
@ -8,8 +8,8 @@ plugins {
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "dev.jdtech.jellyfin.data"
|
namespace = "dev.jdtech.jellyfin.data"
|
||||||
compileSdk = 33
|
compileSdk = 34
|
||||||
buildToolsVersion = "33.0.2"
|
buildToolsVersion = "34.0.0"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk = 27
|
minSdk = 27
|
||||||
|
|
|
@ -7,8 +7,8 @@ plugins {
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "dev.jdtech.jellyfin.player.core"
|
namespace = "dev.jdtech.jellyfin.player.core"
|
||||||
compileSdk = 33
|
compileSdk = 34
|
||||||
buildToolsVersion = "33.0.2"
|
buildToolsVersion = "34.0.0"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk = 27
|
minSdk = 27
|
||||||
|
|
|
@ -9,8 +9,8 @@ plugins {
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "dev.jdtech.jellyfin.player.video"
|
namespace = "dev.jdtech.jellyfin.player.video"
|
||||||
compileSdk = 33
|
compileSdk = 34
|
||||||
buildToolsVersion = "33.0.2"
|
buildToolsVersion = "34.0.0"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk = 27
|
minSdk = 27
|
||||||
|
|
|
@ -6,8 +6,8 @@ plugins {
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "dev.jdtech.jellyfin.preferences"
|
namespace = "dev.jdtech.jellyfin.preferences"
|
||||||
compileSdk = 33
|
compileSdk = 34
|
||||||
buildToolsVersion = "33.0.2"
|
buildToolsVersion = "34.0.0"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk = 27
|
minSdk = 27
|
||||||
|
|
Loading…
Reference in a new issue