diff --git a/app/build.gradle b/app/build.gradle index 971615fa1..73567955c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -93,10 +93,12 @@ android { exclude 'lib/armeabi-v7a/libMNN_CL.so' exclude 'lib/armeabi-v7a/libMNN_Express.so' //美颜 - exclude 'lib/armeabi-v7a/libCNamaSDK.so' - exclude 'lib/arm64-v8a/libCNamaSDK.so' - exclude 'lib/armeabi-v7a/libfuai.so' - exclude 'lib/arm64-v8a/libfuai.so' + if(rootProject.ext.manifestPlaceholders.isPluginModel) { + exclude 'lib/armeabi-v7a/libCNamaSDK.so' + exclude 'lib/arm64-v8a/libCNamaSDK.so' + exclude 'lib/armeabi-v7a/libfuai.so' + exclude 'lib/arm64-v8a/libfuai.so' + } } compileOptions { @@ -143,11 +145,19 @@ android { 'Resources/*', 'Asset/*', 'image_effect_shaders/*', - 'internal/*', + 'internal/*' //美颜基础组件 - 'model/ai_face_processor_lite.bundle', - 'graphics/face_beautification.bundle' + ])) + println "isPluginModel = "+rootProject.ext.manifestPlaceholders.isPluginModel + if(rootProject.ext.manifestPlaceholders.isPluginModel){ + delete(fileTree(dir: outputDir, includes: [ + 'model/ai_face_processor_lite.bundle', + 'graphics/face_beautification.bundle' + ])) + }else { + println "不删除bundle" + } } } } diff --git a/common/src/main/assets/anchorPlugin.apk b/common/src/main/assets/anchorPlugin.apk deleted file mode 100644 index 7e2e8f75a..000000000 Binary files a/common/src/main/assets/anchorPlugin.apk and /dev/null differ diff --git a/config.gradle b/config.gradle index 208b5def5..110b5f553 100644 --- a/config.gradle +++ b/config.gradle @@ -26,7 +26,9 @@ ext { // true表示谷歌支付 false isGooglePlay : false, //是否上报异常日志 - isUploadLog : true + isUploadLog : true, + //是否打包成插件包模式 + isPluginModel : false, ] } //7664 1 \ No newline at end of file