build.gradle 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 project(':owncloud-android-library')
  19. compile 'com.android.support:support-v4:22.2.1'
  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. compileOptions {
  48. sourceCompatibility JavaVersion.VERSION_1_7
  49. targetCompatibility JavaVersion.VERSION_1_7
  50. }
  51. lintOptions {
  52. abortOnError false
  53. }
  54. productFlavors {
  55. }
  56. packagingOptions {
  57. exclude 'META-INF/LICENSE.txt'
  58. }
  59. }