123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- plugins {
- id 'com.android.library'
- }
- android {
- compileSdk 31
- defaultConfig {
- minSdk 21
- targetSdk 26
- consumerProguardFiles "consumer-rules.pro"
- }
- buildTypes {
- release {
- minifyEnabled rootProject.ext.module.minifyEnabled
- proguardFiles 'proguard-rules.pro'
- }
- debug {
- minifyEnabled rootProject.ext.module.minifyEnabled
- proguardFiles 'proguard-rules.pro'
- }
- }
- buildFeatures {
- buildConfig false
- }
- lintOptions {
- abortOnError false
- }
- dexOptions {
- preDexLibraries false
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_7
- targetCompatibility JavaVersion.VERSION_1_7
- }
- }
- android.libraryVariants.all { variant ->
- if (variant.buildType.name == 'release'){
- variant.outputs.all {
- outputFileName = "$PUBLISH_ARTIFACT_ID"+ "-" + "$PUBLISH_VERSION" + ".aar"
- }
- }else{
- variant.outputs.all {
- outputFileName = "$PUBLISH_ARTIFACT_ID" + "_"+ variant.buildType.name + "$PUBLISH_VERSION" + ".aar"
- }
- }
- }
- dependencies {
- compileOnly project(':library_base')
- compileOnly project(':library_core')
- compileOnly project(':library_channel')
- compileOnly files('../hnqj/libs/oaid_sdk_1.0.25.aar')
- }
- apply from: 'publish.gradle'
|