build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. dependencies {
  6. classpath 'com.android.tools.build:gradle:1.5.0'
  7. }
  8. }
  9. apply plugin: 'com.android.application'
  10. repositories {
  11. mavenCentral()
  12. flatDir {
  13. dirs 'libs'
  14. }
  15. }
  16. dependencies {
  17. compile name: 'touch-image-view'
  18. compile project(':owncloud-android-library')
  19. compile 'com.android.support:support-v4:23.1.1'
  20. compile 'com.android.support:design:23.1.1'
  21. compile 'com.jakewharton:disklrucache:2.0.2'
  22. compile 'com.android.support:appcompat-v7:23.1.1'
  23. }
  24. android {
  25. compileSdkVersion 23
  26. buildToolsVersion "23.0.2"
  27. sourceSets {
  28. main {
  29. manifest.srcFile 'AndroidManifest.xml'
  30. java.srcDirs = ['src']
  31. resources.srcDirs = ['src']
  32. aidl.srcDirs = ['src']
  33. renderscript.srcDirs = ['src']
  34. res.srcDirs = ['res']
  35. assets.srcDirs = ['res']
  36. }
  37. // Move the tests to tests/java, tests/res, etc...
  38. instrumentTest.setRoot('tests')
  39. // Move the build types to build-types/<type>
  40. // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
  41. // This moves them out of them default location under src/<type>/... which would
  42. // conflict with src/ being used by the main source set.
  43. // Adding new build types or product flavors should be accompanied
  44. // by a similar customization.
  45. debug.setRoot('build-types/debug')
  46. release.setRoot('build-types/release')
  47. }
  48. compileOptions {
  49. sourceCompatibility JavaVersion.VERSION_1_7
  50. targetCompatibility JavaVersion.VERSION_1_7
  51. }
  52. lintOptions {
  53. abortOnError false
  54. }
  55. packagingOptions {
  56. exclude 'META-INF/LICENSE.txt'
  57. }
  58. }