update dependencies

* exoplayer 2.17.1 -> 2.18.2
* security-crypto 1.1.0-alpha03 -> 1.1.0-alpha04
* androidx:junit 1.1.3 -> 1.1.4
* androidx:espresso-core 3.4.0 -> 3.5.0
This commit is contained in:
Jannik 2022-11-26 18:09:50 +01:00
parent f49b5a2730
commit 0a31c2fd88
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
3 changed files with 7 additions and 6 deletions

View File

@ -57,7 +57,7 @@ dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.navigation:navigation-fragment-ktx:2.5.3'
implementation 'androidx.navigation:navigation-ui-ktx:2.5.3'
implementation 'androidx.security:security-crypto:1.1.0-alpha03'
implementation 'androidx.security:security-crypto:1.1.0-alpha04'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
@ -80,8 +80,8 @@ dependencies {
implementation "io.ktor:ktor-serialization-kotlinx-json:$ktor_version"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
}

View File

@ -46,6 +46,7 @@ import androidx.lifecycle.lifecycleScope
import com.google.android.exoplayer2.ExoPlayer
import com.google.android.exoplayer2.Player
import com.google.android.exoplayer2.ui.StyledPlayerControlView
import com.google.android.exoplayer2.ui.StyledPlayerView
import com.google.android.exoplayer2.util.Util
import kotlinx.coroutines.launch
import org.mosad.teapod.R
@ -251,7 +252,7 @@ class PlayerActivity : AppCompatActivity() {
playerBinding.videoView.player = model.player
// when the player controls get hidden, hide the bars too
playerBinding.videoView.setControllerVisibilityListener {
playerBinding.videoView.setControllerVisibilityListener(StyledPlayerView.ControllerVisibilityListener {
when (it) {
View.GONE -> {
hideBars()
@ -259,7 +260,7 @@ class PlayerActivity : AppCompatActivity() {
}
View.VISIBLE -> updateControls()
}
}
})
playerBinding.videoView.setOnTouchListener { _, event ->
gestureDetector.onTouchEvent(event)

View File

@ -2,7 +2,7 @@
buildscript {
ext.kotlin_version = "1.7.20"
ext.ktor_version = "2.1.3"
ext.exo_version = "2.17.1"
ext.exo_version = "2.18.2"
repositories {
google()
mavenCentral()