修复部分机型开播异常问题
This commit is contained in:
parent
08bc6d554a
commit
f417e4ead8
3
app/proguard-rules.pro
vendored
3
app/proguard-rules.pro
vendored
@ -233,3 +233,6 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode;
|
|||||||
-keep class com.yunbao.faceunity.utils.FaceUnityConfig{
|
-keep class com.yunbao.faceunity.utils.FaceUnityConfig{
|
||||||
public static java.lang.String BUNDLE_FACE_BEAUTIFICATION;
|
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.FileOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
import java.lang.reflect.Field;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.zip.ZipEntry;
|
import java.util.zip.ZipEntry;
|
||||||
import java.util.zip.ZipInputStream;
|
import java.util.zip.ZipInputStream;
|
||||||
@ -104,6 +105,13 @@ public class PluginManager {
|
|||||||
File plugins = new File(outDir + File.separator + "lib" + File.separator + abi);
|
File plugins = new File(outDir + File.separator + "lib" + File.separator + abi);
|
||||||
loadSo(plugins, "libfuai");
|
loadSo(plugins, "libfuai");
|
||||||
loadSo(plugins, "libCNamaSDK");
|
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,
|
"code": 223,
|
||||||
"tw": "馬里",
|
"tw": "馬裏",
|
||||||
"en": "Mali",
|
"en": "Mali",
|
||||||
"locale": "ML",
|
"locale": "ML",
|
||||||
"zh": "马里"
|
"zh": "马里"
|
||||||
|
Loading…
Reference in New Issue
Block a user