Bug 1495544 - Don't run dexcount in local (non-official) Gradle builds. r=jchen
authorNick Alexander <nalexander@mozilla.com>
Thu, 04 Oct 2018 03:28:26 +0000
changeset 495579 d58fa859ebb0bd8b9964f2740c26078f32399b1c
parent 495578 d6794cb231e188d3bba25f8bae557de19febc09b
child 495580 022f4e59d3badbf29d429bc3ad3c7975f5aaf8c8
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1495544
milestone64.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 1495544 - Don't run dexcount in local (non-official) Gradle builds. r=jchen Differential Revision: https://phabricator.services.mozilla.com/D7634
mobile/android/app/build.gradle
--- a/mobile/android/app/build.gradle
+++ b/mobile/android/app/build.gradle
@@ -1,19 +1,24 @@
 buildDir "${topobjdir}/gradle/build/mobile/android/app"
 
 apply plugin: 'com.android.application'
 apply plugin: 'checkstyle'
-apply plugin: 'com.getkeepsafe.dexcount'
 apply plugin: 'findbugs'
 
+if (mozconfig.substs.MOZILLA_OFFICIAL) {
+    apply plugin: 'com.getkeepsafe.dexcount'
+}
+
 apply from: "${topsrcdir}/mobile/android/gradle/product_flavors.gradle"
 
-dexcount {
-    format = "tree"
+if (mozconfig.substs.MOZILLA_OFFICIAL) {
+    dexcount {
+        format = "tree"
+    }
 }
 
 android {
     compileSdkVersion project.ext.compileSdkVersion
 
     defaultConfig {
         targetSdkVersion project.ext.targetSdkVersion
         minSdkVersion project.ext.minSdkVersion