build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. dependencies {
  6. classpath 'com.android.tools.build:gradle:0.9.0'
  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:4.+'
  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. signingConfigs {
  51. release {
  52. storeFile file("release.keystore")
  53. }
  54. }
  55. buildTypes {
  56. debug {
  57. debuggable true
  58. jniDebugBuild true
  59. }
  60. release {
  61. debuggable false
  62. jniDebugBuild false
  63. signingConfig signingConfigs.release
  64. }
  65. }
  66. }