You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.3 KiB
80 lines
2.3 KiB
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
buildToolsVersion '29.0.2'
|
|
defaultConfig {
|
|
minSdkVersion 19
|
|
targetSdkVersion 29
|
|
versionCode 160
|
|
versionName '8.2.0'
|
|
|
|
renderscriptTargetApi 29
|
|
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']
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility 1.8
|
|
targetCompatibility 1.8
|
|
}
|
|
|
|
packagingOptions{
|
|
doNotStrip '*/mips/*.so'
|
|
doNotStrip '*/mips64/*.so'
|
|
}
|
|
|
|
dataBinding {
|
|
enabled = 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.1')
|
|
{
|
|
exclude group: 'com.github.bumptech.glide'
|
|
}
|
|
//权限
|
|
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
|
|
}
|
|
|