build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdk rootProject.ext.android.compileSdk
  6. buildToolsVersion rootProject.ext.android.buildToolsVersion
  7. defaultConfig {
  8. minSdk rootProject.ext.android.minSdk
  9. targetSdk rootProject.ext.android.targetSdk
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled rootProject.ext.module.minifyEnabled
  14. proguardFiles 'proguard-rules.pro'
  15. }
  16. }
  17. buildFeatures {
  18. buildConfig false
  19. }
  20. lintOptions {
  21. abortOnError false
  22. }
  23. dexOptions {
  24. preDexLibraries false
  25. }
  26. }
  27. android.libraryVariants.all { variant ->
  28. if (variant.buildType.name == 'release'){
  29. variant.outputs.all {
  30. outputFileName = "$PUBLISH_ARTIFACT_ID"+ "-" + "$PUBLISH_VERSION" + ".aar"
  31. }
  32. }else{
  33. variant.outputs.all {
  34. outputFileName = "$PUBLISH_ARTIFACT_ID" + "_"+ variant.buildType.name + "$PUBLISH_VERSION" + ".aar"
  35. }
  36. }
  37. }
  38. dependencies {
  39. compileOnly project(':library_base')
  40. // compileOnly project(':library_platform:hnyy')
  41. compileOnly project(':library_core')
  42. }
  43. apply from: 'buildJar.gradle'
  44. apply from: 'publish.gradle'