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:
parent
75ea33fd33
commit
0717103895
7 changed files with 19 additions and 24 deletions
|
@ -16,7 +16,7 @@ android {
|
|||
|
||||
defaultConfig {
|
||||
applicationId = "dev.jdtech.jellyfin"
|
||||
minSdk = 27
|
||||
minSdk = 28
|
||||
targetSdk = 34
|
||||
|
||||
val appVersionCode: Int by rootProject.extra
|
||||
|
|
|
@ -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
|
||||
|
@ -84,5 +80,4 @@ abstract class BasePlayerActivity : AppCompatActivity() {
|
|||
return@setOnApplyWindowInsetsListener windowInsets
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ android {
|
|||
buildToolsVersion = "34.0.0"
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 27
|
||||
minSdk = 28
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -11,7 +11,7 @@ android {
|
|||
buildToolsVersion = "34.0.0"
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 27
|
||||
minSdk = 28
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
|
|
|
@ -13,7 +13,7 @@ android {
|
|||
buildToolsVersion = "34.0.0"
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 27
|
||||
minSdk = 28
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
|
|
|
@ -10,7 +10,7 @@ android {
|
|||
buildToolsVersion = "34.0.0"
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 27
|
||||
minSdk = 28
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
|
|
Loading…
Reference in a new issue