Add MultiDexSupport.

This commit is contained in:
VarunBarad 2016-12-04 08:42:16 +05:30
parent 50150730df
commit 28f4ba968d
3 changed files with 5 additions and 2 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"
@ -126,6 +127,7 @@ dependencies {
} else {
System.out.println("app: free build hack, skipping some dependencies")
}
compile "com.android.support:multidex:$multiDexVersion"
compile "com.android.support:support-v4:$supportVersion"
compile "com.android.support:appcompat-v7:$supportVersion"
compile "com.android.support:design:$supportVersion"

View File

@ -1,8 +1,8 @@
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 +13,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 {

View File

@ -42,6 +42,7 @@ project.ext {
minSdkVersion = 10
targetSdkVersion = 23
multiDexVersion = "1.0.1"
supportVersion = "23.4.0"
commonsioVersion = "2.4"
commonslangVersion = "3.4"