build.gradle 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_7
  26. targetCompatibility JavaVersion.VERSION_1_7
  27. }
  28. }
  29. android.libraryVariants.all { variant ->
  30. if (variant.buildType.name == 'release'){
  31. variant.outputs.all {
  32. outputFileName = "$PUBLISH_ARTIFACT_ID$PUBLISH_VERSION" + ".aar"
  33. }
  34. }else{
  35. variant.outputs.all {
  36. outputFileName = "$PUBLISH_ARTIFACT_ID" + "_"+ variant.buildType.name + "$PUBLISH_VERSION" + ".aar"
  37. }
  38. }
  39. }
  40. ext {
  41. PUBLISH_ARTIFACT_ID = 'yyxx_comm_platform_xinrui'
  42. PUBLISH_VERSION = ':3.0.100'
  43. }
  44. dependencies {
  45. compileOnly project(':library_base')
  46. compileOnly project(':library_core')
  47. compileOnly project(':library_channel')
  48. compileOnly files('../hnqj/libs/oaid_sdk_1.0.25.aar')
  49. }
  50. apply from: 'buildJar.gradle'