You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
Groovy
51 lines
1.3 KiB
Groovy
2 years ago
|
plugins {
|
||
|
id 'com.android.library'
|
||
|
}
|
||
|
|
||
|
android {
|
||
|
compileSdkVersion 30
|
||
|
buildToolsVersion "30.0.3"
|
||
|
|
||
|
defaultConfig {
|
||
|
minSdkVersion 16
|
||
|
targetSdkVersion 30
|
||
|
versionCode 1
|
||
|
versionName "1.0"
|
||
|
}
|
||
|
|
||
|
buildTypes {
|
||
|
release {
|
||
|
minifyEnabled false
|
||
|
}
|
||
|
}
|
||
|
compileOptions {
|
||
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||
|
targetCompatibility JavaVersion.VERSION_1_8
|
||
|
}
|
||
|
|
||
|
// 主题资源文件夹
|
||
|
sourceSets {
|
||
|
main {
|
||
|
res.srcDirs += "src/main/res-light"
|
||
|
res.srcDirs += "src/main/res-lively"
|
||
|
res.srcDirs += "src/main/res-serious"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
api fileTree(include: ['*.jar','*.aar'], dir: '../../../../tuikit/android/libs')
|
||
|
|
||
|
implementation 'androidx.appcompat:appcompat:1.3.1'
|
||
|
implementation 'com.github.bumptech.glide:glide:4.12.0'
|
||
|
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
||
|
|
||
|
def projects = this.rootProject.getAllprojects().stream().map{project->project.name}.collect()
|
||
|
println "all projects : {$projects}"
|
||
|
if (projects.contains("imsdk-plus")) {
|
||
|
api project(':imsdk-plus')
|
||
|
} else {
|
||
|
api rootProject.getProperties().containsKey("imSdk") ? rootProject.ext.imSdk : "com.tencent.imsdk:imsdk-plus:7.2.4146"
|
||
|
}
|
||
|
|
||
|
}
|