build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 'com.google.android.gms:play-services:3.2.+'
  18. compile 'org.roboguice:roboguice:2.0'
  19. compile files('libs/nineoldandroids-2.4.0.jar')
  20. compile 'com.android.support:support-v4:18.0.0'
  21. //compile fileTree(dir: 'libs', include: '*.jar')
  22. compile files('libs/swipelistview-1.0.jar')
  23. compile files('libs/sshlib-v1.1.jar')
  24. }
  25. android {
  26. compileSdkVersion 19
  27. buildToolsVersion "19.0.0"
  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 = ['assets']
  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. }