少年修仙传客户端代码仓库
client_Wu Xijin
2018-12-19 706eee7169c52b3047ab90ba071c9e10b5edbf0c
3335 更新安装apk之后删除dll的逻辑
2个文件已修改
31 ■■■■ 已修改文件
Core/SDK/SDKUtility.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/ClientVersion/VersionUtility.cs 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/SDK/SDKUtility.cs
@@ -203,6 +203,21 @@
    public void InstallAPK(string path)
    {
        if (Application.platform == RuntimePlatform.Android)
        {
            var dllPath1 = ResourcesPath.Instance.ExternalStorePath + "Assembly-CSharp-firstpass.dll";
            if (File.Exists(dllPath1))
            {
                File.Delete(dllPath1);
            }
            var dllPath2 = ResourcesPath.Instance.ExternalStorePath + "Assembly-CSharp.dll";
            if (File.Exists(dllPath2))
            {
                File.Delete(dllPath2);
            }
        }
        m_Json.Clear();
        m_Json["code"] = CodeU2A.InstallAPK;
        m_Json["path"] = path;
System/ClientVersion/VersionUtility.cs
@@ -281,22 +281,6 @@
        {
            step = Step.Completed;
            WindowCenter.Instance.CloseImmediately<VersionUpdateWin>();
            if (Application.platform == RuntimePlatform.Android)
            {
                var dllPath1 = ResourcesPath.Instance.ExternalStorePath + "Assembly-CSharp-firstpass.dll";
                if (File.Exists(dllPath1))
                {
                    File.Delete(dllPath1);
                }
                var dllPath2 = ResourcesPath.Instance.ExternalStorePath + "Assembly-CSharp.dll";
                if (File.Exists(dllPath2))
                {
                    File.Delete(dllPath2);
                }
            }
            SDKUtility.Instance.InstallAPK(GetApkLocalUrl());
        }
        else