build.gradle 860 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion COMPILE_SDK_VERSION
  6. buildToolsVersion BUILD_TOOLS_VERSION
  7. defaultConfig {
  8. minSdkVersion MIN_SDK_VERSION
  9. targetSdkVersion TARGET_SDK_VERSION
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled MINIFY_ENABLE
  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. compileOnly files('../libs/android-support-v4.jar')
  37. }
  38. apply from: 'buildJar.gradle'