Updated to Kotlin 1.2.0 and ExoPlayer 2.6.0

This commit is contained in:
casey langen 2017-11-28 21:53:45 -08:00
parent 903ebfdbe4
commit 2942b81a2c
4 changed files with 17 additions and 5 deletions

View File

@ -88,8 +88,8 @@ dependencies {
implementation 'io.reactivex.rxjava2:rxjava:2.1.6'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'io.reactivex.rxjava2:rxkotlin:2.1.0'
implementation 'com.google.android.exoplayer:exoplayer:r2.5.4'
implementation 'com.google.android.exoplayer:extension-okhttp:r2.5.4'
implementation 'com.google.android.exoplayer:exoplayer:2.6.0'
implementation 'com.google.android.exoplayer:extension-okhttp:2.6.0'
implementation 'com.simplecityapps:recyclerview-fastscroll:1.0.16'
implementation 'com.facebook.stetho:stetho:1.5.0'
implementation 'com.github.wooplr:Spotlight:1.2.3'

View File

@ -236,6 +236,12 @@ class ExoPlayerWrapper : PlayerWrapper() {
override fun onLoadingChanged(isLoading: Boolean) {
}
override fun onSeekProcessed() {
}
override fun onShuffleModeEnabledChanged(shuffleModeEnabled: Boolean) {
}
override fun onPlayerStateChanged(playWhenReady: Boolean, playbackState: Int) {
Preconditions.throwIfNotOnMainThread()
@ -286,7 +292,7 @@ class ExoPlayerWrapper : PlayerWrapper() {
}
}
override fun onPositionDiscontinuity() {
override fun onPositionDiscontinuity(type: Int) {
}
override fun onPlaybackParametersChanged(playbackParameters: PlaybackParameters) {

View File

@ -213,6 +213,12 @@ class GaplessExoPlayerWrapper : PlayerWrapper() {
override fun onLoadingChanged(isLoading: Boolean) {
}
override fun onSeekProcessed() {
}
override fun onShuffleModeEnabledChanged(shuffleModeEnabled: Boolean) {
}
override fun onPlayerStateChanged(playWhenReady: Boolean, playbackState: Int) {
Preconditions.throwIfNotOnMainThread()
@ -263,7 +269,7 @@ class GaplessExoPlayerWrapper : PlayerWrapper() {
}
}
override fun onPositionDiscontinuity() {
override fun onPositionDiscontinuity(type: Int) {
/* window index corresponds to the position of the current song in
the queue. the current song should always be 0! if it's not, then
that means we advanced to the next one... */

View File

@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.1.61'
ext.kotlin_version = '1.2.0'
repositories {
jcenter()