build: up min sdk to 28 (#456)

* build: bump min sdk to 28

* refactor: remove unnecessary checks

* refactor: remove unused import
This commit is contained in:
Jarne Demeulemeester 2023-07-30 16:08:36 +02:00 committed by GitHub
parent 75ea33fd33
commit 0717103895
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 19 additions and 24 deletions

View file

@ -16,7 +16,7 @@ android {
defaultConfig {
applicationId = "dev.jdtech.jellyfin"
minSdk = 27
minSdk = 28
targetSdk = 34
val appVersionCode: Int by rootProject.extra

View file

@ -1,6 +1,5 @@
package dev.jdtech.jellyfin
import android.os.Build
import android.view.View
import android.view.WindowManager
import androidx.appcompat.app.AppCompatActivity
@ -51,11 +50,9 @@ abstract class BasePlayerActivity : AppCompatActivity() {
)
window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
window.attributes.layoutInDisplayCutoutMode =
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
}
}
protected fun isRendererType(
mappedTrackInfo: MappingTrackSelector.MappedTrackInfo,
@ -71,7 +68,6 @@ abstract class BasePlayerActivity : AppCompatActivity() {
}
protected fun configureInsets(playerControls: View) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
playerControls
.setOnApplyWindowInsetsListener { _, windowInsets ->
val cutout = windowInsets.displayCutout
@ -85,4 +81,3 @@ abstract class BasePlayerActivity : AppCompatActivity() {
}
}
}
}

View file

@ -14,7 +14,7 @@ android {
buildToolsVersion = "34.0.0"
defaultConfig {
minSdk = 27
minSdk = 28
}
buildTypes {

View file

@ -12,7 +12,7 @@ android {
buildToolsVersion = "34.0.0"
defaultConfig {
minSdk = 27
minSdk = 28
val appVersionCode: Int by rootProject.extra
val appVersionName: String by rootProject.extra

View file

@ -11,7 +11,7 @@ android {
buildToolsVersion = "34.0.0"
defaultConfig {
minSdk = 27
minSdk = 28
}
buildTypes {

View file

@ -13,7 +13,7 @@ android {
buildToolsVersion = "34.0.0"
defaultConfig {
minSdk = 27
minSdk = 28
}
buildTypes {

View file

@ -10,7 +10,7 @@ android {
buildToolsVersion = "34.0.0"
defaultConfig {
minSdk = 27
minSdk = 28
}
buildTypes {