2024-02-23 16:07:50 +08:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
apply plugin: 'img-optimizer'
|
|
|
|
|
|
|
|
|
|
|
|
android {
|
2024-03-26 13:43:13 +08:00
|
|
|
compileSdk rootProject.ext.android.compileSdkVersion
|
|
|
|
targetSdk rootProject.ext.android.buildToolsVersion
|
2024-02-23 16:07:50 +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 {
|
|
|
|
abiFilters "armeabi-v7a","arm64-v8a"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
aaptOptions {
|
|
|
|
cruncherEnabled = false
|
|
|
|
useNewCruncher = false
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
2024-03-26 13:43:13 +08:00
|
|
|
sourceCompatibility JavaVersion.VERSION_18
|
|
|
|
targetCompatibility JavaVersion.VERSION_18
|
2024-02-23 16:07:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
flatDir {
|
|
|
|
dirs 'libs','../libs'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
|
|
//萌颜sdk内部解析json用
|
|
|
|
api(name: 'ti-sdk', ext: 'aar')
|
|
|
|
//common
|
|
|
|
implementation project(':common')
|
|
|
|
}
|