Local Gradle tweaks draft
authorJan Henning <jh+bugzilla@buttercookie.de>
Thu, 28 Jul 2016 20:04:34 +0200
changeset 490563 13e3ffc64949a2498298c636b15edc672d4c654e
parent 490433 1bc2ad020aee2830e0a7941f10958dbec108c254
child 490564 f994992778372854da401219fd2b3114524922af
child 491030 9263de30d577c8554e5d3da01bbb5bda29f74d0f
push id47137
push usermozilla@buttercookie.de
push dateTue, 28 Feb 2017 20:16:22 +0000
milestone54.0a1
Local Gradle tweaks MozReview-Commit-ID: H5pdKja8p2a
gradle.properties
mobile/android/app/build.gradle
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,2 +1,3 @@
 org.gradle.parallel=true
 org.gradle.daemon=true
+org.gradle.jvmargs=-Xmx4096M
--- a/mobile/android/app/build.gradle
+++ b/mobile/android/app/build.gradle
@@ -234,17 +234,18 @@ dependencies {
     }
 
     // Include LeakCanary in most gradle based builds. LeakCanary adds about 5k methods, so we disable
     // it for the (non-proguarded, non-multidex) localOld builds to allow space for other libraries.
     // Gradle based tests include the no-op version.  Mach based builds only include the no-op version
     // of this library.
     // It doesn't seem like there is a non-trivial way to be conditional on 'localOld', so instead we explicitly
     // define a version of leakcanary for every flavor:
-    localCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta1'
+    //localCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta1'
+    localCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'
     localOldCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'
     automationCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'
     testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'
 
     compile project(':geckoview')
     compile project(':thirdparty')
 
     testCompile 'junit:junit:4.12'