[breaking changes] cleanup targets (#361)

* remove target xamarin ios and android (supported by netstandard)

* remove 1.4

* build warning cleared

* remove bom

* fix ci failed
This commit is contained in:
Boshi Lian
2020-03-08 15:57:34 -07:00
committed by GitHub
parent b07e78afa4
commit 435ab5cd15
9 changed files with 21 additions and 48 deletions

View File

@@ -56,11 +56,7 @@ namespace k8s
/// Optional. The delegating handlers to add to the http client pipeline.
/// </param>
public Kubernetes(KubernetesClientConfiguration config, params DelegatingHandler[] handlers)
#if MONOANDROID8_1
: this(new Xamarin.Android.Net.AndroidClientHandler(), handlers)
#else
: this(handlers)
#endif
{
ValidateConfig(config);
CaCerts = config.SslCaCerts;
@@ -162,7 +158,7 @@ namespace k8s
partial void CustomInitialize()
{
#if NET452 || XAMARINIOS1_0 || MONOANDROID8_1
#if NET452
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
#endif
AppendDelegatingHandler<WatcherDelegatingHandler>();