Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Oct 18, 2021
1 parent 18edb48 commit c0aff08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 3 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':basemvplib')

implementation('androidx.multidex:multidex:2.0.1')
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

Expand Down Expand Up @@ -123,6 +123,8 @@ dependencies {
implementation("com.louiscad.splitties:splitties-systemservices:$splitties_version")
implementation("com.louiscad.splitties:splitties-views:$splitties_version")

//media
implementation("androidx.media:media:1.4.1")
def exoplayer_version = '2.15.0'
implementation "com.google.android.exoplayer:exoplayer-core:$exoplayer_version"
implementation "com.google.android.exoplayer:extension-okhttp:$exoplayer_version"
Expand All @@ -134,7 +136,6 @@ dependencies {
//google
implementation 'com.google.android.material:material:1.4.0'
implementation 'com.google.code.gson:gson:2.8.8'
implementation 'com.google.android:flexbox:1.1.0'

//RxAndroid
implementation 'io.reactivex.rxjava2:rxjava:2.2.19'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package io.legado.app.help.coroutine

import io.legado.app.BuildConfig
import io.legado.app.utils.printOnDebug
import kotlinx.coroutines.*
import timber.log.Timber
import kotlin.coroutines.CoroutineContext


Expand Down Expand Up @@ -143,9 +142,7 @@ class Coroutine<T>(
success?.let { dispatchCallback(this, value, it) }
}
} catch (e: Throwable) {
if (BuildConfig.DEBUG) {
e.printOnDebug()
}
Timber.e(e)
val consume: Boolean = errorReturn?.value?.let { value ->
if (isActive) {
success?.let { dispatchCallback(this, value, it) }
Expand Down

0 comments on commit c0aff08

Please sign in to comment.