zlzw
4c9f3d9936
同步PD修复问题: 修复: 1:开播闪屏问题 2:游戏房消息重复(或不显示) 3:模拟器或部分机型滑动声网直播间会白屏问题 4:PK条在平板模式下显示太高问题 5:PK没断开能收到其他人邀请的问题
81 lines
2.5 KiB
Groovy
81 lines
2.5 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'maven-publish'
|
|
apply plugin: 'kotlin-android'
|
|
|
|
android {
|
|
namespace "com.yunbao.swfaceunity"
|
|
compileSdkVersion 31
|
|
buildToolsVersion "30.0.3"
|
|
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
targetSdkVersion 31
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
if (new File("$AGORA_RTC_SDK").exists()) {
|
|
api fileTree(dir: "${AGORA_RTC_SDK}", include: ['*.jar', '*.aar'])
|
|
} else {
|
|
api "$AGORA_RTC_SDK"
|
|
}
|
|
api project(path: ':FaceUnity')
|
|
api project(path: ':common')
|
|
}
|
|
|
|
// Because the components are created only during the afterEvaluate phase, you must
|
|
// configure your publications using the afterEvaluate() lifecycle method.
|
|
afterEvaluate {
|
|
publishing {
|
|
publications {
|
|
// Creates a Maven publication called "release".
|
|
release(MavenPublication) {
|
|
// Applies the component for the release build variant.
|
|
from components.release
|
|
|
|
// You can then customize attributes of the publication as shown below.
|
|
groupId = 'com.github.AgoraIO-Community.BeautyAPI'
|
|
artifactId = 'FaceUnity'
|
|
version = "$LIB_VERSION"
|
|
}
|
|
// Creates a Maven publication called “debug”.
|
|
debug(MavenPublication) {
|
|
// Applies the component for the debug build variant.
|
|
from components.debug
|
|
|
|
groupId = 'com.github.AgoraIO-Community.BeautyAPI'
|
|
artifactId = 'FaceUnity'
|
|
version = "$LIB_VERSION"
|
|
}
|
|
}
|
|
if(IS_PUBLISH_LOCAL){
|
|
repositories {
|
|
maven {
|
|
url = "file://${rootProject.projectDir.path}/maven"
|
|
println("maven publish to ${url}")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |