//android依赖的一些基本配置
//版本号定义
//max 2146
def versionMajor = 1
//max 999
def versionMinor = 1
//max 999
def versionBuild = 133
project.ext {
//基础配置
android = [
compileSdkVersion : 28,
buildToolsVersion : "28.0.3",
minSdkVersion : 21,
targetSdkVersion : 26,
sourceCompatibility: JavaVersion.VERSION_1_8,
targetCompatibility: JavaVersion.VERSION_1_8,
versionCode : versionMajor * 1000000 + versionMinor * 1000 + versionBuild * 1,
versionName : "${versionMajor}.${versionMinor}.${versionBuild}"
]
//通用依赖
dependencies = [
"x-appcompat" : "androidx.appcompat:appcompat:1.1.0", //https://developer.android.com/jetpack/androidx/versions?hl=en
"x-recyclerview" : "androidx.recyclerview:recyclerview:1.1.0",
"x-swiperefreshlayout" : "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0",
"x-cardview" : "androidx.cardview:cardview:1.0.0",
"x-gridlayout" : "androidx.gridlayout:gridlayout:1.0.0",
"x-documentfile" : "androidx.documentfile:documentfile:1.0.1",
"x-localbroadcastmanager" : "androidx.localbroadcastmanager:localbroadcastmanager:1.0.0",
"x-constraint-layout" : 'androidx.constraintlayout:constraintlayout:1.1.3',
"x-lifecycle-common-java8" : 'androidx.lifecycle:lifecycle-common-java8:2.2.0',
"x-lifecycle-extensions" : 'androidx.lifecycle:lifecycle-extensions:2.2.0',
"x-multidex" : 'androidx.multidex:multidex:2.0.1', //https://developer.android.com/studio/build/multidex
"x-preference" : 'androidx.preference:preference:1.1.1',
"design" : "com.google.android.material:material:1.0.0",
"espresso" : 'androidx.test.espresso:espresso-core:3.1.0',
"junit" : 'junit:junit:4.12',
"butterknife" : 'com.jakewharton:butterknife:10.2.0', //https://github.com/JakeWharton/butterknife
"butterknife-compiler" : 'com.jakewharton:butterknife-compiler:10.2.0',
"eventbus" : 'org.greenrobot:eventbus:3.1.1', //https://github.com/greenrobot/EventBus
"rxjava" : 'io.reactivex.rxjava2:rxjava:2.2.13', //https://github.com/ReactiveX/RxJava
"rxandroid" : 'io.reactivex.rxjava2:rxandroid:2.1.1', //https://github.com/ReactiveX/RxAndroid
"rxkotlin" : 'io.reactivex.rxjava2:rxkotlin:2.4.0',
"retrofit2:retrofit" : 'com.squareup.retrofit2:retrofit:2.6.1', //https://github.com/square/retrofit
"retrofit2:converter-gson" : 'com.squareup.retrofit2:converter-gson:2.6.1',
"retrofit2:adapter-rxjava2" : 'com.squareup.retrofit2:adapter-rxjava2:2.6.1',
"fastjson" : 'com.alibaba:fastjson:1.2.62', //https://github.com/alibaba/fastjson
"Gson" : 'com.google.code.gson:gson:2.8.5', //https://github.com/google/gson 注意:新版本会有依赖冲突
"Okhttp" : 'com.squareup.okhttp3:okhttp:3.12.1', //https://github.com/square/okhttp 有新版本,但和retrofit不匹配
"OkhttpLogInterceptor" : 'com.squareup.okhttp3:logging-interceptor:3.12.1',
"picasso" : 'com.squareup.picasso:picasso:2.71828', //https://github.com/square/picasso
"glide" : 'com.github.bumptech.glide:glide:3.8.0', //https://github.com/bumptech/glide 由于sobotchat原因不好升级
"sobotsupport-glidev4" : 'com.sobot.chat:sobotsupport-glidev4:1.0.1',
"universal-image-loader" : 'com.nostra13.universalimageloader:universal-image-loader:1.9.5',
"shaHex" : 'commons-codec:commons-codec:1.9',
"photoview" : 'com.github.chrisbanes.photoview:library:1.2.4', //https://github.com/chrisbanes/PhotoView 老版本稳定,无需升
"mockitoAndroid" : 'org.mockito:mockito-android:2.7.15',
"mockito" : 'org.mockito:mockito-core:1.10.19',
"mockito-inline" : 'org.mockito:mockito-inline:1.10.19',
"mockito-all" : 'org.mockito:mockito-all:1.10.19',
"robolectric" : 'org.robolectric:robolectric:3.1',
"permission" : 'com.yanzhenjie:permission:2.0.0-rc12', //https://github.com/yanzhenjie/AndPermission 以后版本需要anroidx
"keyboardevent" : 'net.yslibrary.keyboardvisibilityevent:keyboardvisibilityevent:2.1.0', //https://github.com/yshrsmz/KeyboardVisibilityEvent 以后版本需要anroidx
"umenganalytics" : 'com.umeng.analytics:analytics:6.1.4',
"umengsdkcommon" : 'com.umeng.sdk:common:1.5.3',
"arouter-api" : 'com.alibaba:arouter-api:1.5.0',
"arouter-compiler" : 'com.alibaba:arouter-compiler:1.2.2',
"qiyukf-unicorn" : 'com.qiyukf.unicorn:unicorn:4.2.1',
"alicloud-android-push" : 'com.aliyun.ams:alicloud-android-push:3.1.4',
"SmartRefreshLayout" : 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0', //https://github.com/scwang90/SmartRefreshLayout
"SmartRefreshHeader" : 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0',
"circleimageview" : 'de.hdodenhof:circleimageview:3.0.1', //https://github.com/hdodenhof/CircleImageView
"retrofit-url-manager" : 'me.jessyan:retrofit-url-manager:1.4.0', //https://github.com/JessYanCoding/RetrofitUrlManager
"banner" : 'com.youth.banner:banner:1.4.10', //https://github.com/youth5201314/banner
"sku" : 'com.wuhenzhizao:sku:1.0.4',
"gravitysnaphelper" : 'com.github.rubensousa:gravitysnaphelper:2.2.0', //https://github.com/rubensousa/GravitySnapHelper
"leakcanary-android" : 'com.squareup.leakcanary:leakcanary-android:2.4', //https://github.com/square/leakcanary
"blockcanary-android" : 'com.github.markzhai:blockcanary-android:1.5.0', //https://github.com/markzhai/AndroidPerformanceMonitor
"blockcanary-android-no-op" : 'com.github.markzhai:blockcanary-no-op:1.5.0',
"float-window" : 'com.github.yhaolpz:FloatWindow:1.0.9', //https://github.com/yhaolpz/FloatWindow
"lottie" : 'com.airbnb.android:lottie:2.7.0', //https://github.com/airbnb/lottie-android
"rxlifecycle2-components" : 'com.trello.rxlifecycle3:rxlifecycle-components:3.1.0', //https://github.com/trello/RxLifecycle
"rxlifecycle2-navi" : 'com.trello.rxlifecycle3:rxlifecycle-navi:3.1.0',
"stetho" : 'com.facebook.stetho:stetho:1.5.1', //https://github.com/facebook/stetho
"stetho-okhttp" : 'com.facebook.stetho:stetho-okhttp3:1.5.1',
"kotlin-stdlib-jdk7" : 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.0',
"simplifyspan" : 'com.github.iwgang:simplifyspan:2.1', //https://github.com/iwgang/SimplifySpan
"map_3d" : 'com.amap.api:3dmap:6.3.0',
"map_location" : 'com.amap.api:location:4.1.0',
"map_search" : 'com.amap.api:search:6.1.0',
"MZBannerView" : 'com.github.pinguo-zhouwei:MZBannerView:v2.0.2', //https://github.com/pinguo-zhouwei/MZBannerView
"zxing" : 'com.google.zxing:core:3.4.1', //https://github.com/zxing 3.3.4
"recyclerview-swipe" : 'com.yanzhenjie:recyclerview-swipe:1.2.3', //https://github.com/yanzhenjie/SwipeRecyclerView 有新版本,暂不升级
"pageindicatorview" : 'com.romandanylyk:pageindicatorview:1.0.3', //https://github.com/romandanylyk/PageIndicatorView
"jacoco" : 'org.jacoco:org.jacoco.agent:0.7.5.201505241946',
"bugly" : 'com.tencent.bugly:crashreport:3.3.9', //https://bugly.qq.com/v2/sdkDownload
"buglynative" : 'com.tencent.bugly:nativecrashreport:3.9.0', //https://bugly.qq.com/v2/sdkDownload
"aspectjrt" : 'org.aspectj:aspectjrt:1.8.13',
"alicloud-android-hotfix" : 'com.aliyun.ams:alicloud-android-hotfix:3.2.9',
"sensor-analysis" : 'com.sensorsdata.analytics.android:SensorsAnalyticsSDK:4.4.8',
"react-native" : 'com.facebook.react:react-native:0.61.2',
"ejml" : 'org.ejml:all:0.29',
"commons-lang3" : 'org.apache.commons:commons-lang3:3.5',
"wifiutils" : 'com.thanosfisherman.wifiutils:wifiutils:1.5.0',
"switchbutton" : 'com.kyleduo.switchbutton:library:2.0.0',
"MPAndroidChart" : 'com.github.PhilJay:MPAndroidChart:v3.1.0',
"room-runtime" : 'androidx.room:room-runtime:2.2.3',
"room-rxjava2" : 'androidx.room:room-rxjava2:2.2.3',
"room-compiler" : 'androidx.room:room-compiler:2.2.3',
"room-ktx" : 'androidx.room:room-ktx:2.2.3',
"room-guava" : 'androidx.room:room-guava:2.2.3',
"room-testing" : 'androidx.room:room-testing:2.2.3',
"paging-runtime" : 'androidx.paging:paging-runtime:2.1.1',
"paging-rxjava2" : 'androidx.paging:paging-rxjava2:2.1.1',
"paging-common" : 'androidx.paging:paging-common:2.1.1',
"commons-io" : 'commons-io:commons-io:2.4',
"jobqueue" : 'com.birbit:android-priority-jobqueue:2.0.1',
"aliyun-oss" : 'com.aliyun.dpa:oss-android-sdk:2.9.5',
"android-picker" : 'com.contrarywind:Android-PickerView:4.1.9',
"flexbox" : 'com.google.android.flexbox:flexbox:3.0.0'
"alicloud-android-hotfix" : 'com.aliyun.ams:alicloud-android-hotfix:3.2.13',
"react-native" : 'com.facebook.react:react-native:0.61.4',
"android-third-push" : 'com.aliyun.ams:alicloud-android-third-push:3.0.10@aar',
"huawei-push" : 'com.aliyun.ams:huawei-push:2.6.3.305',
"huawei-push-base" : 'com.aliyun.ams:huawei-push-base:2.6.3.305',
"meizu-push" : 'com.aliyun.ams:meizu-push:3.8.3-fix',
"jsbridge" : 'com.github.lzyzsd:jsbridge:1.0.4',
"logger" : 'com.orhanobut:logger:2.2.0'
//"javolution" : 'org.javolution:javolution-core-java:4.3.1'
]
}
其他:
百度地图导航全家桶。
讯飞离线语音唤醒识别播报。
向日葵远程控制。
梦想CAD。
技术栈
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。