diff --git a/Topon_Adapter/Editor/AD_BuildAndroidProcess.cs b/Topon_Adapter/Editor/AD_BuildAndroidProcess.cs index 5df85ea..6c19eae 100644 --- a/Topon_Adapter/Editor/AD_BuildAndroidProcess.cs +++ b/Topon_Adapter/Editor/AD_BuildAndroidProcess.cs @@ -95,6 +95,17 @@ namespace Topon_Adapter.Editor //增加穿山甲配置 elementlauncherApplication.Add (CreateCSJGromore ()); } + + var elementMainManifest = manifest.Element ("manifest"); + var elementMainApplication = elementMainManifest.Element ("application"); + + var maincsjElements = elementMainApplication.Descendants ().Where (element => element.Name.LocalName.Equals ("provider")); + XElement maincsjElement = GetElementByName (maincsjElements, "com.bytedance.sdk.openadsdk.TTFileProvider"); + if (csjElement == null) + { + //增加穿山甲配置 + elementMainApplication.Add (CreateCSJGromore ()); + } // Save the updated manifest file. manifest.Save (manifestPath); diff --git a/Topon_Adapter/Editor/ToponTestDependencies.xml b/Topon_Adapter/Editor/ToponTestDependencies.xml index 90feb09..9c8d90f 100644 --- a/Topon_Adapter/Editor/ToponTestDependencies.xml +++ b/Topon_Adapter/Editor/ToponTestDependencies.xml @@ -5,7 +5,7 @@ https://jfrog.anythinktech.com/artifactory/debugger - +