build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 27
  4. defaultConfig {
  5. minSdkVersion 14
  6. targetSdkVersion 25
  7. }
  8. buildTypes {
  9. release {
  10. minifyEnabled false
  11. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  12. }
  13. debug {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  16. }
  17. }
  18. sourceSets {
  19. main {
  20. manifest.srcFile 'AndroidManifest.xml'
  21. java.srcDirs = ['src']
  22. resources.srcDirs = ['src']
  23. aidl.srcDirs = ['src']
  24. renderscript.srcDirs = ['src']
  25. res.srcDirs = ['res']
  26. assets.srcDirs = ['assets']
  27. jniLibs.srcDirs = ['libs']
  28. }
  29. debug.setRoot('build-types/debug')
  30. release.setRoot('build-types/release')
  31. }
  32. android {
  33. lintOptions {
  34. abortOnError false
  35. }
  36. }
  37. }
  38. dependencies {
  39. api fileTree(include: ['*.jar'], dir: 'libs')
  40. }