build.gradle 3.08 KB
apply plugin: 'com.android.library'
apply from: './maven_push.gradle'

static def stringValue(def value) {
    return "\"${value}\""
}

android {
    compileSdkVersion 28


    defaultConfig {
        minSdkVersion 18
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "android.test.runner.AndroidJUnitRunner"
        consumerProguardFiles 'consumer-rules.pro'

        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [AROUTER_MODULE_NAME: project.getName()]
            }
        }
    }

    dataBinding {
        enabled = true
    }
    buildTypes {
        debug {
        }
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    dataBinding {
        enabled true
    }

    dexOptions {
        javaMaxHeapSize '4g'
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation "com.android.support:support-v4:$rootProject.supportV4"
    implementation "com.android.support:appcompat-v7:$rootProject.appcompatV7"
    implementation "com.android.support:design:$rootProject.design"
    implementation "com.android.support:support-v13:$rootProject.supportV13"
    implementation "com.android.support:recyclerview-v7:$rootProject.recyclerviewV7"
    implementation "com.cnlive:app_arch:$rootProject.appArch"
    implementation "com.qmuiteam:qmui:$rootProject.qmui"
    implementation "com.cnlive.libs:base:$rootProject.libBase"
    implementation "com.cnlive.libs:network:$rootProject.libNetwork"

    //    蓝牙相关
    implementation "com.clj.fastble:FastBleLib:$rootProject.BleLib"

    //    https://github.com/Blankj/AndroidUtilCode/blob/master/lib/utilcode/README-CN.md

    //    implementation 'com.blankj:utilcode:1.25.9'

    //glide
    implementation "com.github.bumptech.glide:glide:$rootProject.glide"
    implementation "jp.wasabeef:glide-transformations:$rootProject.glideTransformations"

    //    loading动画
    implementation "com.wang.avi:library:$rootProject.avi"

    //    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation "com.scwang.smartrefresh:SmartRefreshLayout:$rootProject.SmartRefreshLayout"
    implementation "com.scwang.smartrefresh:SmartRefreshHeader:$rootProject.SmartRefreshHeader"

    //    implementation 'com.android.support.constraint:constraint-layout:1.1.3'

    // 动画库

    //    implementation 'com.android.support:support-compat:25.1.1'
    implementation 'com.daimajia.easing:library:2.0@aar'
    implementation 'com.daimajia.androidanimations:library:2.3@aar'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'

    implementation "com.alibaba:arouter-api:$rootProject.arouterApiVersion"
    annotationProcessor "com.alibaba:arouter-compiler:$rootProject.arouterCompilerVersion"
    api files('libs/pinyin4j-2.5.0.jar')
}