using UnityEngine; using LitJson; public class VersionConfigEx { public enum VersionAuthority { InterTest = 0, Release = 1, } public enum InstalledAsset { NullAsset = 0, HalfAsset = 1, FullAsset = 2, IngoreDownLoad = 3, } public string m_AppId; public string appId { get { return m_AppId; } } public string m_SpID; public string SpID { get { return m_SpID; } } public VersionAuthority m_VersionAuthority; public VersionAuthority versionAuthority { get { return m_VersionAuthority; } } public string m_Version; public string version { get { return m_Version; } } string m_ClientPackageFlag; public string clientPackageFlag { get { return m_ClientPackageFlag; } } public int m_Branch; public int branch { get { if (LocalResManager.Instance.debugBranch > 0) { return LocalResManager.Instance.debugBranch; } else { return m_Branch; } } } string m_GameId = string.Empty; public string gameId { get { if (string.IsNullOrEmpty(m_GameId)) { var gameText = Resources.Load("Game"); if (gameText != null) { m_GameId = gameText.text; } else { m_GameId = "xbqy"; } } return m_GameId; } } public InstalledAsset m_AssetAccess; public InstalledAsset assetAccess { get { return m_AssetAccess; } set { m_AssetAccess = value; } } public bool m_PartAssetPackage; public bool partAssetPackage { get { return m_PartAssetPackage; } set { m_PartAssetPackage = value; } } public string m_ProductName; public string productName { get { return m_ProductName; } } public string m_BundleIdentifier; public string bundleIdentifier { get { return m_BundleIdentifier; } } public string m_KeystoreFileName; public string keystoreFileName { get { return m_KeystoreFileName; } } public string m_KeystorePassword; public string keystorePassword { get { return m_KeystorePassword; } } public string m_KeystoreAlias; public string keystoreAlias { get { return m_KeystoreAlias; } } public string m_KeystoreAliasPassword; public string keystoreAliasPassword { get { return m_KeystoreAliasPassword; } } public string m_AppleDeveloperTeamID; public string appleDeveloperTeamID { get { return m_AppleDeveloperTeamID; } } public bool m_DebugVersion; public bool debugVersion { get { return m_DebugVersion; } set { m_DebugVersion = value; } } public bool m_IsBanShu; public bool isBanShu { get { return m_IsBanShu; } set { m_IsBanShu = value; } } public string m_BuildTime; public string buildTime { get { return m_BuildTime; } set { m_BuildTime = value; } } public int m_BuildIndex; public int buildIndex { get { return m_BuildIndex; } set { m_BuildIndex = value; } } public Vector2 m_LogoPosition; public Vector2 logoPosition { get { return m_LogoPosition; } } public string m_BanHao; public string banHao { get { return m_BanHao; } } // 打包时sdk文件名,有配置取这个名字,没配置用appid,用于同一个appid版本sdk不同的情况 public string m_SdkFileName; public string sdkFileName { get { return m_SdkFileName; } set { m_SdkFileName = value; } } static VersionConfigEx config = null; public static VersionConfigEx Get() { if (config == null) { var text = Resources.Load("VersionConfigEx"); if (text != null) { config = JsonMapper.ToObject(text.text); } } return config; } }