build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 rootProject.ext.tag.minify
  14. proguardFiles 'proguard-rules.pro'
  15. }
  16. }
  17. buildFeatures {
  18. buildConfig = false
  19. }
  20. lintOptions {
  21. abortOnError false
  22. }
  23. repositories {
  24. flatDir {
  25. dirs 'libs'
  26. }
  27. }
  28. dexOptions {
  29. preDexLibraries = false
  30. }
  31. //api23以上使用 httpClient
  32. useLibrary 'org.apache.http.legacy'
  33. }
  34. dependencies {
  35. compileOnly files('../libs/oaid_sdk_1.0.25.jar')
  36. if (rootProject.ext.tag.useAndroidXVolley) {
  37. implementation rootProject.ext.other['cronet']
  38. implementation rootProject.ext.ktx['core']
  39. api files('../libs/yyxx_support_volleyx_1.0.0.jar')
  40. } else {
  41. compileOnly files('../libs/android-support-v4.jar')
  42. api files('../libs/yyxx_support_volley_1.0.0.jar')
  43. }
  44. }
  45. apply from: 'buildJar.gradle'