mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
2607ce7b13
This patch adds LeakCanary to gradle builds and the no-op library to mach-based builds. --HG-- extra : commitid : LKytg2xYqO extra : rebase_source : d44898c3fa57dc5cbefdf777ff5f7bbdc16dae28 extra : amend_source : 100e02a73d87297ad87f1a7514f8d142954f33b3
54 lines
1.2 KiB
Groovy
54 lines
1.2 KiB
Groovy
buildDir "${topobjdir}/gradle/build/mobile/android/thirdparty"
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion 23
|
|
buildToolsVersion "23.0.1"
|
|
|
|
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:23.0.1'
|
|
}
|
|
|
|
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')
|
|
}
|
|
}
|
|
}
|