| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- plugins {
- id 'com.android.application'
- id 'org.jetbrains.kotlin.android'
- }
- android {
- namespace 'com.yihucha.hbyhc'
- compileSdk 33
- defaultConfig {
- applicationId "com.yihucha.hbyhc"
- minSdk 21
- targetSdk 33
- versionCode 2001
- versionName "20.0.1"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- ndk {
- //选择要添加的对应cpu类型的.so库。
- //热修复支持五种
- abiFilters 'arm64-v8a', 'armeabi', 'armeabi-v7a', 'x86', 'x86_64'
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_11
- targetCompatibility JavaVersion.VERSION_11
- }
- viewBinding {
- enabled = true
- }
- dependenciesInfo {
- includeInBundle false
- includeInApk false
- }
- applicationVariants.configureEach { variant ->
- variant.outputs.all { output ->
- def outputFile = output.outputFile
- if (outputFile != null && outputFile.name.endsWith('.apk')) {
- //打包的apk包名变为了
- //app-具体的渠道名-release-1.0.apk
- // def fileName = outputFile.name.replace(".apk", ".apk")
- // outputFileName = fileName
- //Cxb_xiaomi_20200808_V3.0.0.apk
- def fileName = outputFile.name.replace("app-", "").replace("-release.apk", "")
- outputFileName = "XFB_" + fileName + "_" + new Date().format("yyyyMMdd") + "_V" + defaultConfig.versionName + ".apk"
- }
- }
- }
- signingConfigs {
- debug {
- storeFile file('yihucha.keystore')
- storePassword "yihucha123"
- keyAlias "yihucha"
- keyPassword "yihucha123"
- }
- release {
- storeFile file('yihucha.keystore')
- storePassword "yihucha123"
- keyAlias "yihucha"
- keyPassword "yihucha123"
- }
- /* debug {
- storeFile file('chuxubao.keystore')
- storePassword "tdba123"
- keyAlias "chuxubao"
- keyPassword "tdba123"
- }*/
- }
- }
- dependencies {
- configurations {
- configureEach {
- exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx'
- }
- }
- implementation 'androidx.appcompat:appcompat:1.4.1'
- implementation 'com.google.android.material:material:1.5.0'
- implementation project(path: ':easyPhotos')
- testImplementation 'junit:junit:4.13.2'
- androidTestImplementation 'androidx.test.ext:junit:1.1.3'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
- implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
- implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
- // implementation 'androidx.navigation:navigation-fragment:2.3.5'
- // implementation 'androidx.navigation:navigation-ui:2.3.5'
- // implementation 'org.chromium.net:cronet-api:76.3809.111'
- implementation(fileTree("libs"))
- //图片加载框架
- //Glide
- // https://github.com/bumptech/glide
- api 'com.github.bumptech.glide:glide:4.12.0'
- annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
- api 'jp.wasabeef:glide-transformations:4.3.0'
- //微信
- // api 'com.tencent.mm.opensdk:wechat-sdk-android:+'
- api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
- //屏幕适配
- implementation 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1'
- //网络请求
- //retrofit2
- implementation 'com.squareup.retrofit2:retrofit:2.9.0'
- implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
- //日志拦截器
- implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
- implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
- //rxjava
- implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
- implementation 'io.reactivex.rxjava2:rxjava:2.2.12'
- //gson
- implementation 'com.google.code.gson:gson:2.8.7'
- //腾讯MMKV
- implementation 'com.tencent:mmkv:1.2.11'
- //轮播图
- implementation 'io.github.youth5201314:banner:2.2.2'
- //刷新
- implementation 'com.lcodecorex:tkrefreshlayout:1.0.7'
- //AndroidUtilCode 包含常用工具库
- implementation 'com.blankj:utilcodex:1.31.0'
- //状态栏
- // After AndroidX
- implementation('com.github.niorgai:StatusBarCompat:2.3.3', {
- exclude group: 'androidx.appcompat:appcompat'
- exclude group: 'com.google.android.material:material'
- })
- //适配器
- implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
- //搜索历史 流式布局 tab选项
- // implementation 'com.hyman:flowlayout-lib:1.1.2'
- implementation project(':flowlayout-lib')
- //json
- implementation 'com.alibaba:fastjson:1.1.54.android'
- //视频播放 https://www.jianshu.com/p/8f1af9790c69
- // implementation 'cn.jzvd:jiaozivideoplayer:6.2.12'
- //瀑布流LayoutManager
- implementation 'com.google.android.flexbox:flexbox:3.0.0'
- //okhttp网络下载
- implementation 'com.squareup.okhttp3:okhttp:3.14.7'
- //地址联动
- implementation 'com.github.gamekonglee:regionSelector:2.0'
- //dialog
- implementation 'com.github.liys666666:LDialog:V2.1.2'
- //事件传递
- implementation 'org.greenrobot:eventbus:3.0.0'
- //时间选择器
- implementation 'com.contrarywind:Android-PickerView:4.1.9'
- //评分
- implementation 'com.github.KaelLi1989:NiceRatingBar:1.0.0'
- //图片压缩
- // implementation 'com.github.ZS-ZhangsShun:EasyImageCompressor:1.0.7'
- //支付宝
- api 'com.alipay.sdk:alipaysdk-android:+@aar'
- //权限申请
- implementation 'com.yanzhenjie:permission:2.0.3' //添加依赖
- //版本更新
- //----------AndroidX 版本
- //app-updater
- implementation 'com.github.jenly1314.AppUpdater:app-updater:1.1.3'
- //app-dialog
- implementation 'com.github.jenly1314.AppUpdater:app-dialog:1.1.3'
- // For Java
- implementation 'androidx.work:work-runtime:2.7.1'
- //二维码
- implementation 'com.google.zxing:core:3.3.0'
- //日历选择开始和结束时间
- implementation 'com.github.TurnTears:CalendarRangeSelect:1.1.1'
- //京东联盟
- api project(':jd_sdk_lib')
- //穿山甲
- // implementation 'com.pangle.cn:ads-sdk-pro:4.4.0.9'
- // 友盟基础组件库(所有友盟业务SDK都依赖基础组件库)
- implementation 'com.umeng.umsdk:common:9.5.2'// (必选)
- implementation 'com.umeng.umsdk:asms:1.6.3'// 必选
- implementation 'com.umeng.umsdk:abtest:1.0.1'//使用U-App中ABTest能力,可选
- implementation 'com.umeng.umsdk:apm:1.7.0'// U-APM产品包依赖(必选)
- //友盟Push依赖
- api 'com.umeng.umsdk:push:6.5.4'
- implementation 'com.umeng.umsdk:share-core:7.2.1'//分享核心库,必选
- implementation 'com.umeng.umsdk:share-board:7.2.1'//分享面板功能,可选
- implementation 'com.umeng.umsdk:share-wx:7.2.1'//微信完整版
- implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0'//微信官方依赖库,必选
- //Android数据库LitePal
- implementation 'org.litepal.android:java:3.0.0'
- //WebViewJavascriptBridge实现JS与java安全交互
- implementation 'com.github.lzyzsd:jsbridge:1.0.4'
- //文字轮播
- implementation 'com.sunfusheng:marqueeview:1.3.3'
- //毕加索图片加载
- implementation 'com.squareup.picasso:picasso:2.8'
- //解析html代码
- implementation 'org.jsoup:jsoup:1.9.2'
- //BASE加密
- implementation "commons-codec:commons-codec:1.10"
- //MaterialButton
- implementation 'com.google.android.material:material:1.2.1'
- //加载gif
- implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.15'
- //wheelview
- // implementation 'com.contrarywind:Android-WheelView:1.1.8'
- implementation('com.fasterxml.jackson.core:jackson-core:2.11.1')
- implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.1')
- implementation('com.fasterxml.jackson.core:jackson-databind:2.11.1')
- //zxing 二维码扫描
- implementation 'com.journeyapps:zxing-android-embedded:3.5.0'
- //toast 吐司通知框架
- implementation 'com.github.getActivity:Toaster:12.6'
- }
|