Bug 1367768 - Enable jumbo mode for Gradle debug builds; r=maliu
authorTeng-pao Yu <osimpleo@gmail.com>
Thu, 08 Jun 2017 19:53:56 +0800
changeset 413439 e77d611eee6e34ff03865edd0954bf1601187ab3
parent 413438 d39d7663a53b3222cbd55142f7f84cc26bc738f2
child 413440 040a6cd949b8a6ded51f123344932da00e6a5fb3
push id1490
push usermtabara@mozilla.com
push dateMon, 31 Jul 2017 14:08:16 +0000
treeherdermozilla-release@70e32e6bf15e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmaliu
bugs1367768
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1367768 - Enable jumbo mode for Gradle debug builds; r=maliu MozReview-Commit-ID: H7WZZbj7xMP
mobile/android/app/build.gradle
--- a/mobile/android/app/build.gradle
+++ b/mobile/android/app/build.gradle
@@ -40,16 +40,24 @@ android {
         javaMaxHeapSize "2g"
     }
 
     lintOptions {
         abortOnError true
     }
 
     buildTypes {
+        // Bug 1367768: With current code, we need jumboMode for a string table larger than 65536.
+        // To not interrupt release 55 nightly to beta merge, jumboMode only applies to debug now
+        // and will apply to all builds very soon (Mid June 2017, see bug 1370156).
+        debug {
+            dexOptions {
+                jumboMode = true
+            }
+        }
         // We have the following difficult situation.  Minification (Proguard) is only available per
         // Android-Gradle `buildType`.  Instrumentation (Robocop) is only available for exactly one
         // `buildType` (see Android-Gradle `testBuildType`, which defaults to "debug").  Local
         // developers expect to build and run tests against the "debug" build type.  Automation
         // needs to produce an instrumentation (Robocop) APK against a Fennec APK that will ship.
         // (This is very unusual; usually, instrumentation tests do _not_ run against a shipping
         // APK.)
         //