build.gradle 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. compile 'com.getbase:floatingactionbutton:1.10.1'
  24. }
  25. android {
  26. compileSdkVersion 23
  27. buildToolsVersion "23.0.2"
  28. sourceSets {
  29. main {
  30. manifest.srcFile 'AndroidManifest.xml'
  31. java.srcDirs = ['src']
  32. resources.srcDirs = ['src']
  33. aidl.srcDirs = ['src']
  34. renderscript.srcDirs = ['src']
  35. res.srcDirs = ['res']
  36. assets.srcDirs = ['res']
  37. }
  38. // Move the tests to tests/java, tests/res, etc...
  39. instrumentTest.setRoot('tests')
  40. // Move the build types to build-types/<type>
  41. // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
  42. // This moves them out of them default location under src/<type>/... which would
  43. // conflict with src/ being used by the main source set.
  44. // Adding new build types or product flavors should be accompanied
  45. // by a similar customization.
  46. debug.setRoot('build-types/debug')
  47. release.setRoot('build-types/release')
  48. }
  49. compileOptions {
  50. sourceCompatibility JavaVersion.VERSION_1_7
  51. targetCompatibility JavaVersion.VERSION_1_7
  52. }
  53. lintOptions {
  54. abortOnError false
  55. }
  56. packagingOptions {
  57. exclude 'META-INF/LICENSE.txt'
  58. }
  59. }