build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. compile files('libs/chart-library2.2.jar')
  25. }
  26. android {
  27. compileSdkVersion 19
  28. buildToolsVersion "19.0.0"
  29. sourceSets {
  30. main {
  31. manifest.srcFile 'AndroidManifest.xml'
  32. java.srcDirs = ['src']
  33. resources.srcDirs = ['src']
  34. aidl.srcDirs = ['src']
  35. renderscript.srcDirs = ['src']
  36. res.srcDirs = ['res']
  37. assets.srcDirs = ['assets']
  38. }
  39. // Move the tests to tests/java, tests/res, etc...
  40. instrumentTest.setRoot('tests')
  41. // Move the build types to build-types/<type>
  42. // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
  43. // This moves them out of them default location under src/<type>/... which would
  44. // conflict with src/ being used by the main source set.
  45. // Adding new build types or product flavors should be accompanied
  46. // by a similar customization.
  47. debug.setRoot('build-types/debug')
  48. release.setRoot('build-types/release')
  49. }
  50. }