using UnityEngine; using System; using System.Xml; using System.Collections.Generic; namespace ThinkingData.Analytics.Utils { // Crosss Platform public enum TDThirdPartyType { NONE = 0, APPSFLYER = 1 << 0, // AppsFlyer IRONSOURCE = 1 << 1, // IronSource ADJUST = 1 << 2, // Adjust BRANCH = 1 << 3, // Branch TOPON = 1 << 4, // TopOn TRACKING = 1 << 5, // ReYun TRADPLUS = 1 << 6, // TradPlus }; // SSL public enum TDSSLPinningMode { NONE = 0, // Only allow certificates trusted by the system PUBLIC_KEY = 1 << 0, // Verify public key CERTIFICATE = 1 << 1 // Verify all contents } public class TDPublicConfig { public static bool DisableCSharpException = false; public static List DisPresetProperties = new List(); public static readonly string LIB_VERSION = "3.2.2"; public static void GetPublicConfig() { TextAsset textAsset = Resources.Load("ta_public_config"); if (textAsset != null && !string.IsNullOrEmpty(textAsset.text)) { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(textAsset.text); XmlNode root = xmlDoc.SelectSingleNode("resources"); for (int i=0; i