123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- plugins {
- id 'com.android.library'
- }
- android {
- compileSdk rootProject.ext.android.compileSdk
- buildToolsVersion rootProject.ext.android.buildToolsVersion
- defaultConfig {
- minSdk rootProject.ext.android.minSdk
- targetSdk rootProject.ext.android.targetSdk
- }
- buildTypes {
- release {
- minifyEnabled rootProject.ext.module.minifyEnabled
- proguardFiles 'proguard-rules.pro'
- }
- }
- buildFeatures {
- buildConfig false
- }
- lintOptions {
- abortOnError false
- }
- dexOptions {
- preDexLibraries false
- }
- }
- 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_platform:hnyy')
- compileOnly project(':library_core')
- }
- apply from: 'buildJar.gradle'
- apply from: 'publish.gradle'
|