build.gradle 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. dependencies {
  6. classpath 'com.android.tools.build:gradle:1.0.0'
  7. }
  8. }
  9. apply plugin: 'com.android.application'
  10. repositories {
  11. mavenCentral()
  12. flatDir {
  13. dirs 'libs'
  14. }
  15. }
  16. artifacts.add("default", file('libs/actionbarsherlock.aar'))
  17. dependencies {
  18. compile name: 'touch-image-view'
  19. compile 'com.android.support:support-v4:19.1.0'
  20. compile project('libs/actionbarsherlock_lib')
  21. compile project(':owncloud-android-library')
  22. compile 'com.jakewharton:disklrucache:2.0.2'
  23. }
  24. android {
  25. compileSdkVersion 19
  26. buildToolsVersion "20.0.0"
  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. android {
  49. lintOptions {
  50. abortOnError false
  51. }
  52. }
  53. compileOptions {
  54. sourceCompatibility JavaVersion.VERSION_1_7
  55. targetCompatibility JavaVersion.VERSION_1_7
  56. }
  57. productFlavors {
  58. }
  59. packagingOptions {
  60. exclude 'META-INF/LICENSE.txt'
  61. }
  62. }