修复部分机型开播异常问题
This commit is contained in:
parent
08bc6d554a
commit
f417e4ead8
3
app/proguard-rules.pro
vendored
3
app/proguard-rules.pro
vendored
@ -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;
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -723,7 +723,7 @@
|
||||
},
|
||||
{
|
||||
"code": 223,
|
||||
"tw": "馬里",
|
||||
"tw": "馬裏",
|
||||
"en": "Mali",
|
||||
"locale": "ML",
|
||||
"zh": "马里"
|
||||
|
Loading…
Reference in New Issue
Block a user