12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- 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
- }
- }
- dependencies {
- api files('../libs/mmkv-static-1.2.8.jar')
- api files('../libs/dolin_zap_1.0.0.jar')
- api files('../libs/yyxx_support_1.0.2.jar')
- api files('../libs/android-support-v4.jar')
- }
- 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"
- }
- }
- }
- apply from: 'buildJar.gradle'
- apply from: 'publish.gradle'
|