testApplicationId "name.gumartinm.weather.information.test"
testInstrumentationRunner "android.test.InstrumentationTestRunner"
+ // WARNING: Jack requires a lot of memory :(
jackOptions {
enabled true
}
+ // Enabling multidex support. Since the last upgrade my application does not compile
+ // without multi dex :(
+ multiDexEnabled true
}
buildTypes {
release {
compile 'com.google.android.gms:play-services:+'
compile 'com.fasterxml.jackson.core:jackson-core:2.3.3'
compile 'com.jakewharton.timber:timber:2.5.0'
+ compile 'com.android.support:multidex:+'
}
import android.app.Application;
import android.content.Context;
+import android.support.multidex.MultiDex;
import com.google.android.gms.analytics.GoogleAnalytics;
import com.google.android.gms.analytics.HitBuilders;
}
}
+ @Override
+ protected void attachBaseContext(Context base) {
+ super.attachBaseContext(base);
+ MultiDex.install(this);
+ }
+
private static class GoogleAnalyticsTrackers {
private enum TrackerName {