| | |
| | |
|
| | | 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;
|
| | |
| | | {
|
| | | 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
|