Skip to content
Snippets Groups Projects
build.gradle 3.77 KiB
Newer Older
apply plugin: 'com.android.application'
apply plugin: 'witness'

repositories {
    jcenter()
}
Ernir Erlingsson's avatar
Ernir Erlingsson committed
    def supportVersion = '23.1.1'
    compile project(':briar-api')
    compile project(':briar-core')
    compile fileTree(dir: 'libs', include: '*.jar')
    compile "com.android.support:support-v4:$supportVersion"
    compile("com.android.support:appcompat-v7:$supportVersion") {
        exclude module: 'support-v4'
    }
    compile("com.android.support:preference-v7:$supportVersion") {
        exclude module: 'support-v4'
    }
    compile("com.android.support:preference-v14:$supportVersion") {
        exclude module: 'support-v4'
        exclude module: 'preference-v7'
        exclude module: 'recyclerview-v7'
    }
    compile("com.android.support:design:$supportVersion") {
        exclude module: 'support-v4'
        exclude module: 'recyclerview-v7'
    }
    compile "org.roboguice:roboguice:2.0"
    compile "info.guardianproject.panic:panic:0.5"
    compile "info.guardianproject.trustedintents:trustedintents:0.2"
str4d's avatar
str4d committed
    compile "de.hdodenhof:circleimageview:2.0.0"
}

dependencyVerification {
    verify = [
            'com.android.support:support-v4:5c7dceb6c824089fe80f502e5206264048ef8bffa4e8ddeab180b81723e79b7f',
            'com.android.support:appcompat-v7:0a8762214382b7e8d4b989b4ac10b5c846b957d767ccb7bccbc6be5afa885a82',
            'com.android.support:preference-v7:4b6dabaa4400cbed885c7edc885aa6372468f48d628cc0d4a04b9ccd128ed324',
            'com.android.support:preference-v14:a69906c2b29b315ac3c1fdf01537a7557660a65b8ea1cf891baa8665e1197459',
            'com.android.support:design:41a9cd75ca78f25df5f573db7cedf8bb66beae00c330943923ba9f3e2051736d',
            'com.android.support:support-annotations:f347a35b9748a4103b39a6714a77e2100f488d623fd6268e259c177b200e9d82',
            'com.android.support:recyclerview-v7:7606373da0931a1e62588335465a0e390cd676c98117edab29220317495faefd',
            'org.roboguice:roboguice:c5302f2648170ee6015a0d18fe0fcc87e09e415a34aeae3566e8d1a9dbb53f28',
            'info.guardianproject.panic:panic:a7ed9439826db2e9901649892cf9afbe76f00991b768d8f4c26332d7c9406cb2',
            'info.guardianproject.trustedintents:trustedintents:6221456d8821a8d974c2acf86306900237cf6afaaa94a4c9c44e161350f80f3e',
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }

        // Move the tests to tests/java, tests/res, etc...
        instrumentTest.setRoot('tests')

        // Move the build types to build-types/<type>
        // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
        // This moves them out of them default location under src/<type>/... which would
        // conflict with src/ being used by the main source set.
        // Adding new build types or product flavors should be accompanied
        // by a similar customization.
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }
Ernir Erlingsson's avatar
Ernir Erlingsson committed
            // Set this to true to run proguard in debug
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_6
        targetCompatibility JavaVersion.VERSION_1_6
    }
akwizgran's avatar
akwizgran committed
    lintOptions {
        abortOnError false
    }