Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 1 | apply plugin: 'android-library' |
| 2 | |
| 3 | archivesBaseName = 'design' |
| 4 | |
| 5 | dependencies { |
| 6 | compile project(':support-v4') |
Chris Banes | 9840efe | 2015-01-06 14:02:01 +0000 | [diff] [blame] | 7 | compile project(':support-appcompat-v7') |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | android { |
| 11 | compileSdkVersion 'current' |
| 12 | |
| 13 | sourceSets { |
| 14 | main.manifest.srcFile 'AndroidManifest.xml' |
Chris Banes | 631f64e | 2015-04-10 10:46:13 +0100 | [diff] [blame] | 15 | main.java.srcDirs = ['base', 'eclair-mr1', 'honeycomb', 'honeycomb-mr1', 'lollipop', 'src'] |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 16 | main.res.srcDir 'res' |
| 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 | } |
Yuichi Araki | e764a03 | 2015-06-30 18:45:49 +0900 | [diff] [blame^] | 36 | |
| 37 | buildTypes.all { |
| 38 | consumerProguardFiles 'proguard-rules.pro' |
| 39 | } |
Chris Banes | 95cf116 | 2015-01-13 10:27:15 +0000 | [diff] [blame] | 40 | } |