build.gradle 6.42 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()
        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' }
        maven {
            url 'https://maven.aliyun.com/nexus/content/groups/public/'
        }
    }
    dependencies {
        classpath "com.android.tools.build:gradle:4.1.2"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
        maven {
            url  "https://dl.bintray.com/aiui/maven"
        }
        maven { url 'https://dl.google.com/dl/android/maven2/' }
        jcenter()
        maven {
            url 'http://maven.aliyun.com/nexus/content/repositories/releases/'
        }

        maven { url 'https://jitpack.io' }
//        maven {
//            url "http://cnlive.online:8081/repository/cnlive/"
//        }

        //------------------ 资源库配置 ------------------
        maven {
            url mavenMixedUrl
            credentials { username = nexusId; password = nexusPw }
        }
        maven {
            url 'http://android.nexus.cnlive.com/repository/cnlive-shop/'
            credentials { username = 'shop'; password = 'ShangHa1' }
        }
        maven {
            url 'http://wjjshop.cnlive.com:9188/repository/cnlive-modules/'
            credentials { username = "cnlive-android"; password = "cnlive123" }
        }
        maven { url "http://dl.bintray.com/kavensjf/eduTv/" }
        //------------------ 资源库配置 END------------------
        maven {
            url 'http://nexus2.tingyun.com/nexus/content/repositories/snapshots/'
        }
        maven {
            url 'https://maven.aliyun.com/nexus/content/groups/public/'
        }
        maven {
            url 'https://dl.bintray.com/cjt/maven'
        }
        maven {
            url "https://jitpack.io"
        }
        maven {
            url 'https://dl.bintray.com/granzon/cnlive'
        }
        maven {
            url 'https://dl.bintray.com/granzon/cnliveLibs'
        }
        maven {
            url 'http://developer.huawei.com/repo'
        }
        maven {
            url 'http://maven.aliyun.com/nexus/content/repositories/releases/'
        }

        maven { url 'https://dl.bintray.com/umsdk/release' }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
//配置全局变量
ext {
    def versionMajor = 1
    def versionMinor = 7
    def versionPatch = 2
    def versionBuild = 1
    // 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.9.7.3-androidx'
    libNetwork = '1.1.7.1-androidx'
    libEmoj = '2.2.4.0'
    libAnalytics = '1.1.4-androidx'
    libLargeImage = '1.0.4-androidx'
    libNewMediaPicker = '1.0.4.4'
    libWjjPay = "1.0.5-androidx"
    appAgriculture = "1.2.7-androidx"
    appArch = '1.3.6.5-androidx'
    libServicenum = '1.2.4-androidx'
    libSocial = '0.3.2.3'

    //视频库
    libVideoQiniu = '1.0.7-androidx'
    //幸福中国
    moduleHappyChina = '0.0.12'

    //androidx
    androidx_appcompat = "1.0.0"
    androidx_material = "1.0.0"
    androidx_legacy_supportv13 = "1.0.0"
    androidx_legacy_supportv4 = "1.0.0"
    androidx_recyclerview = "1.0.0"
    androidx_cardview = "1.0.0"
    androidx_constraintlayout = "1.1.3"
    androidx_multidex = "2.0.0"
    androidx_emoji_bundled = "1.0.0"

    //商城库
    shopmoduleVersion = '0.6.0.61'

    //环球优物-商城库
    shanghai_shopmoduleVersion = '1.1.0'

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

    //视讯云相关
    libCnUtil = '3.1.5'
    libCnVideo = '3.3.25'
    libCnencipher = '1.1.1'

    //glide
    glide = '4.11.0'
    glideIntegration = "4.11.0"
    glideTransformations = '4.1.0'
    compiler = '4.11.0'

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

    //qmui
    qmui = '1.1.5'

    //高德地图
    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.4.3'

    //听云
    nbsNewlensAgent = '2.14.9'

    //eventbus
    eventbus = '3.1.1'

    //华为推送
    push = '2.6.0.301'


    //GSON
    gson = '2.8.5'

    //greendao
    greendao = '3.3.0'

    //retrofit2
    retrofit = '2.6.3'
    converterGson = '2.6.3'
    adapterRxjava2 = '2.6.3'

    //okhttp3
    okhttp = '3.12.6'
    loggingInterceptor = '3.12.6'

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

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

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

    appSubscription = "2.5.6-androidx"

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

    pedometer = "1.2.5-androidx"
    avi = "2.1.3"
    classification = "0.9.6.9.9.2-androidx"

    //友盟
    umsdk_asms = "1.2.1"
    umsdk_common = "9.3.7"
    umsdk_apm = "1.1.1"
    //小家音箱
    xiaojiaSoundBox = "0.4.0-androidx"
    //动画大全
    viewAnimationsEasing = '2.0@aar'
    viewAnimationsAndroid = '2.3@aar'
    //蓝牙
    BleLib = "2.3.4"
    gifDrawable = '1.2.3'
    trtc = "7.2.8927"
    //滑动面板
    slidinguppanel = '3.4.0'
    //外部分享
    lib_outside_share = '1.0.2.9'
    //腾讯mmkv
    tencent_mmkv_static = "1.2.6"
    //relinker(一些 Android 设备(API level 19)在安装/更新 APK 时可能出错, 导致 libmmkv.so 找不到)
    relinker = "1.4.1"
}