1apply plugin: 'android-library' 2 3archivesBaseName = 'design' 4 5dependencies { 6 compile project(':support-v4') 7 compile project(':support-appcompat-v7') 8} 9 10android { 11 compileSdkVersion 'current' 12 13 sourceSets { 14 main.manifest.srcFile 'AndroidManifest.xml' 15 main.java.srcDirs = ['base', 'eclair-mr1', 'honeycomb', 'honeycomb-mr1', 'lollipop', 'src'] 16 main.res.srcDirs 'res', 'res-public' 17 main.assets.srcDir 'assets' 18 main.resources.srcDir 'src' 19 20 // this moves src/instrumentTest to tests so all folders follow: 21 // tests/java, tests/res, tests/assets, ... 22 // This is a *reset* so it replaces the default paths 23 androidTest.setRoot('tests') 24 androidTest.java.srcDir 'tests/src' 25 } 26 27 compileOptions { 28 sourceCompatibility JavaVersion.VERSION_1_7 29 targetCompatibility JavaVersion.VERSION_1_7 30 } 31 32 lintOptions { 33 // TODO: fix errors and reenable. 34 abortOnError false 35 } 36 37 buildTypes.all { 38 consumerProguardFiles 'proguard-rules.pro' 39 } 40} 41