/// <summary> /// Update the iOS target SDK if it's lower than the minimum SDK /// version specified by the pod. /// </summary> /// <param name="pod">Pod to query for the minimum supported version. /// </param> /// <param name="notifyUser">Whether to write to the log to notify the /// user of a build setting change.</param> /// <returns>true if the SDK version was changed, false /// otherwise.</returns> private static bool UpdateTargetSdk(Pod pod, bool notifyUser = true) { int currentVersion = TargetSdkVersion; int minVersion = pod.MinTargetSdkToVersion(); if (currentVersion >= minVersion) { return(false); } if (notifyUser) { string oldSdk = TargetSdk; TargetSdkVersion = minVersion; Log("iOS Target SDK changed from " + oldSdk + " to " + TargetSdk + " required by the " + pod.name + " pod"); } return(true); }
/// <summary> /// Update the iOS target SDK if it's lower than the minimum SDK /// version specified by the pod. /// </summary> /// <param name="pod">Pod to query for the minimum supported version. /// </param> /// <param name="notifyUser">Whether to write to the log to notify the /// user of a build setting change.</param> /// <returns>true if the SDK version was changed, false /// otherwise.</returns> private static bool UpdateTargetSdk(Pod pod, bool notifyUser = true) { int currentVersion = TargetSdkVersion; int minVersion = pod.MinTargetSdkToVersion(); if (currentVersion >= minVersion) { return false; } if (notifyUser) { string oldSdk = TargetSdk; TargetSdkVersion = minVersion; Log("iOS Target SDK changed from " + oldSdk + " to " + TargetSdk + " required by the " + pod.name + " pod"); } return true; }