1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- 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
- }
- 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: 'buildJar.gradle'
- apply from: 'publish.gradle'
|