2022-09-17 16:54:58 +08:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
apply plugin: 'img-optimizer'
|
2022-09-19 15:43:06 +08:00
|
|
|
apply plugin: 'kotlin-android'
|
2024-04-18 09:47:38 +08:00
|
|
|
apply plugin: 'kotlin-parcelize'
|
2024-06-20 14:02:15 +08:00
|
|
|
apply from: "../package_config.gradle"
|
2022-09-17 16:54:58 +08:00
|
|
|
|
|
|
|
android {
|
2024-07-13 10:37:37 +08:00
|
|
|
namespace "com.yunbao.faceunity"
|
|
|
|
compileSdk rootProject.ext.android.compileSdkVersion
|
2022-09-17 16:54:58 +08:00
|
|
|
packagingOptions {
|
|
|
|
pickFirst "lib/armeabi/libyuvutils.so"
|
|
|
|
pickFirst "lib/arm64-v8a/libyuvutils.so"
|
|
|
|
pickFirst "lib/armeabi-v7a/libyuvutils.so"
|
|
|
|
pickFirst "lib/armeabi/libyuvtools.so"
|
|
|
|
pickFirst "lib/arm64-v8a/libyuvtools.so"
|
|
|
|
pickFirst "lib/armeabi-v7a/libyuvtools.so"
|
|
|
|
exclude "lib/arm64-v8a/libmmcv_api_handgesture.so"
|
|
|
|
exclude "lib/arm64-v8a/libmmcv_api_express.so"
|
|
|
|
exclude "lib/arm64-v8a/libMediaEncoder.so"
|
|
|
|
exclude "lib/arm64-v8a/libarcore_sdk_c.so"
|
|
|
|
exclude "lib/arm64-v8a/libmediadecoder.so"
|
|
|
|
exclude "lib/arm64-v8a/libMediaMuxer.so"
|
|
|
|
exclude "lib/arm64-v8a/libarcore_sdk_jni.so"
|
|
|
|
exclude "lib/arm64-v8a/libMediaUtils.so"
|
|
|
|
exclude "lib/arm64-v8a/libcosmosffmpeg.so"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion rootProject.ext.android.minSdkVersion
|
|
|
|
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
|
|
|
versionCode rootProject.ext.android.versionCode
|
|
|
|
versionName rootProject.ext.android.versionName
|
|
|
|
manifestPlaceholders = rootProject.ext.manifestPlaceholders
|
|
|
|
ndk {
|
2024-06-05 13:27:22 +08:00
|
|
|
abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64"
|
2022-09-17 16:54:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
aaptOptions {
|
|
|
|
cruncherEnabled = false
|
|
|
|
useNewCruncher = false
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2024-08-30 10:28:57 +08:00
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2022-09-17 16:54:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
flatDir {
|
2022-09-26 17:18:07 +08:00
|
|
|
dirs 'libs', '../libs'
|
2022-09-17 16:54:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
2024-04-18 09:47:38 +08:00
|
|
|
api fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
api rootProject.ext.dependencies["appcompat-androidx"]
|
|
|
|
api rootProject.ext.dependencies["recyclerview-androidx"]
|
|
|
|
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
2022-09-17 16:54:58 +08:00
|
|
|
//common
|
2024-04-18 09:47:38 +08:00
|
|
|
api project(path: ':common')
|
2022-09-17 16:54:58 +08:00
|
|
|
|
2024-04-18 09:47:38 +08:00
|
|
|
api 'com.faceunity:core:8.7.0'
|
|
|
|
api 'com.faceunity:model:8.7.0'
|
2022-09-17 16:54:58 +08:00
|
|
|
//implementation 'com.faceunity:nama:8.3.1' //底层库-标准版
|
|
|
|
|
|
|
|
|
|
|
|
}
|