build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. dependencies {
  6. classpath 'com.android.tools.build:gradle:0.8.+'
  7. }
  8. }
  9. apply plugin: 'android'
  10. repositories {
  11. mavenCentral()
  12. maven {
  13. url 'https://oss.sonatype.org/content/groups/public'
  14. }
  15. }
  16. dependencies {
  17. //compile fileTree(dir: 'libs', include: '*.jar')
  18. compile 'com.google.android.gms:play-services:3.2.+'
  19. compile 'org.roboguice:roboguice:2.0'
  20. compile 'com.nineoldandroids:library:2.4.0+'
  21. compile files('libs/swipelistview-1.0.jar')
  22. compile files('libs/sshlib-v1.1.jar')
  23. }
  24. android {
  25. compileSdkVersion 19
  26. buildToolsVersion "19.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 = ['assets']
  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. }