pdlivexp/common/build.gradle

264 lines
8.7 KiB
Groovy
Raw Permalink Normal View History

2022-07-18 15:31:45 +08:00
apply plugin: 'com.android.library'
apply plugin: 'img-optimizer'
2024-04-18 09:47:38 +08:00
apply plugin: 'kotlin-android'
apply from: "../package_config.gradle"
2024-07-13 10:37:37 +08:00
2022-07-18 15:31:45 +08:00
android {
2024-07-13 10:37:37 +08:00
namespace "com.yunbao.common"
compileSdk rootProject.ext.android.compileSdkVersion
publishNonDefault true
2024-07-13 10:37:37 +08:00
2022-07-18 15:31:45 +08:00
defaultConfig {
minSdkVersion rootProject.ext.android.minSdkVersion
targetSdkVersion rootProject.ext.android.targetSdkVersion
versionCode rootProject.ext.android.versionCode
versionName rootProject.ext.android.versionName
manifestPlaceholders = rootProject.ext.manifestPlaceholders
ndk {
2024-07-13 10:37:37 +08:00
// abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64"
if (rootProject.ext.manifestPlaceholders.isGooglePlay == 0) {
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
} else {
abiFilters "armeabi-v7a", "arm64-v8a"
}
}
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
2022-07-18 15:31:45 +08:00
}
}
packagingOptions {
pickFirst "lib/armeabi/libyuvutils.so"
pickFirst "lib/arm64-v8a/libyuvutils.so"
pickFirst "lib/armeabi-v7a/libyuvutils.so"
pickFirst "lib/armeabi/libyuvtools.so"
pickFirst "lib/arm64-v8a/libyuvtools.so"
pickFirst "lib/armeabi-v7a/libyuvtools.so"
exclude "lib/arm64-v8a/libmmcv_api_handgesture.so"
exclude "lib/arm64-v8a/libmmcv_api_express.so"
exclude "lib/arm64-v8a/libMediaEncoder.so"
exclude "lib/arm64-v8a/libarcore_sdk_c.so"
exclude "lib/arm64-v8a/libmediadecoder.so"
exclude "lib/arm64-v8a/libMediaMuxer.so"
exclude "lib/arm64-v8a/libarcore_sdk_jni.so"
exclude "lib/arm64-v8a/libMediaUtils.so"
exclude "lib/arm64-v8a/libcosmosffmpeg.so"
}
aaptOptions {
cruncherEnabled = false
useNewCruncher = false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
compileOptions {
2024-07-13 10:37:37 +08:00
sourceCompatibility JavaVersion.VERSION_18
targetCompatibility JavaVersion.VERSION_18
}
buildFeatures {
buildConfig = true
2022-07-18 15:31:45 +08:00
}
}
repositories {
flatDir {
dirs 'libs', '../libs'
}
}
2022-09-19 13:51:59 +08:00
2024-07-13 10:37:37 +08:00
2022-07-18 15:31:45 +08:00
dependencies {
2024-07-13 10:37:37 +08:00
annotationProcessor rootProject.ext.dependencies["arouter-compiler"]
2022-07-18 15:31:45 +08:00
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
2022-10-08 18:09:37 +08:00
api files('libs/jcc-bate-0.7.3.jar')
compileOnly fileTree(dir: '../libs', include: ['*.aar'])
2022-07-18 15:31:45 +08:00
api rootProject.ext.dependencies["appcompat-androidx"]
api rootProject.ext.dependencies["recyclerview-androidx"]
api rootProject.ext.dependencies["cardview-androidx"]
api rootProject.ext.dependencies["design"]
api rootProject.ext.dependencies["multidex"]
api "androidx.constraintlayout:constraintlayout:2.1.4"
// To use constraintlayout in compose
api "androidx.constraintlayout:constraintlayout-compose:1.0.1"
2022-07-25 14:06:35 +08:00
implementation 'androidx.lifecycle:lifecycle-common-java8:2.4.0'
2022-07-18 15:31:45 +08:00
api files('../libs/commons-io-1.4.jar')
//okHttp网络请求
api rootProject.ext.dependencies["okhttp"]
//OkGo 是对okHttp的封装
api rootProject.ext.dependencies["okgo"]
//OkGo上传下载扩展库
api rootProject.ext.dependencies["okserver"]
//fastJson解析json
api rootProject.ext.dependencies["fastjson"]
//eventbus事件总线
api rootProject.ext.dependencies["eventbus"]
//使用Glide加载图片
api rootProject.ext.dependencies["glide"]
//一个基于Glide的transformation库,拥有裁剪,着色,模糊,滤镜等多种转换效果
api rootProject.ext.dependencies["glide-transformations"]
//带圆角边框的的ImageView
api rootProject.ext.dependencies["roundedimageview"]
//gif库播放礼物gif用
api rootProject.ext.dependencies["gif-drawable"]
//svga播放器
//api rootProject.ext.dependencies["SVGAPlayer"]
implementation 'com.squareup.wire:wire-runtime:4.4.1'
2022-07-18 15:31:45 +08:00
//七牛云存储
api rootProject.ext.dependencies["qiniu-sdk"]
//图片裁剪
api rootProject.ext.dependencies["ucrop"]
//腾讯定位地图sdk
2023-07-14 10:18:50 +08:00
// api files('libs/TencentLocationSdk_v6.2.5.3.jar')
// api files('libs/TencentMapSDK_1.2.8.1.jar')
2022-07-18 15:31:45 +08:00
//下拉刷新上拉加载
api rootProject.ext.dependencies["smartRefreshLayout"]
//ViewPager指示器
api rootProject.ext.dependencies["magicIndicator"]
//阿里 ARouter
api rootProject.ext.dependencies["arouter"]
//轮播图
api rootProject.ext.dependencies["banner"]
//鲁班
api rootProject.ext.dependencies["Luban"]
//一个Picker控件选择日期城市用
api files('libs/AndroidPicker-1.5.6.jar')
//播放动画
api 'com.airbnb.android:lottie:2.7.0'
//引导页
api 'com.binioter:guideview:1.0.0'
//桌面app小红点
api "me.leolin:ShortcutBadger:1.1.22@aar"
//谷歌支付
2022-07-20 14:22:26 +08:00
//谷歌内购
2023-11-27 17:12:27 +08:00
//api 'com.android.billingclient:billing:5.0.0'
//api 'com.google.firebase:firebase-messaging:23.0.6'
//api 'com.google.firebase:firebase-analytics:21.1.0'
2022-07-18 15:31:45 +08:00
api 'com.squareup.picasso:picasso:2.5.2'
api "com.immomo.cosmos.mediax:beautyutils:2.2.1_01071700"
api files('libs/liteavsdk.jar')
api 'com.xw.repo:bubbleseekbar:3.20-lite'
//腾讯im
api 'com.tencent.imsdk:imsdk-plus:5.4.666'
api 'com.google.code.gson:gson:2.8.8'
2024-07-13 10:37:37 +08:00
api 'cn.rongcloud.sdk:rtc_lib:5.7.0' // 音视频通话基础能力库
2022-12-10 13:41:38 +08:00
//此处以集成 5.1.2 版本为例
2024-07-13 10:37:37 +08:00
api 'cn.rongcloud.sdk:im_lib:5.7.0'
2022-12-10 13:41:38 +08:00
2022-09-29 15:06:55 +08:00
//此处以集成 5.1.2 版本为例
2024-07-13 10:37:37 +08:00
api 'cn.rongcloud.sdk:im_kit:5.7.0' // 即时通讯 UI 基础组件
2022-07-25 17:56:21 +08:00
//融云小视频模块
2024-07-13 10:37:37 +08:00
api 'cn.rongcloud.sdk:sight:5.7.0'
2023-02-09 10:04:13 +08:00
api 'com.facebook.android:facebook-android-sdk:15.2.0'
implementation 'com.facebook.android:facebook-android-sdk:15.2.0'
2022-07-18 15:31:45 +08:00
api('com.twitter.sdk.android:twitter-core:3.1.1@aar') {
transitive = true
}
api 'com.linecorp:linesdk:5.0.1'
api 'com.android.installreferrer:installreferrer:2.2'
2022-07-29 16:04:12 +08:00
//Retrofit2库
api 'com.squareup.retrofit2:retrofit:2.3.0'
api 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
//gson解析
2023-05-08 13:29:24 +08:00
api 'com.squareup.retrofit2:converter-gson:2.3.0'//混淆
implementation "io.reactivex.rxjava2:rxjava:2.2.3"//混淆
2022-08-12 10:31:08 +08:00
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
api 'com.jakewharton.rxbinding3:rxbinding:3.1.0'
2022-08-05 18:16:48 +08:00
//loading样式库
api 'com.wang.avi:library:2.1.3'
2023-11-27 17:12:27 +08:00
2022-08-26 13:00:45 +08:00
// api 'com.huawei.hms:push:4.0.2.300'
2022-09-28 13:43:53 +08:00
implementation 'com.github.tajchert:WaitingDots:0.6.1'
2022-10-17 10:13:17 +08:00
//悬浮窗
api 'com.github.princekin-f:EasyFloat:2.0.4'
2022-10-20 17:49:04 +08:00
api files('libs/Msc.jar')
2023-12-22 14:32:18 +08:00
api 'com.github.li-xiaojun:XPopup:2.10.0'
2023-03-30 14:16:50 +08:00
api 'com.github.shenbengit:PagerGridLayoutManager:1.1.7'
2023-06-25 09:51:29 +08:00
//选择器
api 'com.github.gzu-liyujiang.AndroidPicker:Common:4.1.11'
api 'com.github.gzu-liyujiang.AndroidPicker:WheelView:4.1.11'
2023-07-25 14:08:52 +08:00
//自定义圆角图片
api 'com.makeramen:roundedimageview:2.3.0'
2023-08-22 14:03:04 +08:00
// 友盟统计SDK
2024-07-13 10:37:37 +08:00
// api(name: 'umeng-common-9.6.8+000', ext: 'aar')
//高级运营分析功能依赖库使用卸载分析、开启反作弊能力请务必集成以免影响高级功能使用。common需搭配v9.6.3及以上版本asms需搭配v1.7.0及以上版本。需更新隐私声明。
// 标准版本SudMGP SDK
api 'tech.sud.mgp:SudMGP:1.3.3.1158'
// 多语言语音识别扩展库(可选)
api 'tech.sud.mgp:SudASR:1.3.3.1158'
2024-01-03 18:28:49 +08:00
//侧滑删除
api 'com.yanzhenjie.recyclerview:x:1.3.2'
2023-11-27 17:12:27 +08:00
2024-07-13 10:37:37 +08:00
//华为支付插件包
//api project(':lib_huawei')
2024-07-13 10:37:37 +08:00
//google插件包
api project(':lib_google')
2024-07-13 10:37:37 +08:00
//samsung插件包
//api project(':IAP6Helper')
2023-11-27 17:12:27 +08:00
2024-07-13 10:37:37 +08:00
//時間選擇器
api 'com.contrarywind:Android-PickerView:4.1.9'
2023-11-27 17:12:27 +08:00
2024-07-13 10:37:37 +08:00
//瀑布流
api 'com.wuxiaolong.pullloadmorerecyclerview:library:1.1.2'
//时间选择器
api 'com.contrarywind:Android-PickerView:4.1.9'
//UI框架
api 'com.github.xuexiangjys:XUI:1.1.6'
api 'com.github.xuexiangjys.XUtil:xutil-core:2.0.0'
2023-12-07 17:46:22 +08:00
2024-07-13 10:37:37 +08:00
//ExoPlayer,腾讯的播放器不支持无缝切换
api 'com.google.android.exoplayer:exoplayer:2.18.2'
api 'com.google.android.exoplayer:exoplayer-core:2.18.2@aar'
2024-02-22 15:26:21 +08:00
//文字渐变色
api 'com.github.FlyJingFish:GradientTextView:1.2.4'
//轮播 一屏显示多个
api 'com.github.xiaohaibin:XBanner:androidx_v1.2.6'
2024-04-10 18:31:00 +08:00
//声网SDK
2024-04-18 09:47:38 +08:00
//api 'io.agora.rtc:agora-special-full:4.2.6.245'
2024-07-13 10:37:37 +08:00
api 'com.xj.marqueeView:marqueeView:0.1.20'
2024-06-29 10:11:42 +08:00
api rootProject.ext.dependencies["blank-utilcode"]
2022-07-18 15:31:45 +08:00
}