123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- /**
- * Shared file between builds so that they can all use the same dependencies and
- * maven repositories.
- **/
- ext.deps = [:]
- def versions = [:]
- versions.android_gradle_plugin = '4.0.1'
- versions.kotlin = "1.4.0"
- versions.lifecycle = "2.2.0"
- versions.support = "1.0.0"
- versions.multidex = "1.0.2"
- versions.constraint_layout = "2.0.1"
- versions.dagger = "2.23.2"
- versions.glide = "4.11.0"
- versions.glide_transformations = "4.1.0"
- versions.rxjava2 = "2.2.13"
- versions.rx_android = "2.1.1"
- versions.retrofit = "2.6.2"
- versions.okhttp3 = "3.12.0"
- versions.imagepicker = "2.2.3"
- versions.fastjson = "1.2.46"
- versions.butterknife = "10.2.1"
- versions.event_bus = "3.1.1"
- versions.photo_view = "2.0.0"
- versions.persistent_cookie = "v1.0.1"
- versions.gson = "2.8.5"
- versions.qmui = "2.0.0-alpha10"
- versions.flow_layout = "1.0.3"
- versions.swipe_recycler = "1.1.3"
- versions.easy_recycler = "4.4.2"
- versions.utils = "1.29.0"
- versions.top_snackbar = "1.1.1"
- versions.litepal = "1.6.1"
- versions.material_dialog = "0.9.6.0"
- versions.autosize = "1.2.1"
- versions.circleimageview = "2.2.0" // 圆形
- versions.immersionbar = "3.0.0" // 沉浸式状态栏
- versions.baseRecyclerViewAdapterHelper = "2.9.47" // BaseRecyclerViewAdapterHelper
- versions.collapsibletextview = "1.1.2" // 可展开的TextView
- versions.lottie = "3.4.0" // 动画
- versions.avi = "2.1.3" // 加载动画
- versions.progressmanager = "1.5.0" // 进度
- versions.wechat_sdk = "5.3.1" // 微信
- versions.room = "1.1.1" // 数据库
- versions.loopView = "0.2.1" // 滚动选择器
- versions.matisse = "0.5.3-beta3" // 知乎相册选择
- versions.aliyun_oss = "2.9.3" // oss
- versions.smarttablayout = "2.0.0@aar" // Tab Layout
- versions.smarttablayout_ogaclejapan = "2.0.0@aar" // TabLayoutUtil
- versions.layoutManagerGroup = "1e6f4f96eb" // LayoutManagerGroup 'com.github.DingMouRen:LayoutManagerGroup:1e6f4f96eb'
- versions.niceImageView = "1.0.5" // 圆角 View com.github.SheHuan:NiceImageView:1.0.5 https://github.com/SheHuan/NiceImageView
- versions.pagerlayoutmanager = "2.3.8" // RecyclerView 布局管理器 com.gcssloop.recyclerview:pagerlayoutmanager:2.3.8
- versions.flexbox = "1.0.0" // //谷歌流式布局库
- versions.smartrefresh = "1.1.0" // com.scwang.smartrefresh:SmartRefreshLayout:1.1.0
- versions.flowlayout = "1.1.2" // com.hyman:flowlayout-lib:1.1.2
- versions.luban = "1.1.8" // 'top.zibin:Luban:1.1.8'
- versions.exoplayer = "2.11.3" // com.google.android.exoplayer:exoplayer:2.X.X'
- versions.danmaku = "0.9.25" // 'com.github.ctiao:DanmakuFlameMaster:0.2.25'
- versions.pickerView = "4.1.9" // 'com.contrarywind:Android-PickerView:4.1.9'
- versions.database_room = "2.2.4" // room 数据库
- versions.filedownloader = "1.7.7" // filedownloader 'com.liulishuo.filedownloader:library:1.7.7'
- versions.youth_banner = "2.0.8" // com.youth.banner:banner:2.0.8'
- versions.calligraphy = "2.3.0" // 'uk.co.chrisjenx:calligraphy:2.3.0' // 字体
- versions.gif_lib = "1.2.19" // "pl.droidsonroids.gif:android-gif-drawable:1.2.19" // gif
- versions.easySwipeMenuLayout = "1.1.4" // com.github.anzaizai:EasySwipeMenuLayout:1.1.4
- versions.fillblankview = "2.3" // 'com.xw.repo:fillblankview:2.3'
- versions.videoProcessor = "2.4.0" // 压缩 https://github.com/yellowcath/VideoProcessor
- versions.magicIndicator = "1.6.0"
- versions.universalimageloader = "1.9.5"
- versions.pageindicatorview = "1.0.3"
- //Arouter
- versions.arouter_compiler = "1.2.2"
- versions.arouter_api = "1.5.0"
- def support = [:]
- support.annotations = "androidx.annotation:annotation:$versions.support"
- support.app_compat = 'androidx.appcompat:appcompat:1.2.0'
- //support.v13 = "com.android.support:support-v13:$versions.support"
- support.percent = 'androidx.percentlayout:percentlayout:1.0.0'
- support.recyclerview = 'androidx.recyclerview:recyclerview:1.1.0'
- support.cardview = 'androidx.cardview:cardview:1.0.0'
- support.design = 'com.google.android.material:material:1.2.1'
- support.v4 = "androidx.legacy:legacy-support-v4:$versions.support"
- support.core_utils = "androidx.legacy:legacy-support-core-utils:$versions.support"
- support.multidex = 'androidx.multidex:multidex:2.0.0'
- deps.support = support
- def retrofit = [:]
- retrofit.runtime = "com.squareup.retrofit2:retrofit:$versions.retrofit"
- retrofit.adapter = "com.squareup.retrofit2:adapter-rxjava2:$versions.retrofit"
- retrofit.gson = "com.squareup.retrofit2:converter-gson:$versions.retrofit"
- deps.retrofit = retrofit
- def dagger = [:]
- dagger.runtime = "com.google.dagger:dagger:$versions.dagger"
- dagger.android = "com.google.dagger:dagger-android:$versions.dagger"
- dagger.android_support = "com.google.dagger:dagger-android-support:$versions.dagger"
- dagger.compiler = "com.google.dagger:dagger-compiler:$versions.dagger"
- dagger.android_support_compiler = "com.google.dagger:dagger-android-processor:$versions.dagger"
- deps.dagger = dagger
- def kotlin = [:]
- kotlin.stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.0"
- kotlin.coroutines_android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.6"
- kotlin.coroutines_core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6"
- deps.kotlin = kotlin
- def lifecycle = [:]
- // ViewModel
- lifecycle.viewmodel = "androidx.lifecycle:lifecycle-viewmodel-ktx:$versions.lifecycle"
- // LiveData
- lifecycle.livedata = "androidx.lifecycle:lifecycle-livedata-ktx:$versions.lifecycle"
- // ProcessLife
- lifecycle.process = "androidx.lifecycle:lifecycle-process:$versions.lifecycle"
- // alternately - if using Java8, use the following instead of lifecycle-compiler
- lifecycle.common = "androidx.lifecycle:lifecycle-common-java8:$versions.lifecycle"
- deps.lifecycle = lifecycle
- //view
- deps.constraint_layout = "androidx.constraintlayout:constraintlayout:$versions.constraint_layout"
- deps.qmui = "com.qmuiteam:qmui:$versions.qmui"
- deps.flow_layout = "com.zhy:flowlayout-lib:$versions.flow_layout"
- deps.swipe_recycler = "com.yanzhenjie:recyclerview-swipe:$versions.swipe_recycler"
- deps.easy_recycler = "com.jude:easyrecyclerview:$versions.easy_recycler"
- deps.photo_view = "com.github.chrisbanes:PhotoView:$versions.photo_view"
- deps.material_dialog = "com.afollestad.material-dialogs:core:$versions.material_dialog"
- deps.android_gradle_plugin = "com.android.tools.build:gradle:$versions.android_gradle_plugin"
- deps.kotlin_gradle_plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
- deps.rxjava2 = "io.reactivex.rxjava2:rxjava:$versions.rxjava2"
- deps.rx_android = "io.reactivex.rxjava2:rxandroid:$versions.rx_android"
- deps.okhttp3 = "com.squareup.okhttp3:okhttp:$versions.okhttp3"
- deps.logging_interceptor = "com.squareup.okhttp3:logging-interceptor:$versions.okhttp3"
- deps.glide = "com.github.bumptech.glide:glide:$versions.glide"
- deps.glide_compiler = "com.github.bumptech.glide:compiler:$versions.glide"
- deps.glide_transformations = "jp.wasabeef:glide-transformations:$versions.glide_transformations"
- deps.event_bus = "org.greenrobot:eventbus:$versions.event_bus"
- deps.persistent_cookie = "com.github.franmontiel:PersistentCookieJar:$versions.persistent_cookie"
- deps.gson = "com.google.code.gson:gson:$versions.gson"
- deps.fastjson = "com.alibaba:fastjson:$versions.fastjson"
- deps.utils = "com.blankj:utilcodex:$versions.utils"
- deps.top_snackbar = "com.androidadvance:topsnackbar:$versions.top_snackbar"
- deps.litepal = "org.litepal.android:core:$versions.litepal"
- deps.arouter_api = "com.alibaba:arouter-api:$versions.arouter_api"
- deps.arouter_compiler = "com.alibaba:arouter-compiler:$versions.arouter_compiler"
- deps.butterknife = "com.jakewharton:butterknife:$versions.butterknife"
- deps.butterknife_annotationProcessor = "com.jakewharton:butterknife-compiler:$versions.butterknife"
- deps.butterknife_gradle_plugin = "com.jakewharton:butterknife-gradle-plugin:$versions.butterknife"
- deps.autosize = "me.jessyan:autosize:$versions.autosize"
- deps.circleimageview = "de.hdodenhof:circleimageview:$versions.circleimageview"
- deps.baseRecyclerViewAdapterHelper = "com.github.CymChad:BaseRecyclerViewAdapterHelper:$versions.baseRecyclerViewAdapterHelper"
- deps.collapsibletextview = "com.timqi.collapsibletextview:library:$versions.collapsibletextview"
- deps.lottie = "com.airbnb.android:lottie:$versions.lottie"
- deps.avi = "com.wang.avi:library:$versions.avi"
- deps.progressmanager = "me.jessyan:progressmanager:$versions.progressmanager"
- deps.imagepicker = "com.lcw.library:imagepicker:$versions.imagepicker"
- deps.wechat_sdk = "com.tencent.mm.opensdk:wechat-sdk-android-without-mta:$versions.wechat_sdk"
- deps.immersionbar = "com.gyf.immersionbar:immersionbar:$versions.immersionbar"
- deps.immersionbar_components = "com.gyf.immersionbar:immersionbar-components:$versions.immersionbar"
- deps.room_runtime = "android.arch.persistence.room:runtime:$versions.room"
- deps.room_compiler = "android.arch.persistence.room:compiler:$versions.room"
- deps.loopView = "com.weigan:loopView:$versions.loopView"
- deps.matisse = "com.zhihu.android:matisse:$versions.matisse"
- deps.aliyun_oss = "com.aliyun.dpa:oss-android-sdk:$versions.aliyun_oss"
- deps.smarttablayout = "com.ogaclejapan.smarttablayout:library:$versions.smarttablayout"
- deps.smarttablayout_ogaclejapan = "com.ogaclejapan.smarttablayout:utils-v4:$versions.smarttablayout_ogaclejapan"
- deps.layoutManagerGroup = "com.github.DingMouRen:LayoutManagerGroup:$versions.layoutManagerGroup"
- deps.niceImageView = "com.github.SheHuan:NiceImageView:$versions.niceImageView"
- deps.pagerlayoutmanager = "com.gcssloop.recyclerview:pagerlayoutmanager:$versions.pagerlayoutmanager"
- deps.flexbox = "com.google.android:flexbox:$versions.flexbox"
- deps.smartrefresh = "com.scwang.smartrefresh:SmartRefreshLayout:$versions.smartrefresh"
- deps.smartRefreshHeader = "com.scwang.smartrefresh:SmartRefreshHeader:$versions.smartrefresh"
- deps.flowlayout = "com.hyman:flowlayout-lib:$versions.flowlayout"
- deps.luban = "top.zibin:Luban:$versions.luban"
- deps.exoplayer = "com.google.android.exoplayer:exoplayer-core:$versions.exoplayer"
- deps.exoplayer_ui = "com.google.android.exoplayer:exoplayer-ui:$versions.exoplayer"
- deps.danmaku = "com.github.ctiao:DanmakuFlameMaster:$versions.danmaku"
- deps.viewpager2 = "androidx.viewpager2:viewpager2:1.0.0"
- deps.pickerView = "com.contrarywind:Android-PickerView:$versions.pickerView"
- deps.room_runtime = "androidx.room:room-runtime:$versions.database_room"
- deps.room_rxjava2 = "androidx.room:room-compiler:$versions.database_room"
- deps.room_compiler = "androidx.room:room-rxjava2:$versions.database_room"
- deps.filedownloader = "com.liulishuo.filedownloader:library:$versions.filedownloader"
- deps.youth_banner = "com.youth.banner:banner:$versions.youth_banner"
- deps.calligraphy = "uk.co.chrisjenx:calligraphy:$versions.calligraphy"
- deps.gif_lib = "pl.droidsonroids.gif:android-gif-drawable:$versions.gif_lib"
- deps.easySwipeMenuLayout = "com.github.anzaizai:EasySwipeMenuLayout:$versions.easySwipeMenuLayout"
- deps.fillblankview = "com.xw.repo:fillblankview:$versions.fillblankview"
- deps.videoProcessor = "com.github.yellowcath:VideoProcessor:$versions.videoProcessor"
- deps.magicIndicator = "com.github.hackware1993:MagicIndicator:$versions.magicIndicator"
- deps.universalimageloader = "com.nostra13.universalimageloader:universal-image-loader:$versions.universalimageloader"
- deps.pageindicatorview = "com.romandanylyk:pageindicatorview:$versions.pageindicatorview"
- ext.deps = deps
- def build_versions = [:]
- build_versions.min_sdk = 21
- build_versions.target_sdk = 29
- build_versions.build_tools = "29.0.3"
- build_versions.version_code = 31
- build_versions.version_name = "2.3.1"
- ext.build_versions = build_versions
- def addRepos(RepositoryHandler handler) {
- handler.google()
- handler.jcenter()
- handler.mavenCentral()
- //Add the JitPack repository
- handler.maven { url "https://jitpack.io" }
- handler.maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
- }
- ext.addRepos = this.&addRepos
|