v416
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
namespace 'com.netease.nim.uikit'
|
||||
compileSdkVersion 30
|
||||
defaultConfig {
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 30
|
||||
|
||||
renderscriptTargetApi 30
|
||||
renderscriptSupportModeEnabled true
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
java.srcDirs = ['src']
|
||||
resources.srcDirs = ['src']
|
||||
aidl.srcDirs = ['src']
|
||||
renderscript.srcDirs = ['src']
|
||||
res.srcDirs = ['res', 'res-ptr2', 'res-chatroom']
|
||||
assets.srcDirs = ['assets']
|
||||
jniLibs.srcDirs = ['libs']
|
||||
}
|
||||
}
|
||||
|
||||
// AGP 8.0+ 需要显式配置资源可见性,确保资源可以被依赖模块访问
|
||||
buildFeatures {
|
||||
androidResources = true
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility 1.8
|
||||
targetCompatibility 1.8
|
||||
}
|
||||
|
||||
packagingOptions{
|
||||
doNotStrip '*/mips/*.so'
|
||||
doNotStrip '*/mips64/*.so'
|
||||
}
|
||||
|
||||
// dataBinding {
|
||||
// enabled = true
|
||||
// }
|
||||
buildFeatures {
|
||||
dataBinding = true
|
||||
}
|
||||
//强制使用相同版本的库
|
||||
configurations.all {
|
||||
|
||||
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
|
||||
def requested = details.requested
|
||||
if (requested.group == 'com.github.bumptech.glide') { //替换成glide
|
||||
if (!requested.name.startsWith("multidex")) {
|
||||
details.useVersion '4.1.1'//替换成glide
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api fileTree(dir: 'libs', include: '*.jar')
|
||||
api('androidx.appcompat:appcompat:1.0.0')
|
||||
api('androidx.legacy:legacy-support-v4:1.0.0')
|
||||
api('com.google.android.material:material:1.0.0')
|
||||
api('androidx.constraintlayout:constraintlayout:1.1.3')
|
||||
|
||||
// api 'me.everything:overscroll-decor-android:1.0.4'
|
||||
api "me.leolin:ShortcutBadger:1.1.22@aar"
|
||||
|
||||
// implementation 'com.github.bumptech.glide:glide:4.8.0'
|
||||
api ('com.github.bumptech.glide:glide:4.1.1') {
|
||||
exclude group: 'com.android.support'
|
||||
}
|
||||
annotationProcessor 'com.github.bumptech.glide:compiler:4.1.1'
|
||||
//api 'jp.wasabeef:glide-transformations:3.0.1'
|
||||
|
||||
implementation ('com.github.chrisbanes:PhotoView:1.3.0')
|
||||
{
|
||||
exclude group: 'com.github.bumptech.glide'
|
||||
}
|
||||
// JSON 解析库,供 uikit 使用并对外透出
|
||||
api 'com.alibaba:fastjson:1.2.83'
|
||||
//权限
|
||||
implementation 'com.github.dfqin:grantor:2.1.0'
|
||||
//api 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1' // if you want to use the Glide GPU Filters
|
||||
// 基础功能 (必需)
|
||||
implementation "com.netease.nimlib:basesdk:9.6.3"
|
||||
|
||||
// 聊天室需要
|
||||
implementation "com.netease.nimlib:chatroom:9.6.3"
|
||||
|
||||
// 通过云信来集成小米等厂商推送需要
|
||||
implementation "com.netease.nimlib:push:9.6.3"
|
||||
|
||||
// 超大群需要
|
||||
implementation "com.netease.nimlib:superteam:9.6.2"
|
||||
|
||||
// 全文检索插件
|
||||
implementation "com.netease.nimlib:lucene:9.6.3"
|
||||
}
|
||||
Reference in New Issue
Block a user