build.gradle 3.16 KB
apply plugin: 'com.android.application'
apply plugin: 'com.alibaba.arouter'

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

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.clive.happychinadem"
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"

        multiDexEnabled true

        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [AROUTER_MODULE_NAME: project.getName(), AROUTER_GENERATE_DOC: "enable"]
            }
        }
    }
    buildTypes {
        debug {
            applicationIdSuffix ".debug"
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

            buildConfigField("boolean", "VERSION_AS_DEBUG", "true")
            buildConfigField("String", "APP_ID", stringValue("802_jhbqccxw08"))
            buildConfigField("String", "APP_KEY", stringValue("9c5619e9be747bb3b925dd215ca5923d86f12c09b9394f"))
            buildConfigField("String", "APP_SCERET", stringValue("1e6380cb347255e777f72b5aa60f41daa68443a132aaea"))
        }
    }

    dataBinding {
        enabled true
    }

    dexOptions {
        javaMaxHeapSize '4g'
    }

    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }
}

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"

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

    //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"

    //Bintray module
    //    implementation "com.cnlive:happy_china:$rootProject.happychina"

    //Location module
    implementation project(':happy_china')
}