gecko-dev/mobile/android/thirdparty/build.gradle

73 строки
2.3 KiB
Groovy
Исходник Обычный вид История

buildDir "${topobjdir}/gradle/build/mobile/android/thirdparty"
apply plugin: 'com.android.library'
android {
compileSdkVersion project.ext.compileSdkVersion
defaultConfig {
targetSdkVersion project.ext.targetSdkVersion
minSdkVersion project.ext.minSdkVersion
manifestPlaceholders = project.ext.manifestPlaceholders
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
}
sourceSets {
main {
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 {
implementation "com.android.support:support-v4:$support_library_version"
if (mozconfig.substs.MOZ_ANDROID_MMA) {
implementation "com.android.support:appcompat-v7:$support_library_version"
implementation "com.android.support:support-annotations:$support_library_version"
implementation "com.google.android.gms:play-services-gcm:$google_play_services_version"
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"
}
}
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 when building Fennec --with-gradle. r=ahunt To observe the difference, use `javap -l`. For example, for automationRelease and automationDebug built with `./mach gradle clean app:assembleAutomationRelease app:assembleAutomationDebug`, I see locally: $ javap -l objdir-droid/gradle/build/mobile/android/app/intermediates/classes/automation/release/org/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu\$1.class Compiled from "ActivityStreamContextMenu.java" class org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1 extends org.mozilla.gecko.util.UIAsyncTask$WithoutParams<java.lang.Boolean> { final android.view.MenuItem val$bookmarkItem; final org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu this$0; org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1(org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu, android.os.Handler, android.view.MenuItem); LineNumberTable: line 103: 0 <snip> } $ javap -l objdir-droid/gradle/build/mobile/android/app/intermediates/classes/automation/debug/org/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu\$1.class Compiled from "ActivityStreamContextMenu.java" class org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1 extends org.mozilla.gecko.util.UIAsyncTask$WithoutParams<java.lang.Boolean> { final android.view.MenuItem val$bookmarkItem; final org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu this$0; org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1(org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu, android.os.Handler, android.view.MenuItem); LineNumberTable: line 103: 0 LocalVariableTable: Start Length Slot Name Signature 0 16 0 this Lorg/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu$1; 0 16 1 this$0 Lorg/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu; 0 16 2 x0 Landroid/os/Handler; <snip> } MozReview-Commit-ID: 3HmiGkHhowQ --HG-- extra : rebase_source : c84d8d4b8ac813e49db0c61a30c7098ff2eae3f4
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