build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. dependencies {
  6. classpath 'com.android.tools.build:gradle:1.2.3'
  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 'com.android.support:support-v4:22.2.1'
  19. compile project(':owncloud-android-library')
  20. compile 'com.jakewharton:disklrucache:2.0.2'
  21. compile 'com.android.support:appcompat-v7:22.2.1'
  22. }
  23. android {
  24. compileSdkVersion 22
  25. buildToolsVersion "22.0.1"
  26. sourceSets {
  27. main {
  28. manifest.srcFile 'AndroidManifest.xml'
  29. java.srcDirs = ['src']
  30. resources.srcDirs = ['src']
  31. aidl.srcDirs = ['src']
  32. renderscript.srcDirs = ['src']
  33. res.srcDirs = ['res']
  34. assets.srcDirs = ['res']
  35. }
  36. // Move the tests to tests/java, tests/res, etc...
  37. instrumentTest.setRoot('tests')
  38. // Move the build types to build-types/<type>
  39. // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
  40. // This moves them out of them default location under src/<type>/... which would
  41. // conflict with src/ being used by the main source set.
  42. // Adding new build types or product flavors should be accompanied
  43. // by a similar customization.
  44. debug.setRoot('build-types/debug')
  45. release.setRoot('build-types/release')
  46. }
  47. android {
  48. lintOptions {
  49. abortOnError false
  50. }
  51. }
  52. productFlavors {
  53. }
  54. packagingOptions {
  55. exclude 'META-INF/LICENSE.txt'
  56. }
  57. }