From 2b40aea31a2ee176b837d631b4e68ef96ad4b2c2 Mon Sep 17 00:00:00 2001 From: Nick Alexander Date: Sat, 12 Mar 2016 16:16:01 -0800 Subject: [PATCH] Bug 1255926 - Exclude GCM and Push files from Gradle configuration when !MOZ_ANDROID_GCM. r=bustage MozReview-Commit-ID: Cs2dOZy0UUb --HG-- extra : rebase_source : c9f5c82c4fe94dfe8bbaf6c700984c2c21f5716c --- mobile/android/app/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mobile/android/app/build.gradle b/mobile/android/app/build.gradle index 104d7eb170a9..2452ed50c0ac 100644 --- a/mobile/android/app/build.gradle +++ b/mobile/android/app/build.gradle @@ -101,6 +101,11 @@ android { 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. }