using UnityEngine;
namespace StansAssets.IOS.XCode
{
///
/// Represents XCode project build property.
///
[System.Serializable]
public class XCodeProjectProperty
{
[SerializeField]
string m_Name;
[SerializeField]
string m_Value;
[SerializeField]
string[] m_Options = { "YES", "NO" };
///
/// Initializes a new instance of the class.
///
/// The name of the build property.
/// The value of the build property.
public XCodeProjectProperty(string name, string value)
{
m_Name = name;
m_Value = value;
}
///
/// The name of the build property.
///
public string Name => m_Name;
///
/// The value of the build property.
///
public string Value
{
get
{
if (string.IsNullOrEmpty(m_Value)) m_Value = m_Options[0];
return m_Value;
}
set => m_Value = value;
}
///
/// An array of suited values for this build property
///
/// The options.
public string[] Options => m_Options;
}
}