| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 | /** * @author: gold * @time: 2021/11/15 上午10:20 * @description: 统一处理依赖问题 * @copyright (C) 2019-2021, XiaoLiu All Rights Reserved */ext {    //android开发版本配置    android = [            compileSdkVersion: 30,            buildToolsVersion: "30.0.0",            applicationId    : "com.yingyangfly",            minSdkVersion    : 19,            targetSdkVersion : 30,            versionCode      : 1,            versionName      : "1.0.0",    ]    //androidx配置    androidx = [            "constraintlayout"    : 'androidx.constraintlayout:constraintlayout:2.0.1',            'appcompat'           : 'androidx.appcompat:appcompat:1.3.1',            'material'              : 'com.google.android.material:material:1.4.0',            "multidex"            : 'androidx.multidex:multidex:2.0.1',            "annotation"          : 'androidx.annotation:annotation:1.2.0',            'junit'               : "junit:junit:4.12",            'runner'              : 'androidx.test.ext:junit:1.1.2',            'espresso_core'       : 'androidx.test.espresso:espresso-core:3.3.0',            'kotlin_lib'          : "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",            'kotlin_core'         : "androidx.core:core-ktx:1.3.1",            // 编写更简洁、惯用的Kotlin代码            'core_ktx'            : "androidx.activity:activity-ktx:1.2.0",            'flexbox'             : "com.google.android:flexbox:2.0.1",            'recyclerview'        :"androidx.recyclerview:recyclerview:1.1.0"    ]    //version配置    versions = [            /*"support-version": "1.0.0",            "junit-version"  : "4.12",            "koin-version"   : "3.1.1"*/    ]    //support配置    support = [            /*'support-v4'              : "androidx.legacy:legacy-support-v4:${versions["support-version"]}",            'recyclerview-v7'         : "androidx.recyclerview:recyclerview:${versions["support-version"]}",            'support-v13'             : "androidx.legacy:legacy-support-v13:${versions["support-version"]}",            'animated-vector-drawable': "androidx.vectordrawable:vectordrawable-animated:${versions["support-version"]}",            'junit'                   : "junit:junit:${versions["junit-version"]}",*/    ]    //依赖第三方配置    dependencies = [            // 协程            "kotlinx_core"                      :'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3',            "kotlinx_android"                   :"org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3",            // Retrofit2.0            "retrofit2"                                    :"com.squareup.retrofit2:retrofit:2.9.0",            "converter_gson"                               :"com.squareup.retrofit2:converter-gson:2.9.0",            "logging_interceptor"                          :"com.squareup.okhttp3:logging-interceptor:4.2.0",            // 网络请求拦截器 https://github.com/itkacher/OkHttpProfiler            "okhttpprofiler"                      :"com.localebro:okhttpprofiler:1.0.8",            // Okhttp3 https://square.github.io/okhttp/#releases            "ohkttp3"                            :"com.squareup.okhttp3:okhttp:4.9.0",            //阿里路由框架            "arouter_api"                          : "com.alibaba:arouter-api:1.5.2",            "arouter_compiler"                     : "com.alibaba:arouter-compiler:1.5.2",            // https://github.com/gyf-dev/ImmersionBar android 4.4以上沉浸式状态栏和沉浸式导航栏管理,适配横竖屏切换、刘海屏、软键盘弹出等问题,可以修改状态栏字体颜色和导航栏图标颜色,以及不可修改字体颜色手机的适配,适用于Activity、Fragment、Dia            // 基础依赖包,必须要依赖            "immersionbar"                          : "com.gyf.immersionbar:immersionbar:3.0.0",            // fragment快速实现(可选)            "immersionbar_components"               : "com.gyf.immersionbar:immersionbar-components:3.0.0",            // kotlin扩展(可选)            "immersionbar_ktx"                      : "com.gyf.immersionbar:immersionbar-ktx:3.0.0",            // Logger : https://github.com/orhanobut/logger            "logger"                                : "com.orhanobut:logger:2.2.0",            // MMKV : https://github.com/tencent/mmkv/wiki/android_setup_cn            "mmkv"                                : "com.tencent:mmkv:1.2.14",            //            "mmkv_ktx"                                : "com.github.DylanCaiCoding:MMKV-KTX:1.2.14",            // jsbridge :https://github.com/lzyzsd/JsBridge            "jsbridge"                                : "com.github.lzyzsd:jsbridge:1.0.4",            // https://github.com/lihangleo2/ShadowLayout            "shadowLayout"                                : "com.github.lihangleo2:ShadowLayout:3.2.4",            "bugly"                        : "com.tencent.bugly:crashreport:4.1.9",            "imageSelector"          : "com.github.donkingliang:ImageSelector:2.2.1",            //  多渠道打包            "walle" : "com.meituan.android.walle:library:1.1.6",            //SmartRefreshLayout:下拉刷新, 上拉加载更多  https://github.com/scwang90/SmartRefreshLayout            "smartRefreshLayout": 'io.github.scwang90:refresh-layout-kernel:2.0.6',            "refresh_header_classics":  'io.github.scwang90:refresh-header-classics:2.0.6',    //经典刷新头            "refresh_footer_classics":  'io.github.scwang90:refresh-footer-classics:2.0.6',    //经典加载            // jsbridge :https://github.com/lzyzsd/JsBridge            "jsbridge": 'com.github.lzyzsd:jsbridge:1.0.4',            //RxJava2.0            "rxjava": 'io.reactivex.rxjava2:rxjava:2.2.20',            "rxandroid": 'io.reactivex.rxjava2:rxandroid:2.1.1',            "rxkotlin": 'io.reactivex.rxjava2:rxkotlin:2.4.0',            //api 'lib.gorden.rxbus2:rxbus:2.0.1'            "live_event_bus_x": 'io.github.jeremyliao:live-event-bus-x:1.8.0',            //glide            "glide": 'com.github.bumptech.glide:glide:4.12.0',            "glide_compiler": 'com.github.bumptech.glide:compiler:4.12.0',            "utilcode": 'com.blankj:utilcode:1.30.7',            //极光推送            "jpush": 'cn.jiguang.sdk:jpush:5.0.0',            "gson":"com.google.code.gson:gson:2.8.6"    ]}
 |