build.gradle 4.62 KB
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "config.gradle"
buildscript {
    repositories {
        //关联微博
        maven { url "https://dl.bintray.com/thelasterstar/maven/" }
        google()
        jcenter()
        mavenCentral()
        maven {
            url 'http://nexus2.tingyun.com/nexus/content/repositories/snapshots/'
        }
        maven {
            url 'https://dl.bintray.com/granzon/cnlive'
        }

        maven { url 'https://dl.bintray.com/umsdk/release' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.1'
        classpath "com.alibaba:arouter-register:1.0.2"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven { url "https://dl.bintray.com/thelasterstar/maven/" }
        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 = 5
    def versionPatch = 5
    def versionBuild = 5
    // module依赖库公共版本号
    versionCode = versionMajor * 1000 + versionMinor * 100 + versionPatch * 10 + versionBuild
    versionName = "${versionMajor}.${versionMinor}.${versionPatch}.${versionBuild}"

    compileSdkVersion = 29
    buildToolsVersion = "29.0.2"
    minSdkVersion = 19
    targetSdkVersion = 29
    //基础库
    libBase = '1.6.2'
    libNetwork = '1.1.5'
    libEmoj = '2.0.9'
    libMenu = '1.0.6'
    libAnalytics = '1.1.0'
    libLargeImage = '1.0.1'
    libMediaPicker = '1.5.8'
    libWjjPay = "1.0.5"
    appAgriculture = "1.1.9"
    appArch = '1.1.1'

    //视频库
    libVideoQiniu = '1.0.6'

    //幸福中国
    moduleHappyChina = '0.0.12'

    //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'
    multidex = '1.0.3'
    constraintLayout = '1.1.3'

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

    //视讯云相关
    libCnUtil = '3.1.5'
    libCnVideo = '3.3.11'
    libUpload = '2.0.6'
    libCnencipher = '1.1.1'

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

    //数据库加密
    androidDatabaseSqlcipher = '3.5.6'

    //qmui
    qmui = '1.4.0'

    //高德地图
    location = 'latest.integration'

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

    //二维码相关
    bgaQrcodeZxing = '1.3.6'
    bgaQrcodeZbar = '1.3.6'

    //七牛
    qiniuAndroidSdk = '7.3.11'

    //听云
    nbsNewlensAgent = '2.14.1'

    //eventbus
    eventbus = '3.1.1'

    //华为推送
    push = '2.6.0.301'

    //mvp 框架
    mvp = '3.0.4'
    viewstate = '3.0.4'
    mvpLce = '3.0.4'
    mvpNullobjectPresenter = '3.0.4'

    //GSON
    gson = '2.8.2'

    //greendao
    greendao = '3.2.2'

    //retrofit2
    retrofit = '2.3.0'
    converterGson = '2.3.0'
    adapterRxjava2 = '2.3.0'

    //okhttp3
    okhttp = '3.9.0'
    loggingInterceptor = '3.9.0'

    //rxJava
    rxJava = "2.1.8"
    rxAndroid = "2.0.1"

    //IM
    imsdk = '3.3.2.14394.14395'
    callsdk = '1.0.9'
    //魅族推送
    pushInternal = '3.6.+@aar'

    //其他
    circleimageview = '2.1.0'
    recyclerviewAnimators = '2.2.6'
    TimePickerDialog = '1.0.1'
    loadingviewlib = '1.0'
    lottie = '2.7.0'
    easypermissions = '1.0.0'
    rotatephotoview = '1.0.5'
    LargeImageView = '1.1.0'
    magicindicator = '1.6.0'
    libAudio = '1.0.1'

    appSubscription = "2.0.5"
    eventBus = "3.1.1"
    agentweb = '4.0.3-beta'
    filechooser = '4.0.3-beta'
    download = '4.0.3-beta'

    pedometer = "0.9.8"
    avi = "2.1.3"
    classification = "0.5.7"

    //友盟
    umsdk_analytics = "8.0.0"
    umsdk_common = "2.0.0"
    //小家音箱
    xiaojiaSoundBox="0.3.17"
    //动画大全
    viewAnimationsEasing='2.0@aar'
    viewAnimationsAndroid='2.3@aar'
    //蓝牙
    BleLib="2.3.4"
}