Exemplo n.º 1
0
        private static bool ValidateUdp()
        {
            // If UDP is not available, the menu item will be disabled
            if (UdpSynchronizationApi.CheckUdpAvailability())
            {
                RefreshCheckmarks();
                return(true);
            }

            return(false);
        }
        internal static AppStore TryTargetAndroidStore(AppStore target)
        {
            if (!target.IsAndroid())
            {
                throw new ArgumentException(string.Format("AppStore parameter ({0}) must be an Android app store", target));
            }

            if (target == AppStore.UDP)
            {
                if (!s_udpAvailable || (!IsUdpUmpPackageInstalled() && !IsUdpAssetStorePackageInstalled()) || !UdpSynchronizationApi.CheckUdpCompatibility())
                {
                    UdpInstaller.PromptUdpInstallation();
                    return(ConfiguredAppStore());
                }
            }

            ConfigureProject(target);
            SaveConfig(target);
            OnAndroidTargetChange?.Invoke(target);

            var targetString = Enum.GetName(typeof(AppStore), target);

            GenericEditorDropdownSelectEventSenderHelpers.SendIapMenuSelectTargetStoreEvent(targetString);

            return(ConfiguredAppStore());
        }
Exemplo n.º 3
0
 private static void TargetUdp()
 {
     if (s_udpAvailable && (IsUdpUmpPackageInstalled() || IsUdpAssetStorePackageInstalled()) && UdpSynchronizationApi.CheckUdpCompatibility())
     {
         TargetAndroidStore(AppStore.UDP);
     }
     else
     {
         UdpInstaller.PromptUdpInstallation();
     }
 }