DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (c2593a3058af)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
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 to agree with moz.build.
apply from: "${topsrcdir}/mobile/android/gradle/debug_level.gradle"
android.libraryVariants.all configureVariantDebugLevel