build.gradle 1.9 KB

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