添加项目
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'org.jetbrains.kotlin.android'
|
||||
|
||||
android {
|
||||
compileSdk rootProject.ext.compileSdkVersion
|
||||
|
||||
defaultConfig {
|
||||
minSdk rootProject.ext.minSdkVersion
|
||||
targetSdk rootProject.ext.targetSdkVersion
|
||||
versionCode rootProject.ext.versionCode
|
||||
versionName rootProject.ext.versionName
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api fileTree(dir: 'libs', include: ['*.jar'])
|
||||
api 'androidx.appcompat:appcompat:1.0.0'
|
||||
api 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
api 'com.github.bumptech.glide:glide:4.12.0'
|
||||
implementation 'androidx.core:core-ktx:1.8.0'
|
||||
|
||||
def projects = this.rootProject.getAllprojects().stream().map { project -> project.name }.collect()
|
||||
println "all projects : {$projects}"
|
||||
if (projects.contains("tuicore")) {
|
||||
api project(':system:tuicore')
|
||||
} else {
|
||||
api "com.tencent.imsdk:imsdk-plus:7.3.4358"
|
||||
api "com.tencent.liteav.tuikit:tuicore:1.1.18"
|
||||
}
|
||||
|
||||
if (projects.contains("tuicallengine")) {
|
||||
api project(':tuicallengine')
|
||||
} else {
|
||||
api "com.google.code.gson:gson:2.9.1"
|
||||
api "com.tencent.liteav:LiteAVSDK_TRTC:11.4.0.13189"
|
||||
api 'com.tencent.liteav.tuikit:tuicallengine:1.9.0.680'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user