build.gradle 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. apply plugin: 'com.android.library'
  2. buildscript {
  3. repositories {
  4. jcenter()
  5. }
  6. dependencies {
  7. classpath 'com.android.tools.build:gradle:2.3.3'
  8. }
  9. }
  10. dependencies {
  11. implementation fileTree(dir: 'libs', include: '*.jar')
  12. }
  13. android {
  14. compileSdkVersion 28
  15. buildToolsVersion '28.0.3'
  16. useLibrary 'org.apache.http.legacy'
  17. defaultConfig {
  18. minSdkVersion 24
  19. targetSdkVersion 28
  20. }
  21. sourceSets {
  22. main {
  23. manifest.srcFile 'AndroidManifest.xml'
  24. java.srcDirs = ['src']
  25. resources.srcDirs = ['src']
  26. aidl.srcDirs = ['src']
  27. renderscript.srcDirs = ['src']
  28. res.srcDirs = ['res']
  29. assets.srcDirs = ['assets']
  30. jniLibs.srcDirs = ['libs']
  31. }
  32. debug.setRoot('build-types/debug')
  33. release.setRoot('build-types/release')
  34. }
  35. compileOptions {
  36. sourceCompatibility = 1.8
  37. targetCompatibility = 1.8
  38. }
  39. }