From f417e4ead8c68d2d416b1f530e83c970d1fb8114 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 4 Jul 2023 13:03:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E6=9C=BA?= =?UTF-8?q?=E5=9E=8B=E5=BC=80=E6=92=AD=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/proguard-rules.pro | 3 +++ .../main/java/com/yunbao/common/utils/PluginManager.java | 8 ++++++++ lib_country_code/src/main/assets/code.json | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 4e9f63bf8..bb48ad393 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -232,4 +232,7 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode; } -keep class com.yunbao.faceunity.utils.FaceUnityConfig{ public static java.lang.String BUNDLE_FACE_BEAUTIFICATION; +} +-keep class com.faceunity.wrapper.faceunity$LoadConfig*{ + private static boolean sLoadedLibrary; } \ No newline at end of file diff --git a/common/src/main/java/com/yunbao/common/utils/PluginManager.java b/common/src/main/java/com/yunbao/common/utils/PluginManager.java index e665425e6..395dbee7c 100644 --- a/common/src/main/java/com/yunbao/common/utils/PluginManager.java +++ b/common/src/main/java/com/yunbao/common/utils/PluginManager.java @@ -18,6 +18,7 @@ import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; +import java.lang.reflect.Field; import java.util.Arrays; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; @@ -104,6 +105,13 @@ public class PluginManager { File plugins = new File(outDir + File.separator + "lib" + File.separator + abi); loadSo(plugins, "libfuai"); loadSo(plugins, "libCNamaSDK"); + try { + Field field = Class.forName("com.faceunity.wrapper.faceunity$LoadConfig").getDeclaredField("sLoadedLibrary"); + field.setAccessible(true); + field.set(null,true); + }catch (Exception e){ + e.printStackTrace(); + } } /** diff --git a/lib_country_code/src/main/assets/code.json b/lib_country_code/src/main/assets/code.json index 150846b69..753f172c0 100644 --- a/lib_country_code/src/main/assets/code.json +++ b/lib_country_code/src/main/assets/code.json @@ -723,7 +723,7 @@ }, { "code": 223, - "tw": "馬里", + "tw": "馬裏", "en": "Mali", "locale": "ML", "zh": "马里"