build.gradle 1.2 KB

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