liuxue
2021-07-29 7e2df20ccc7cdfb528d309369460a4f3d66afdf1
SdkProject/library/src/main/java/com/secondworld/sdk/UnityMsgHandler.java
@@ -2,7 +2,6 @@
import com.secondworld.sdk.command.CmdInit;
import com.secondworld.sdk.command.ICommand;
import com.secondworld.sdk.utils.CodeA2U;
import com.secondworld.sdk.utils.LogUtil;
import com.secondworld.sdk.utils.StaticDefine;
import com.unity3d.player.UnityPlayer;
@@ -75,7 +74,7 @@
     */
    public static List<String> getClassName(String packageName) throws IOException {
        List<String> classNameList = new ArrayList<String>();
        DexFile df = new DexFile(GameApp.I.getPackageCodePath());//通过DexFile查找当前的APK中可执行文件
        DexFile df = new DexFile(GameAppProxy.app.getPackageCodePath());//通过DexFile查找当前的APK中可执行文件
        Enumeration<String> enumeration = df.entries();//获取df中的元素  这里包含了所有可执行的类名 该类名包含了包名+类名的方式
        while (enumeration.hasMoreElements()) {//遍历
            String className = (String) enumeration.nextElement();
@@ -100,7 +99,7 @@
            args = new HashMap<>();
        args.put("code", code);
        JSONObject jsonObject = new JSONObject(args);
        if (GameApp.I.isDemo()) {
        if (GameAppProxy.isDemo()) {
            LogUtil.debug("发送消息到unity", jsonObject.toString());
            return;
        }