fix ddce5b17 o draft Bug 1351585 - Part 1. Add Leanplum SDK source code to thirdparty module r?nalexander,maliu,sebastian draft
authorNick Alexander <nalexander@mozilla.com>
Mon, 15 May 2017 21:38:28 -0700
changeset 578522 631494f37ff3dc14921a0130883fa0f3effc8e5a
parent 578521 6424e6487439bd4af13f25d249fbf66a390f9bab
child 578523 703700a400767bdaf3e4f2ca55a42b6d540d4985
push id58945
push usernalexander@mozilla.com
push dateTue, 16 May 2017 04:41:39 +0000
reviewersnalexander, maliu, sebastian
bugs1351585
milestone55.0a1
fix ddce5b17 o draft Bug 1351585 - Part 1. Add Leanplum SDK source code to thirdparty module r?nalexander,maliu,sebastian MozReview-Commit-ID: ATLrSgMU6tl
mobile/android/thirdparty/build.gradle
--- a/mobile/android/thirdparty/build.gradle
+++ b/mobile/android/thirdparty/build.gradle
@@ -25,39 +25,47 @@ android {
             manifest.srcFile 'AndroidManifest.xml'
             java {
                 srcDir '.'
 
                 if (!mozconfig.substs.MOZ_INSTALL_TRACKING) {
                     exclude 'com/adjust/**'
                 }
 
+                if (!mozconfig.substs.MOZ_ANDROID_MMA) {
+                    exclude 'com/leanplum/**'
+                }
+
                 // Exclude LeakCanary: It will be added again via a gradle dependency. This version
                 // here is only the no-op library for mach-based builds.
                 exclude 'com/squareup/leakcanary/**'
             }
         }
     }
 }
 
 dependencies {
     compile "com.android.support:support-v4:${mozconfig.substs.ANDROID_SUPPORT_LIBRARY_VERSION}"
-    compile "com.android.support:appcompat-v7:${mozconfig.substs.ANDROID_SUPPORT_LIBRARY_VERSION}"
-    compile "com.google.android.gms:play-services-gcm:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}"
-    compile "com.google.android.gms:play-services-location:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}"
-    compile "com.google.android.gms:play-services-ads:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}"
-    compile "com.android.support:support-annotations:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}"
+    if (mozconfig.substs.MOZ_ANDROID_MMA) {
+        compile "com.android.support:appcompat-v7:${mozconfig.substs.ANDROID_SUPPORT_LIBRARY_VERSION}"
+        compile "com.android.support:support-annotations:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}"
+        compile "com.google.android.gms:play-services-ads:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}"
+        compile "com.google.android.gms:play-services-gcm:${mozconfig.substs.ANDROID_GOOGLE_PLAY_SERVICES_VERSION}"
+    }
 }
 
 apply plugin: 'idea'
 
 idea {
     module {
         // This is cosmetic.  See the excludes in the root project.
         if (!mozconfig.substs.MOZ_INSTALL_TRACKING) {
             excludeDirs += file('com/adjust/sdk')
         }
+        if (!mozconfig.substs.MOZ_ANDROID_MMA) {
+            excludeDirs += file('com/leanplum')
+        }
     }
 }
 
 // Bug 1353055 - Strip 'vars' debugging information to agree with moz.build.
 apply from: "${topsrcdir}/mobile/android/gradle/debug_level.gradle"
 android.libraryVariants.all configureVariantDebugLevel