build.gradle 1.4 KB

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