Google.IOSResolver.TargetSdkNeedsUpdate C# (CSharp) Method

TargetSdkNeedsUpdate() private static method

Determine whether the target SDK needs to be updated based upon pod dependencies.
private static TargetSdkNeedsUpdate ( ) : List>.KeyValuePair
return List>.KeyValuePair
    private static KeyValuePair<int, List<string>> TargetSdkNeedsUpdate() {
        var kvpair = new KeyValuePair<int, List<string>>(0, null);
        var podListsByVersion = Pod.BucketByMinSdkVersion(pods.Values);
        if (podListsByVersion.Count == 0) {
            return kvpair;
        }
        KeyValuePair<int, List<string>> minVersionAndPodName = kvpair;
        foreach (var versionAndPodList in podListsByVersion) {
            minVersionAndPodName = versionAndPodList;
            break;
        }
        int currentVersion = TargetSdkVersion;
        if (currentVersion >= minVersionAndPodName.Key) {
            return kvpair;
        }
        return minVersionAndPodName;
    }