build.gradle 2.43 KB
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "config.gradle"
buildscript {
    repositories {
        google()
        jcenter()
        
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.2'
        classpath "com.alibaba:arouter-register:1.0.2"
        //greenDao数据库-杨帅
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // add plugin
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        //------------------ 资源库配置 ------------------
        maven {
            url "http://android.nexus.cnlive.com/repository/cnlive-mixed/"
            credentials { username = nexusId; password = nexusPw }
        }
        //------------------ 资源库配置 END------------------
        maven {
            url 'https://dl.bintray.com/granzon/cnlive'
        }
        maven {
            url 'https://dl.bintray.com/granzon/cnliveLibs'
        }
        maven {
            url "https://jitpack.io"
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

ext {
    def versionMajor = 1
    def versionMinor = 0
    def versionPatch = 0
    def versionBuild = 0
    // module依赖库公共版本号
    versionCode = versionMajor * 1000 + versionMinor * 100 + versionPatch * 10 + versionBuild
    versionName = "${versionMajor}.${versionMinor}.${versionPatch}.${versionBuild}"

    compileSdkVersion = 28
    buildToolsVersion = "28.0.3"
    minSdkVersion = 16
    targetSdkVersion = 27

    //support 相关
    supportV4 = '28.0.0'
    appcompatV7 = '28.0.0'
    design = '28.0.0'
    supportV13 = '28.0.0'
    recyclerviewV7 = '28.0.0'
    cardviewV7 = '28.0.0'

    appArch = '1.0.3'
    //qmui
    qmui = '1.1.5'

    libBase = '1.0.9'
    libNetwork = '1.1.0'
    libLargeImage = '1.0.1'
    libEmoj = '1.9.8'
    libMenu = '1.0.4'

    //glide
    glide = '4.5.0'
    glideTransformations = '3.0.1'
    compiler = '4.5.0'

    magicindicator = '1.6.0'

    //SmartRefresh
    SmartRefreshLayout = '1.1.0-alpha-1'
    SmartRefreshHeader = '1.1.0-alpha-1'

    //阿里路由框架
    arouterApiVersion = '1.4.0'
    arouterCompilerVersion = '1.2.1'

    //greendao
    greendao = '3.2.2'
    cnlive_baiduMap="0.0.3"
    eventBus = "3.1.1"
    easypermissions = '1.0.0'

}