| | |
| | | public const string VERSION_ALTERNATIVE = "0.0.0";
|
| | |
|
| | | [SerializeField] public string m_AppId = string.Empty;
|
| | | public string appId
|
| | | {
|
| | | get
|
| | | {
|
| | | public string appId {
|
| | | get {
|
| | | if (!string.IsNullOrEmpty(SDKUtility.Yj_AppID))
|
| | | {
|
| | | return SDKUtility.Yj_AppID;
|
| | |
| | | }
|
| | |
|
| | | [SerializeField] public string m_SpID = string.Empty;
|
| | | public string SpID
|
| | | {
|
| | | get
|
| | | {
|
| | | public string SpID {
|
| | | get {
|
| | | if (!string.IsNullOrEmpty(SDKUtility.Yj_SpID))
|
| | | {
|
| | | return SDKUtility.Yj_SpID;
|
| | |
| | | public string clientPackageFlag { get { return m_ClientPackageFlag; } }
|
| | |
|
| | | [SerializeField] int m_Branch = 0;
|
| | | public int branch
|
| | | {
|
| | | get
|
| | | {
|
| | | public int branch {
|
| | | get {
|
| | | if (DebugUtility.Instance.debugAccount && DebugUtility.Instance.debugBranch >= 0)
|
| | | {
|
| | | return DebugUtility.Instance.debugBranch;
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | [SerializeField] string m_GameId = string.Empty;
|
| | | public string gameId { get { return m_GameId; } }
|
| | |
|
| | | [SerializeField] InstalledAsset m_AssetAccess = InstalledAsset.IngoreDownLoad;
|
| | | public InstalledAsset assetAccess { get { return m_AssetAccess; } set { m_AssetAccess = value; } }
|
| | |
| | | public string appleDeveloperTeamID { get { return m_AppleDeveloperTeamID; } }
|
| | |
|
| | | [SerializeField] bool m_DebugVersion = false;
|
| | | public bool debugVersion
|
| | | {
|
| | | public bool debugVersion {
|
| | | get { return m_DebugVersion; }
|
| | | set { m_DebugVersion = value; }
|
| | | }
|
| | |
|
| | | [SerializeField] bool m_IsBanShu = false;
|
| | | public bool isBanShu
|
| | | {
|
| | | public bool isBanShu {
|
| | | get { return m_IsBanShu; }
|
| | | set { m_IsBanShu = value; }
|
| | | }
|
| | |
|
| | | [SerializeField] string m_BuildTime;
|
| | | public string buildTime
|
| | | {
|
| | | public string buildTime {
|
| | | get { return m_BuildTime; }
|
| | | set { m_BuildTime = value; }
|
| | | }
|
| | |
|
| | | [SerializeField] int m_BuildIndex;
|
| | | public int buildIndex
|
| | | {
|
| | | public int buildIndex {
|
| | | get { return m_BuildIndex; }
|
| | | set { m_BuildIndex = value; }
|
| | | }
|
| | |
| | | public Vector2 logoPosition { get { return m_LogoPosition; } }
|
| | |
|
| | | [SerializeField] string m_BanHao;
|
| | | public string banHao
|
| | | {
|
| | | get
|
| | | {
|
| | | public string banHao {
|
| | | get {
|
| | | if (!string.IsNullOrEmpty(SDKUtility.Yj_BanHao))
|
| | | {
|
| | | return SDKUtility.Yj_BanHao;
|
| | |
| | | m_Version = dataStrings[4];
|
| | | m_ClientPackageFlag = dataStrings[5];
|
| | | m_Branch = int.Parse(dataStrings[6]);
|
| | | m_AssetAccess = (InstalledAsset)int.Parse(dataStrings[7]);
|
| | | m_PartAssetPackage = int.Parse(dataStrings[8]) == 1;
|
| | | m_ProductName = dataStrings[9];
|
| | | m_BundleIdentifier = dataStrings[10];
|
| | | m_KeystoreFileName = dataStrings[11];
|
| | | m_KeystorePassword = dataStrings[12];
|
| | | m_KeystoreAlias = dataStrings[13];
|
| | | m_KeystoreAliasPassword = dataStrings[14];
|
| | | m_AppleDeveloperTeamID = dataStrings[15];
|
| | | m_DebugVersion = int.Parse(dataStrings[16]) == 1;
|
| | | m_IsBanShu = int.Parse(dataStrings[17]) == 1;
|
| | | m_LogoPosition = dataStrings[18].Vector3Parse();
|
| | | m_BanHao = dataStrings[19];
|
| | | m_SpID = dataStrings[20];
|
| | | m_GameId = dataStrings[7];
|
| | | m_AssetAccess = (InstalledAsset)int.Parse(dataStrings[8]);
|
| | | m_PartAssetPackage = int.Parse(dataStrings[9]) == 1;
|
| | | m_ProductName = dataStrings[10];
|
| | | m_BundleIdentifier = dataStrings[11];
|
| | | m_KeystoreFileName = dataStrings[12];
|
| | | m_KeystorePassword = dataStrings[13];
|
| | | m_KeystoreAlias = dataStrings[14];
|
| | | m_KeystoreAliasPassword = dataStrings[15];
|
| | | m_AppleDeveloperTeamID = dataStrings[16];
|
| | | m_DebugVersion = int.Parse(dataStrings[17]) == 1;
|
| | | m_IsBanShu = int.Parse(dataStrings[18]) == 1;
|
| | | m_LogoPosition = dataStrings[19].Vector3Parse();
|
| | | m_BanHao = dataStrings[20];
|
| | | m_SpID = dataStrings[21];
|
| | | }
|
| | | catch (System.Exception ex)
|
| | | {
|
| | |
| | | _to.m_Version = _from.m_Version;
|
| | | _to.m_AppId = _from.m_AppId;
|
| | | _to.m_Branch = _from.m_Branch;
|
| | | _to.m_GameId = _from.m_GameId;
|
| | | _to.m_AssetAccess = _from.m_AssetAccess;
|
| | | _to.m_PartAssetPackage = _from.m_PartAssetPackage;
|
| | | _to.m_BuildTime = _from.m_BuildTime;
|
| | |
| | | var input = lhsStrings[i];
|
| | | var intTemp = 0;
|
| | | int.TryParse(input, out intTemp);
|
| | | version1 += intTemp * MathUtility.Power(1000, lhsStrings.Length -1- i);
|
| | | version1 += intTemp * MathUtility.Power(1000, lhsStrings.Length - 1 - i);
|
| | | }
|
| | |
|
| | | var version2 = 0;
|
| | |
| | | var input = rhsStrings[i];
|
| | | var intTemp = 0;
|
| | | int.TryParse(input, out intTemp);
|
| | | version2 += intTemp * MathUtility.Power(1000, rhsStrings.Length -1- i);
|
| | | version2 += intTemp * MathUtility.Power(1000, rhsStrings.Length - 1 - i);
|
| | | }
|
| | |
|
| | | return version1 > version2 ? _lhs : _rhs;
|