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 {
minifyEnabled false
buildConfigField "boolean", "DEBUG_MODE", "true"
debuggable true
+ testCoverageEnabled = false
+ // when debugging we must disable Jack and Java 8 :(
+ // see: https://code.google.com/p/android/issues/detail?id=219615
+ jackOptions {
+ enabled true
+ }
}
}
compileOptions {
+ // when debugging we must disable Jack and Java 8 :(
+ // see: https://code.google.com/p/android/issues/detail?id=219615
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dependencies {
compile 'com.android.support:support-v4:+'
- compile 'com.google.android.gms:play-services:+'
+ compile 'com.google.android.gms:play-services-maps:+'
+ compile 'com.google.android.gms:play-services-analytics:+'
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 {