From d34b1140ae48899606fe181bd478ffebe9ca4d37 Mon Sep 17 00:00:00 2001
From: lwb <q3213421wrwqr>
Date: 星期一, 15 三月 2021 15:15:35 +0800
Subject: [PATCH] 9527 渠道增加安卓清单文件
---
Assets/Editor/Tool/ClientPackage.cs | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/Assets/Editor/Tool/ClientPackage.cs b/Assets/Editor/Tool/ClientPackage.cs
index 702ee9c..237a367 100644
--- a/Assets/Editor/Tool/ClientPackage.cs
+++ b/Assets/Editor/Tool/ClientPackage.cs
@@ -41,7 +41,7 @@
}
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/Channel";
@@ -440,6 +440,7 @@
// var manifestpath = StringUtility.Contact(_sdkPath, "/Channel/Android/", versionConfig.appId, "/AndroidManifest.xml");
var channelSdkPath = StringUtility.Contact(_sdkPath, "/Channel/Android/", versionConfig.appId, "/", variant);
+ var manifeastPath = StringUtility.Contact(_sdkPath, "/Channel/Android/", versionConfig.appId, "/AndroidManifest.xml");
// if (File.Exists(manifestpath))
// {
@@ -463,6 +464,14 @@
return;
}
+ if (File.Exists(manifeastPath))
+ {
+ if (File.Exists(MANIFEST_PATH))
+ File.Delete(MANIFEST_PATH);
+ File.Copy(manifeastPath, MANIFEST_PATH);
+ DebugEx.LogFormat("Android 娓呭崟鏂囦欢鎷疯礉鎴愬姛锛寋0}", manifeastPath);
+ }
+
var option = AssetDatabase.LoadAssetAtPath<Options>("Assets/Editor/Beebyte/Obfuscator/ObfuscatorOptions.asset");
if (option != null)
{
--
Gitblit v1.8.0