build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdk 31
  6. defaultConfig {
  7. minSdk 21
  8. targetSdk 26
  9. consumerProguardFiles "consumer-rules.pro"
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled rootProject.ext.module.minifyEnabled
  14. proguardFiles 'proguard-rules.pro'
  15. }
  16. debug {
  17. minifyEnabled rootProject.ext.module.minifyEnabled
  18. proguardFiles 'proguard-rules.pro'
  19. }
  20. }
  21. buildFeatures {
  22. buildConfig false
  23. }
  24. lintOptions {
  25. abortOnError false
  26. }
  27. dexOptions {
  28. preDexLibraries false
  29. }
  30. buildFeatures {
  31. buildConfig false
  32. }
  33. compileOptions {
  34. sourceCompatibility JavaVersion.VERSION_1_7
  35. targetCompatibility JavaVersion.VERSION_1_7
  36. }
  37. }
  38. android.libraryVariants.all { variant ->
  39. if (variant.buildType.name == 'release'){
  40. variant.outputs.all {
  41. outputFileName = "$PUBLISH_ARTIFACT_ID"+ "-" + "$PUBLISH_VERSION" + ".aar"
  42. }
  43. }else{
  44. variant.outputs.all {
  45. outputFileName = "$PUBLISH_ARTIFACT_ID" + "_"+ variant.buildType.name + "$PUBLISH_VERSION" + ".aar"
  46. }
  47. }
  48. }
  49. dependencies {
  50. compileOnly project(':library_base')
  51. compileOnly project(':library_core')
  52. compileOnly project(':library_channel')
  53. compileOnly files('../hnqj/libs/oaid_sdk_1.0.25.aar')
  54. }
  55. apply from: 'publish.gradle'