build.gradle 793 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion rootProject.ext.android.compileSdkVersion
  6. buildToolsVersion rootProject.ext.android.buildToolsVersion
  7. defaultConfig {
  8. minSdkVersion rootProject.ext.android.minSdkVersion
  9. targetSdkVersion rootProject.ext.android.targetSdkVersion
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles 'proguard-rules.pro'
  15. }
  16. }
  17. buildFeatures {
  18. buildConfig false
  19. }
  20. lintOptions {
  21. abortOnError false
  22. }
  23. //api23以上使用 httpClient
  24. useLibrary 'org.apache.http.legacy'
  25. }
  26. dependencies {
  27. implementation rootProject.ext.other['cronet']
  28. implementation rootProject.ext.ktx['core']
  29. }
  30. apply from: 'buildJar.gradle'