build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. ext {
  39. PUBLISH_ARTIFACT_ID = 'yyxx_comm_channel'
  40. PUBLISH_VERSION = ':3.0.100'
  41. }
  42. dependencies {
  43. compileOnly project(':library_base')
  44. // compileOnly project(':library_platform:hnyy')
  45. compileOnly project(':library_core')
  46. }
  47. apply from: 'buildJar.gradle'