Пример #1
0
        public string Type()
        {
            if (versionSets == null)
            {
                throw new System.Exception("The application has no version sets and Natukaship does not know what to do here.");
            }

            if (versionSets.Count == 1)
            {
                _ = versionSets[0].platform;
            }

            var platform = AppVersionCommon.FindPlatform(versionSets);

            return(platform.type);
        }
Пример #2
0
        //// kept for backward compatibility
        //// tries to guess the platform of the currently submitted apps
        //// note that as ITC now supports multiple app types, this might break
        //// if your app supports more than one
        public string Platform()
        {
            if (versionSets == null)
            {
                throw new Exception("The application has no version sets and Natukaship does not know what to do here.");
            }

            if (versionSets.Count == 1)
            {
                _ = versionSets[0].platform;
            }
            else if (Platforms.Contains("ios") || Platforms.Contains("appletvos"))
            {
                _ = "ios";
            }

            return(AppVersionCommon.FindPlatform(RawData.versionSets).platformString);
        }