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') |
| 7 | } |
| 8 | |
| 9 | android { |
| 10 | compileSdkVersion 'current' |
| 11 | |
| 12 | sourceSets { |
| 13 | main.manifest.srcFile 'AndroidManifest.xml' |
| 14 | main.java.srcDir 'src' |
| 15 | main.res.srcDir 'res' |
| 16 | main.assets.srcDir 'assets' |
| 17 | main.resources.srcDir 'src' |
| 18 | |
| 19 | // this moves src/instrumentTest to tests so all folders follow: |
| 20 | // tests/java, tests/res, tests/assets, ... |
| 21 | // This is a *reset* so it replaces the default paths |
| 22 | androidTest.setRoot('tests') |
| 23 | androidTest.java.srcDir 'tests/src' |
| 24 | } |
| 25 | |
| 26 | compileOptions { |
| 27 | sourceCompatibility JavaVersion.VERSION_1_7 |
| 28 | targetCompatibility JavaVersion.VERSION_1_7 |
| 29 | } |
| 30 | |
| 31 | lintOptions { |
| 32 | // TODO: fix errors and reenable. |
| 33 | abortOnError false |
| 34 | } |
| 35 | } |