Ejemplo n.º 1
0
        private static App KitsForApp(API.V1 api, string organization, string bundleId, BuildTarget buildTarget)
        {
            List<Organization> organizations = api.Organizations ();
            List<App> appsForOrg = api.ApplicationsFor (organization, organizations);

            App activatedApp = appsForOrg.Find (app => {
                bool matchesBundleId = app.BundleIdentifier.Equals (bundleId, StringComparison.OrdinalIgnoreCase);
                bool matchesPlatform = app.Platform == buildTarget;

                return matchesBundleId && matchesPlatform;
            });

            return activatedApp;
        }