Google.IOSResolver.Pod.BucketByMinSdkVersion C# (CSharp) Method

BucketByMinSdkVersion() public static method

public static BucketByMinSdkVersion ( IEnumerable pods ) : List>.SortedDictionary
pods IEnumerable
return List>.SortedDictionary
                BucketByMinSdkVersion(IEnumerable<Pod> pods) {
            var buckets = new SortedDictionary<int, List<string>>();
            foreach (var pod in pods) {
                int minVersion = pod.MinTargetSdkToVersion();
                if (minVersion == 0) {
                    continue;
                }
                List<string> nameList = null;
                if (!buckets.TryGetValue(minVersion, out nameList)) {
                    nameList = new List<string>();
                }
                nameList.Add(pod.name);
                buckets[minVersion] = nameList;
            }
            return buckets;
        }
    }