Enable multi-dexing

This commit is contained in:
Martin Fietz 2017-09-23 16:41:52 +02:00
parent 99588bb6f5
commit 77ee4558e7
2 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,7 @@ android {
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled true
versionCode getMyVersionCode()
versionName "${getMyVersionName()}"
testApplicationId "de.test.antennapod"
@ -130,6 +131,7 @@ dependencies {
} else {
System.out.println("app: free build hack, skipping some dependencies")
}
compile 'com.android.support:multidex:1.0.1'
compile "com.android.support:support-v4:$supportVersion"
compile "com.android.support:appcompat-v7:$supportVersion"
compile "com.android.support:design:$supportVersion"

View File

@ -3,6 +3,7 @@ package de.danoeh.antennapod;
import android.app.Application;
import android.os.Build;
import android.os.StrictMode;
import android.support.multidex.MultiDexApplication;
import com.joanzapata.iconify.Iconify;
import com.joanzapata.iconify.fonts.FontAwesomeModule;
@ -13,7 +14,7 @@ import de.danoeh.antennapod.core.feed.EventDistributor;
import de.danoeh.antennapod.spa.SPAUtil;
/** Main application class. */
public class PodcastApp extends Application {
public class PodcastApp extends MultiDexApplication {
// make sure that ClientConfigurator executes its static code
static {