зеркало из https://github.com/mozilla/gecko-dev.git
55 строки
1.3 KiB
Groovy
55 строки
1.3 KiB
Groovy
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')
|
|
}
|
|
}
|
|
}
|