pdlivexp/common/build.gradle

184 lines
6.0 KiB
Groovy
Raw Normal View History

2022-07-18 15:31:45 +08:00
apply plugin: 'com.android.library'
apply plugin: 'img-optimizer'
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
buildToolsVersion rootProject.ext.android.buildToolsVersion
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 {
abiFilters "armeabi-v7a", "arm64-v8a"
}
}
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 {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
repositories {
flatDir {
dirs 'libs', '../libs'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
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"]
//七牛云存储
api rootProject.ext.dependencies["qiniu-sdk"]
//图片裁剪
api rootProject.ext.dependencies["ucrop"]
//腾讯定位地图sdk
api files('libs/TencentLocationSdk_v6.2.5.3.jar')
api files('libs/TencentMapSDK_1.2.8.1.jar')
//下拉刷新上拉加载
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
//谷歌内购
api 'com.android.billingclient:billing:3.0.0'
2022-07-18 15:31:45 +08:00
implementation 'com.teprinciple:updateapputils:2.3.0'
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'
2022-07-25 15:54:47 +08:00
api 'cn.rongcloud.sdk:rtc_lib:5.2.0' // 音视频通话基础能力库
2022-07-18 15:31:45 +08:00
//此处以集成 5.1.2 版本为例
2022-07-25 15:54:47 +08:00
api 'cn.rongcloud.sdk:im_lib:5.1.3.10' // 即时通讯基础能力库
api 'cn.rongcloud.sdk:im_kit:5.1.3.10' // 即时通讯 UI 基础组件
2022-07-25 17:56:21 +08:00
//融云小视频模块
api 'cn.rongcloud.sdk:sight:5.1.2'
2022-07-20 15:18:42 +08:00
api 'com.facebook.android:facebook-login:8.2.0'
2022-07-18 15:31:45 +08:00
api 'com.facebook.android:facebook-android-sdk:[5,6)'
api('com.twitter.sdk.android:twitter-core:3.1.1@aar') {
transitive = true
}
api 'com.linecorp:linesdk:5.0.1'
api 'com.adjust.sdk:adjust-android:4.30.1'
api 'com.android.installreferrer:installreferrer:2.2'
api 'com.google.firebase:firebase-analytics:15.0.0'
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解析
api 'com.squareup.retrofit2:converter-gson:2.3.0'
//rxjava2库
api 'io.reactivex.rxjava2:rxjava:2.0.1'
api 'io.reactivex.rxjava2:rxandroid:2.0.1'
2022-08-05 18:16:48 +08:00
//loading样式库
api 'com.wang.avi:library:2.1.3'
//黄油刀,注解绑定视图
api "com.jakewharton:butterknife:10.0.0"
annotationProcessor "com.jakewharton:butterknife-compiler:10.0.0"
2022-07-18 15:31:45 +08:00
}