pull/279/head
gedoor 4 years ago
parent 192b72200c
commit 9f7cc3ac10
  1. 1
      app/build.gradle
  2. 4
      app/src/main/java/io/legado/app/App.kt

@ -115,6 +115,7 @@ dependencies {
testImplementation 'junit:junit:4.13' testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation "com.android.support:multidex:1.0.3"
//kotlin //kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"

@ -1,6 +1,5 @@
package io.legado.app package io.legado.app
import android.app.Application
import android.app.NotificationChannel import android.app.NotificationChannel
import android.app.NotificationManager import android.app.NotificationManager
import android.content.Context import android.content.Context
@ -9,6 +8,7 @@ import android.graphics.Color
import android.os.Build import android.os.Build
import androidx.annotation.RequiresApi import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatDelegate import androidx.appcompat.app.AppCompatDelegate
import androidx.multidex.MultiDexApplication
import com.jeremyliao.liveeventbus.LiveEventBus import com.jeremyliao.liveeventbus.LiveEventBus
import io.legado.app.constant.AppConst.channelIdDownload import io.legado.app.constant.AppConst.channelIdDownload
import io.legado.app.constant.AppConst.channelIdReadAloud import io.legado.app.constant.AppConst.channelIdReadAloud
@ -28,7 +28,7 @@ import io.legado.app.utils.postEvent
import io.legado.app.utils.putPrefInt import io.legado.app.utils.putPrefInt
@Suppress("DEPRECATION") @Suppress("DEPRECATION")
class App : Application() { class App : MultiDexApplication() {
companion object { companion object {
@JvmStatic @JvmStatic

Loading…
Cancel
Save