summaryrefslogtreecommitdiffstats
path: root/mobile/android/thirdparty/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/android/thirdparty/build.gradle')
-rw-r--r--mobile/android/thirdparty/build.gradle54
1 files changed, 54 insertions, 0 deletions
diff --git a/mobile/android/thirdparty/build.gradle b/mobile/android/thirdparty/build.gradle
new file mode 100644
index 000000000..a192e5009
--- /dev/null
+++ b/mobile/android/thirdparty/build.gradle
@@ -0,0 +1,54 @@
+buildDir "${topobjdir}/gradle/build/mobile/android/thirdparty"
+
+apply plugin: 'com.android.library'
+
+android {
+ compileSdkVersion 23
+ buildToolsVersion mozconfig.substs.ANDROID_BUILD_TOOLS_VERSION
+
+ defaultConfig {
+ targetSdkVersion 23
+ minSdkVersion 15
+ }
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_7
+ targetCompatibility JavaVersion.VERSION_1_7
+ }
+
+ lintOptions {
+ abortOnError false
+ }
+
+ sourceSets {
+ main {
+ manifest.srcFile 'AndroidManifest.xml'
+ java {
+ srcDir '.'
+
+ if (!mozconfig.substs.MOZ_INSTALL_TRACKING) {
+ exclude 'com/adjust/**'
+ }
+
+ // 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}"
+}
+
+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')
+ }
+ }
+}