0
0
mirror of https://github.com/mediathekview/zapp.git synced 2024-09-20 04:12:14 +02:00

Update dependencies

This commit is contained in:
Christine Coenen 2022-09-26 20:21:57 +02:00
parent be13231472
commit 3d8c8d40f0
3 changed files with 16 additions and 16 deletions

View File

@ -77,10 +77,10 @@ android {
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
def fragment_version = '1.4.1'
def fragment_version = '1.5.3'
// kotlin
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.core:core-ktx:1.9.0'
// tests
def androix_test_version = '1.4.0'
@ -104,20 +104,20 @@ dependencies {
testImplementation "androidx.test:core-ktx:$androix_test_version"
testImplementation 'org.robolectric:robolectric:4.6.1'
testImplementation 'org.mockito.kotlin:mockito-kotlin:3.2.0'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.0'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.1'
// support
implementation "androidx.fragment:fragment-ktx:$fragment_version"
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.6.1'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.annotation:annotation:1.3.0'
implementation 'androidx.annotation:annotation:1.5.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.preference:preference-ktx:1.2.0'
implementation "androidx.paging:paging-runtime-ktx:3.1.1"
def lifecycle_version = "2.4.1"
def lifecycle_version = "2.5.1"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-service:$lifecycle_version"
@ -125,14 +125,14 @@ dependencies {
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
// room database
def room_version = "2.4.2"
def room_version = "2.4.3"
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-paging:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-ktx:$room_version"
// helper
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.google.code.gson:gson:2.9.0'
// sortable list
implementation 'com.github.woxthebox:draglistview:1.7.2'
@ -145,7 +145,7 @@ dependencies {
implementation 'androidx.tonyodev.fetch2okhttp:xfetch2okhttp:3.1.6'
// exo player
def exoplayer_version = "2.17.1"
def exoplayer_version = "2.18.1"
implementation "com.google.android.exoplayer:exoplayer-core:$exoplayer_version"
implementation "com.google.android.exoplayer:exoplayer-hls:$exoplayer_version"
implementation "com.google.android.exoplayer:exoplayer-ui:$exoplayer_version"

View File

@ -82,14 +82,14 @@ class Player(
init {
// quality selection
val trackSelector = DefaultTrackSelector(context).apply {
setParameters(
this
val trackSelector = DefaultTrackSelector(context).also {
it.setParameters(
it
.buildUponParameters()
.setPreferredAudioLanguage(LANGUAGE_GERMAN)
.setPreferredTextLanguageAndRoleFlagsToCaptioningManagerSettings(context)
.setSelectUndeterminedTextLanguage(true)
.setDisabledTextTrackSelectionFlags(C.SELECTION_FLAG_DEFAULT)
.setIgnoredTextSelectionFlags(C.SELECTION_FLAG_DEFAULT)
)
}
trackSelectorWrapper = TrackSelectorWrapper(trackSelector)
@ -97,7 +97,7 @@ class Player(
// audio focus setup
val audioAttributes = AudioAttributes.Builder()
.setUsage(C.USAGE_MEDIA)
.setContentType(C.CONTENT_TYPE_MOVIE)
.setContentType(C.AUDIO_CONTENT_TYPE_MOVIE)
.build()
exoPlayer = ExoPlayer.Builder(context)

View File

@ -3,7 +3,7 @@
buildscript {
ext.koin_version = '3.1.6'
ext.about_libraries_version = '10.1.0'
ext.nav_version = '2.4.2'
ext.nav_version = '2.5.2'
repositories {
google()
@ -16,7 +16,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10"
classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:$about_libraries_version"