Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make proxy feature stable #4466

Merged
merged 1 commit into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions doc/Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,16 +302,6 @@ You can enable the feature as shown below.
},
```

### proxy

This feature enables the use of web proxies.
You can enable the feature as shown below.

```json
"experimentalFeatures": {
"proxy": true
},
```
### sideBySide

This feature enables experimental improvements for supporting multiple instances of a package being installed on a system.
Expand Down
5 changes: 0 additions & 5 deletions schemas/JSON/settings/settings.schema.0.2.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,6 @@
"type": "boolean",
"default": false
},
"proxy": {
"description": "Enable support for proxies",
"type": "boolean",
"default": false
},
"sideBySide": {
"description": "Enable support for improved side-by-side handling",
"type": "boolean",
Expand Down
4 changes: 2 additions & 2 deletions src/AppInstallerCLICore/Argument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,9 @@ namespace AppInstaller::CLI
case Args::Type::TargetVersion:
return Argument{ type, Resource::String::TargetVersionArgumentDescription, ArgumentType::Standard };
case Args::Type::Proxy:
return Argument{ type, Resource::String::ProxyArgumentDescription, ArgumentType::Standard, ExperimentalFeature::Feature::Proxy, TogglePolicy::Policy::ProxyCommandLineOptions, BoolAdminSetting::ProxyCommandLineOptions };
return Argument{ type, Resource::String::ProxyArgumentDescription, ArgumentType::Standard, TogglePolicy::Policy::ProxyCommandLineOptions, BoolAdminSetting::ProxyCommandLineOptions };
case Args::Type::NoProxy:
return Argument{ type, Resource::String::NoProxyArgumentDescription, ArgumentType::Flag, ExperimentalFeature::Feature::Proxy, TogglePolicy::Policy::ProxyCommandLineOptions, BoolAdminSetting::ProxyCommandLineOptions };
return Argument{ type, Resource::String::NoProxyArgumentDescription, ArgumentType::Flag, TogglePolicy::Policy::ProxyCommandLineOptions, BoolAdminSetting::ProxyCommandLineOptions };
default:
THROW_HR(E_UNEXPECTED);
}
Expand Down
5 changes: 2 additions & 3 deletions src/AppInstallerCLICore/Workflows/DownloadFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,10 @@ namespace AppInstaller::CLI::Workflow

// It is assumed that the parent of the installer path will always be a directory
// If it isn't, then something went severely wrong. However, we will check that
// it is a directory here just to be safe. If it is an empty directory, remove it
// it is a directory here just to be safe. If it is an empty directory, remove it.

if (std::filesystem::is_directory(path.parent_path()) &&
std::filesystem::is_empty(path.parent_path())
)
std::filesystem::is_empty(path.parent_path()))
{
std::filesystem::remove(path.parent_path());
}
Expand Down
4 changes: 0 additions & 4 deletions src/AppInstallerCommonCore/ExperimentalFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ namespace AppInstaller::Settings
return userSettings.Get<Setting::EFConfiguration03>();
case ExperimentalFeature::Feature::SideBySide:
return userSettings.Get<Setting::EFSideBySide>();
case ExperimentalFeature::Feature::Proxy:
return userSettings.Get<Setting::EFProxy>();
case ExperimentalFeature::Feature::ConfigureSelfElevation:
return userSettings.Get<Setting::EFConfigureSelfElevation>();
case ExperimentalFeature::Feature::StoreDownload:
Expand Down Expand Up @@ -89,8 +87,6 @@ namespace AppInstaller::Settings
return ExperimentalFeature{ "Configuration Schema 0.3", "configuration03", "https://aka.ms/winget-settings", Feature::Configuration03 };
case Feature::SideBySide:
return ExperimentalFeature{ "Side-by-side improvements", "sideBySide", "https://aka.ms/winget-settings", Feature::SideBySide };
case Feature::Proxy:
return ExperimentalFeature{ "Proxy", "proxy", "https://aka.ms/winget-settings", Feature::Proxy };
case Feature::ConfigureSelfElevation:
return ExperimentalFeature{ "Configure Self Elevation", "configureSelfElevate", "https://aka.ms/winget-settings", Feature::ConfigureSelfElevation };
case Feature::StoreDownload:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ namespace AppInstaller::Settings
DirectMSI = 0x1,
Resume = 0x2,
Configuration03 = 0x4,
Proxy = 0x8,
SideBySide = 0x10,
ConfigureSelfElevation = 0x20,
StoreDownload = 0x40,
ConfigureExport = 0x80,
SideBySide = 0x8,
ConfigureSelfElevation = 0x10,
StoreDownload = 0x20,
ConfigureExport = 0x40,
Max, // This MUST always be after all experimental features

// Features listed after Max will not be shown with the features command
Expand Down
2 changes: 0 additions & 2 deletions src/AppInstallerCommonCore/Public/winget/UserSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ namespace AppInstaller::Settings
EFResume,
EFConfiguration03,
EFSideBySide,
EFProxy,
EFConfigureSelfElevation,
EFStoreDownload,
EFConfigureExport,
Expand Down Expand Up @@ -157,7 +156,6 @@ namespace AppInstaller::Settings
SETTINGMAPPING_SPECIALIZATION(Setting::EFResume, bool, bool, false, ".experimentalFeatures.resume"sv);
SETTINGMAPPING_SPECIALIZATION(Setting::EFConfiguration03, bool, bool, false, ".experimentalFeatures.configuration03"sv);
SETTINGMAPPING_SPECIALIZATION(Setting::EFSideBySide, bool, bool, false, ".experimentalFeatures.sideBySide"sv);
SETTINGMAPPING_SPECIALIZATION(Setting::EFProxy, bool, bool, false, ".experimentalFeatures.proxy"sv);
SETTINGMAPPING_SPECIALIZATION(Setting::EFConfigureSelfElevation, bool, bool, false, ".experimentalFeatures.configureSelfElevate"sv);
SETTINGMAPPING_SPECIALIZATION(Setting::EFStoreDownload, bool, bool, false, ".experimentalFeatures.storeDownload"sv);
SETTINGMAPPING_SPECIALIZATION(Setting::EFConfigureExport, bool, bool, false, ".experimentalFeatures.configureExport"sv);
Expand Down
1 change: 0 additions & 1 deletion src/AppInstallerCommonCore/UserSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ namespace AppInstaller::Settings
WINGET_VALIDATE_PASS_THROUGH(EFResume)
WINGET_VALIDATE_PASS_THROUGH(EFConfiguration03)
WINGET_VALIDATE_PASS_THROUGH(EFSideBySide)
WINGET_VALIDATE_PASS_THROUGH(EFProxy)
WINGET_VALIDATE_PASS_THROUGH(EFConfigureSelfElevation)
WINGET_VALIDATE_PASS_THROUGH(EFStoreDownload)
WINGET_VALIDATE_PASS_THROUGH(EFConfigureExport)
Expand Down
Loading