build.gradle 2.8 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://jitpack.io"
        }
    }
}

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

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

    compileSdkVersion = 29
    buildToolsVersion = "29.0.2"
    minSdkVersion = 19
    targetSdkVersion = 29

    libNewMediaPicker = '1.0.1.8'
    appArch = '1.3.6.2-androidx-beta1'
    //qmui
    qmui = '1.1.5'

    libBase = '2.0.0.1'
    libNetwork = '1.1.7.2-androidx'
    libEmoj = '2.2.4.2'
    libAnalytics = '1.1.4-androidx'
    libLargeImage = '1.0.4-androidx'
    libNewMediaPicker = '1.0.5.3'
    libWjjPay = "1.0.5-androidx"
    appAgriculture = "1.2.7-androidx"
    appArch = '1.3.6.6-androidx'
    libServicenum = '1.3.3.6-androidx'
    libSocial = '0.3.2.5'
    //glide
//    glide = '4.5.0'
//    glideTransformations = '3.0.1'
//    compiler = '4.5.0'

    glide = '4.11.0'
    glideTransformations = '4.1.0'
    compiler = '4.11.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'
    TimePickerDialog = '1.0.1'

    libCnUtil = '3.1.3'
    libAnalytics = '1.0.8'
    okhttp = '3.8.1'
    oki = '1.13.0'
    //七牛
    qiniuAndroidSdk = '7.3.11'
    libUpload = '2.0.6'
    //视频库
    libVideoQiniu = '1.0.6'
    libMediaPicker = '1.5.1'
    //loading动画
    avi='2.1.3'
    //滑动面板
    slidinguppanel='3.4.0'
}