From f2fca0f13d67ca1800b59ca807280316d700d55d Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 24 Jul 2021 11:54:53 -0400 Subject: [PATCH] Remove unnecessary MultiDex library --- app/build.gradle.kts | 4 ---- app/src/main/java/eu/kanade/tachiyomi/App.kt | 6 ------ 2 files changed, 10 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index c8360823b..169fe9aec 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -40,8 +40,6 @@ android { // Please disable ACRA or use your own instance in forked versions of the project buildConfigField("String", "ACRA_URI", "\"https://tachiyomi.kanade.eu/crash_report\"") - multiDexEnabled = true - ndk { abiFilters += SUPPORTED_ABIS } @@ -148,7 +146,6 @@ dependencies { implementation("androidx.coordinatorlayout:coordinatorlayout:1.1.0") implementation("androidx.core:core-ktx:1.7.0-alpha01") implementation("androidx.core:core-splashscreen:1.0.0-alpha01") - implementation("androidx.multidex:multidex:2.0.1") implementation("androidx.preference:preference-ktx:1.1.1") implementation("androidx.recyclerview:recyclerview:1.2.1") implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01") @@ -269,7 +266,6 @@ dependencies { val robolectricVersion = "3.1.4" testImplementation("org.robolectric:robolectric:$robolectricVersion") - testImplementation("org.robolectric:shadows-multidex:$robolectricVersion") testImplementation("org.robolectric:shadows-play-services:$robolectricVersion") // For detecting memory leaks; see https://square.github.io/leakcanary/ diff --git a/app/src/main/java/eu/kanade/tachiyomi/App.kt b/app/src/main/java/eu/kanade/tachiyomi/App.kt index f74985a48..fdc67bbd0 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/App.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/App.kt @@ -17,7 +17,6 @@ import androidx.lifecycle.LifecycleObserver import androidx.lifecycle.OnLifecycleEvent import androidx.lifecycle.ProcessLifecycleOwner import androidx.lifecycle.lifecycleScope -import androidx.multidex.MultiDex import coil.ImageLoader import coil.ImageLoaderFactory import coil.decode.GifDecoder @@ -112,11 +111,6 @@ open class App : Application(), LifecycleObserver, ImageLoaderFactory { }.launchIn(ProcessLifecycleOwner.get().lifecycleScope) } - override fun attachBaseContext(base: Context) { - super.attachBaseContext(base) - MultiDex.install(this) - } - override fun newImageLoader(): ImageLoader { return ImageLoader.Builder(this).apply { componentRegistry {