Skip to content

Commit a710948

Browse files
committed
LinkerTests.PreserveIX509TrustManagerSubclasses works
1 parent 585f515 commit a710948

File tree

1 file changed

+7
-2
lines changed
  • src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks

1 file changed

+7
-2
lines changed

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/LinkerTests.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,14 @@ public void AndroidUseNegotiateAuthentication ([Values (true, false, null)] bool
617617
}
618618

619619
[Test]
620-
public void PreserveIX509TrustManagerSubclasses ([Values(true, false)] bool hasServerCertificateCustomValidationCallback)
620+
public void PreserveIX509TrustManagerSubclasses ([Values] bool hasServerCertificateCustomValidationCallback, [Values] AndroidRuntime runtime)
621621
{
622-
var proj = new XamarinAndroidApplicationProject { IsRelease = true };
622+
const bool isRelease = true;
623+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
624+
return;
625+
}
626+
var proj = new XamarinAndroidApplicationProject { IsRelease = isRelease };
627+
proj.SetRuntime (runtime);
623628
proj.AddReferences ("System.Net.Http");
624629
proj.MainActivity = proj.DefaultMainActivity.Replace (
625630
"base.OnCreate (bundle);",

0 commit comments

Comments
 (0)