build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. dependencies {
  6. classpath 'com.android.tools.build:gradle:1.2.3'
  7. }
  8. }
  9. apply plugin: 'com.android.library'
  10. dependencies {
  11. compile fileTree(dir: 'libs', include: '*.jar')
  12. }
  13. android {
  14. compileSdkVersion 19
  15. buildToolsVersion "20.0.0"
  16. sourceSets {
  17. main {
  18. manifest.srcFile 'AndroidManifest.xml'
  19. java.srcDirs = ['src']
  20. resources.srcDirs = ['src']
  21. aidl.srcDirs = ['src']
  22. renderscript.srcDirs = ['src']
  23. res.srcDirs = ['res']
  24. assets.srcDirs = ['assets']
  25. }
  26. // Move the tests to tests/java, tests/res, etc...
  27. instrumentTest.setRoot('tests')
  28. // Move the build types to build-types/<type>
  29. // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
  30. // This moves them out of them default location under src/<type>/... which would
  31. // conflict with src/ being used by the main source set.
  32. // Adding new build types or product flavors should be accompanied
  33. // by a similar customization.
  34. debug.setRoot('build-types/debug')
  35. release.setRoot('build-types/release')
  36. }
  37. }