build.gradle 1.5 KB

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