Bug 1255926 - Exclude GCM and Push files from Gradle configuration when !MOZ_ANDROID_GCM. r=bustage a=bustage
authorNick Alexander <nalexander@mozilla.com>
Sat, 12 Mar 2016 16:19:21 -0800
changeset 323405 34aed9839271de0491d416f671a9077cfdf19b89
parent 323404 852bb5e7da0ef65cd9679903a2e223da2c01c90c
child 323406 0b81120cfc00bfc33091dab4340b2e109a0964c1
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage, bustage
bugs1255926
milestone47.0a2
Bug 1255926 - Exclude GCM and Push files from Gradle configuration when !MOZ_ANDROID_GCM. r=bustage a=bustage MozReview-Commit-ID: Cs2dOZy0UUb
mobile/android/app/build.gradle
--- a/mobile/android/app/build.gradle
+++ b/mobile/android/app/build.gradle
@@ -95,16 +95,21 @@ android {
                 }
 
                 if (mozconfig.substs.MOZ_INSTALL_TRACKING) {
                     exclude 'org/mozilla/gecko/adjust/StubAdjustHelper.java'
                 } else {
                     exclude 'org/mozilla/gecko/adjust/AdjustHelper.java'
                 }
 
+                if (!mozconfig.substs.MOZ_ANDROID_GCM) {
+                    exclude 'org/mozilla/gecko/gcm/**/*.java'
+                    exclude 'org/mozilla/gecko/push/**/*.java'
+                }
+
                 srcDir "${project.buildDir}/generated/source/preprocessed_code" // See syncPreprocessedCode.
             }
 
             res {
                 srcDir "${topsrcdir}/${mozconfig.substs.MOZ_BRANDING_DIRECTORY}/res"
                 srcDir "${project.buildDir}/generated/source/preprocessed_resources" // See syncPreprocessedResources.
                 srcDir "${topsrcdir}/mobile/android/base/resources"
                 srcDir "${topsrcdir}/mobile/android/services/src/main/res"