| | |
| | | }
|
| | |
|
| | | static string THE_2TH_WORLD_SDK_PATH = Application.dataPath + "/Plugins/Android/bin";
|
| | | static string MANIFEST_PATH = Application.dataPath + "/Plugins/Android/AndroidManifest.xml";
|
| | | // static string MANIFEST_PATH = Application.dataPath + "/Plugins/Android/AndroidManifest.xml";
|
| | | static string iOS_PLUGIN_PATH = Application.dataPath + "/Plugins/iOS";
|
| | |
|
| | | /// <summary>
|
| | |
| | | if (Directory.Exists(THE_2TH_WORLD_SDK_PATH))
|
| | | Directory.Delete(THE_2TH_WORLD_SDK_PATH, true);
|
| | | //删除原清单文件
|
| | | if (File.Exists(MANIFEST_PATH))
|
| | | File.Delete(MANIFEST_PATH);
|
| | | // if (File.Exists(MANIFEST_PATH))
|
| | | // File.Delete(MANIFEST_PATH);
|
| | |
|
| | | var variant = _development ? "debug" : "release";
|
| | |
|
| | | var manifestpath = StringUtility.Contact(_sdkPath, "/Channel/Android/", versionConfig.appId, "/AndroidManifest.xml");
|
| | | // var manifestpath = StringUtility.Contact(_sdkPath, "/Channel/Android/", versionConfig.appId, "/AndroidManifest.xml");
|
| | | var channelSdkPath = StringUtility.Contact(_sdkPath, "/Channel/Android/", versionConfig.appId, "/", variant);
|
| | |
|
| | | if (File.Exists(manifestpath))
|
| | | {
|
| | | File.Copy(manifestpath, MANIFEST_PATH);
|
| | | DebugEx.LogFormat("执行Android 清单文件拷贝,from:{0};to:{1}", manifestpath, MANIFEST_PATH);
|
| | | }
|
| | | else
|
| | | {
|
| | | DebugEx.LogFormat("Android 清单文件不存在,{0}", manifestpath);
|
| | | // return;
|
| | | }
|
| | | // if (File.Exists(manifestpath))
|
| | | // {
|
| | | // File.Copy(manifestpath, MANIFEST_PATH);
|
| | | // DebugEx.LogFormat("执行Android 清单文件拷贝,from:{0};to:{1}", manifestpath, MANIFEST_PATH);
|
| | | // }
|
| | | // else
|
| | | // {
|
| | | // DebugEx.LogFormat("Android 清单文件不存在,{0}", manifestpath);
|
| | | // // return;
|
| | | // }
|
| | |
|
| | | if (Directory.Exists(channelSdkPath))
|
| | | {
|