예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:SA.iOS.XCode.ISD_Framework"/> class.
        /// </summary>
        /// <param name="frameworkName">Framework name.</param>
        /// <param name="optional">If set to <c>true</c> optional.</param>
        public ISD_Framework(string frameworkName, bool optional = false)
        {
            frameworkName = frameworkName.Replace(".framework", string.Empty);
            Type          = SA_EnumUtil.ParseEnum <ISD_iOSFramework> (frameworkName);

            IsOptional = optional;
        }
예제 #2
0
 /// <summary>
 /// Removes the framework.
 /// </summary>
 /// <param name="framework">Framework type</param>
 public static void RemoveFramework(ISD_iOSFramework framework)
 {
     foreach (var item in ISD_Settings.Instance.Frameworks)
     {
         if (item.Type == framework)
         {
             ISD_Settings.Instance.Frameworks.Remove(item);
             break;
         }
     }
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:SA.iOS.XCode.ISD_Framework"/> class.
 /// </summary>
 /// <param name="type">Type.</param>
 /// <param name="optional">If set to <c>true</c> optional.</param>
 public ISD_Framework(ISD_iOSFramework type, bool optional = false)
 {
     Type       = type;
     IsOptional = optional;
 }
예제 #4
0
        //--------------------------------------
        // Framework's
        //--------------------------------------



        /// <summary>
        /// Adds a system framework dependency.
        ///
        /// The function assumes system frameworks are located in System/Library/Frameworks folder
        /// in the SDK source tree. The framework is added to Frameworks logical folder in the project.
        /// </summary>
        /// <param name="framework">The name of the framework.</param>
        /// <param name="weak"><c>True</c> if the framework is optional (i.e. weakly linked), <c>false</c> if the framework is required.</param>
        public static void AddFramework(ISD_iOSFramework framework, bool weak = false)
        {
            AddFramework(new ISD_Framework(framework, weak));
        }