2015-10-21 01:32:50 +03:00
|
|
|
buildDir "${topobjdir}/gradle/build/mobile/android/thirdparty"
|
|
|
|
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
|
|
|
android {
|
2017-06-21 20:52:30 +03:00
|
|
|
compileSdkVersion project.ext.compileSdkVersion
|
2015-10-21 01:32:50 +03:00
|
|
|
|
|
|
|
defaultConfig {
|
2017-06-21 20:52:30 +03:00
|
|
|
targetSdkVersion project.ext.targetSdkVersion
|
|
|
|
minSdkVersion project.ext.minSdkVersion
|
|
|
|
manifestPlaceholders = project.ext.manifestPlaceholders
|
2015-10-21 01:32:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2018-08-22 22:15:42 +03:00
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
2015-10-21 01:32:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
java {
|
|
|
|
srcDir '.'
|
2016-09-20 00:54:24 +03:00
|
|
|
|
2015-10-21 01:32:50 +03:00
|
|
|
if (!mozconfig.substs.MOZ_INSTALL_TRACKING) {
|
|
|
|
exclude 'com/adjust/**'
|
|
|
|
}
|
2016-01-21 14:35:21 +03:00
|
|
|
|
2017-05-14 00:05:09 +03:00
|
|
|
if (!mozconfig.substs.MOZ_ANDROID_MMA) {
|
|
|
|
exclude 'com/leanplum/**'
|
|
|
|
}
|
|
|
|
|
2016-01-21 14:35:21 +03:00
|
|
|
// 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/**'
|
2015-10-21 01:32:50 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-03-21 20:26:08 +03:00
|
|
|
implementation "com.android.support:support-v4:$support_library_version"
|
2017-05-14 00:05:09 +03:00
|
|
|
if (mozconfig.substs.MOZ_ANDROID_MMA) {
|
2018-03-21 20:26:08 +03:00
|
|
|
implementation "com.android.support:appcompat-v7:$support_library_version"
|
|
|
|
implementation "com.android.support:support-annotations:$support_library_version"
|
2018-03-21 20:50:11 +03:00
|
|
|
implementation "com.google.android.gms:play-services-gcm:$google_play_services_version"
|
2018-07-13 15:40:03 +03:00
|
|
|
implementation "com.google.android.gms:play-services-basement:$google_play_services_version"
|
|
|
|
implementation "com.google.android.gms:play-services-ads-identifier:$google_play_services_version"
|
2017-05-14 00:05:09 +03:00
|
|
|
}
|
2015-10-21 01:32:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
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')
|
|
|
|
}
|
2017-05-14 00:05:09 +03:00
|
|
|
if (!mozconfig.substs.MOZ_ANDROID_MMA) {
|
|
|
|
excludeDirs += file('com/leanplum')
|
|
|
|
}
|
2015-10-21 01:32:50 +03:00
|
|
|
}
|
|
|
|
}
|
2017-04-03 23:41:11 +03:00
|
|
|
|
|
|
|
// Bug 1353055 - Strip 'vars' debugging information to agree with moz.build.
|
|
|
|
apply from: "${topsrcdir}/mobile/android/gradle/debug_level.gradle"
|
|
|
|
android.libraryVariants.all configureVariantDebugLevel
|