mirror of
https://github.com/gedoor/legado.git
synced 2025-01-05 10:17:15 +08:00
优化:移除multidex
注:Android 5.0(api21)开始,默认支持multidex,不需要手动接入multidex
This commit is contained in:
parent
4078bf9f21
commit
65e50b4b1a
@ -45,7 +45,6 @@ android {
|
||||
versionName version
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
project.ext.set("archivesBaseName", name + "_" + version)
|
||||
multiDexEnabled true
|
||||
|
||||
buildConfigField "String", "Cronet_Version", "\"$CronetVersion\""
|
||||
buildConfigField "String", "Cronet_Main_Version", "\"$CronetMainVersion\""
|
||||
@ -133,7 +132,6 @@ dependencies {
|
||||
testImplementation('junit:junit:4.13.2')
|
||||
androidTestImplementation('androidx.test:runner:1.5.2')
|
||||
androidTestImplementation('androidx.test.espresso:espresso-core:3.5.1')
|
||||
implementation('androidx.multidex:multidex:2.0.1')
|
||||
//kotlin
|
||||
//noinspection GradleDependency,DifferentStdlibGradleVersion
|
||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
|
||||
|
@ -1,12 +1,12 @@
|
||||
package io.legado.app
|
||||
|
||||
import android.app.Application
|
||||
import android.app.NotificationChannel
|
||||
import android.app.NotificationManager
|
||||
import android.content.Context
|
||||
import android.content.pm.ActivityInfo
|
||||
import android.content.res.Configuration
|
||||
import android.os.Build
|
||||
import androidx.multidex.MultiDexApplication
|
||||
import com.github.liuyueyi.quick.transfer.ChineseUtils
|
||||
import com.github.liuyueyi.quick.transfer.constants.TransType
|
||||
import com.jeremyliao.liveeventbus.LiveEventBus
|
||||
@ -33,7 +33,7 @@ import splitties.init.appCtx
|
||||
import splitties.systemservices.notificationManager
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
class App : MultiDexApplication() {
|
||||
class App : Application() {
|
||||
|
||||
private lateinit var oldConfig: Configuration
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user