summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/build.gradle1
-rw-r--r--app/src/main/java/de/danoeh/antennapod/PodcastApp.java4
-rw-r--r--common.gradle8
3 files changed, 4 insertions, 9 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 40759dd56..1bd916425 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -129,6 +129,7 @@ dependencies {
implementation "androidx.fragment:fragment:$fragmentVersion"
implementation 'androidx.gridlayout:gridlayout:1.0.0'
implementation "androidx.media:media:$mediaVersion"
+ implementation 'com.android.support:multidex:2.0.1'
implementation "androidx.palette:palette:$paletteVersion"
implementation "androidx.preference:preference:$preferenceVersion"
implementation "androidx.recyclerview:recyclerview:$recyclerViewVersion"
diff --git a/app/src/main/java/de/danoeh/antennapod/PodcastApp.java b/app/src/main/java/de/danoeh/antennapod/PodcastApp.java
index 534d48479..8ce894684 100644
--- a/app/src/main/java/de/danoeh/antennapod/PodcastApp.java
+++ b/app/src/main/java/de/danoeh/antennapod/PodcastApp.java
@@ -1,10 +1,10 @@
package de.danoeh.antennapod;
-import android.app.Application;
import android.content.ComponentName;
import android.content.Intent;
import android.os.StrictMode;
+import androidx.multidex.MultiDexApplication;
import com.joanzapata.iconify.Iconify;
import com.joanzapata.iconify.fonts.FontAwesomeModule;
import com.joanzapata.iconify.fonts.MaterialModule;
@@ -18,7 +18,7 @@ import de.danoeh.antennapod.spa.SPAUtil;
import org.greenrobot.eventbus.EventBus;
/** Main application class. */
-public class PodcastApp extends Application {
+public class PodcastApp extends MultiDexApplication {
// make sure that ClientConfigurator executes its static code
static {
diff --git a/common.gradle b/common.gradle
index 8284d2325..2bfbb2f61 100644
--- a/common.gradle
+++ b/common.gradle
@@ -5,7 +5,7 @@ android {
minSdk 19
targetSdk 30
- multiDexEnabled false
+ multiDexEnabled true
vectorDrawables.useSupportLibrary true
vectorDrawables.generatedDensities = []
@@ -18,12 +18,6 @@ android {
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard.cfg"
}
debug {
- // debug build has method count over 64k single-dex threshold.
- // For building debug build to use on Android < 21 (pre-Android 5) devices,
- // you need to manually change class
- // de.danoeh.antennapod.PodcastApp to extend MultiDexApplication .
- // See Issue #2813
- multiDexEnabled true
}
}