build.gradle 2.46 KB
apply plugin: 'com.android.library'

android {
    compileSdkVersion 27

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"

        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [AROUTER_MODULE_NAME: project.getName(), AROUTER_GENERATE_DOC: "enable"]
            }
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.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.android.support:cardview-v7:$rootProject.cardviewV7"

    //RefreshLayout
    implementation "com.scwang.smartrefresh:SmartRefreshLayout:$rootProject.SmartRefreshLayout"
    implementation "com.scwang.smartrefresh:SmartRefreshHeader:$rootProject.SmartRefreshHeader"

    //QMUI
    implementation "com.qmuiteam:qmui:$rootProject.qmui"

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

    //RecyclerView-Animators
    implementation "jp.wasabeef:recyclerview-animators:$rootProject.recyclerviewAnimators"

    //CNLiveLibs
    implementation "com.cnlive:lib_base:$rootProject.libBase"
    implementation "com.cnlive:lib_network:$rootProject.libNetwork"
    implementation "com.cnlive:app_emoj:$rootProject.libEmoj"
    implementation "com.cnlive:menu:$rootProject.libMenu"
    implementation "com.cnlive:app_arch:$rootProject.appArch"

    //ARouter
    implementation "com.alibaba:arouter-api:$rootProject.arouterApiVersion"
    annotationProcessor "com.alibaba:arouter-compiler:$rootProject.arouterCompilerVersion"
}