Skip to content

Commit 099f3c6

Browse files
committed
LinkerTests.PreserveServices works
1 parent a710948 commit 099f3c6

File tree

1 file changed

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

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,15 +656,21 @@ public void PreserveIX509TrustManagerSubclasses ([Values] bool hasServerCertific
656656
}
657657

658658
[Test]
659-
public void PreserveServices ()
659+
public void PreserveServices ([Values] AndroidRuntime runtime)
660660
{
661+
const bool isRelease = true;
662+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
663+
return;
664+
}
665+
661666
var proj = new XamarinAndroidApplicationProject {
662-
IsRelease = true,
667+
IsRelease = isRelease,
663668
TrimModeRelease = TrimMode.Full,
664669
PackageReferences = {
665670
new Package { Id = "Plugin.Firebase.CloudMessaging", Version = "3.0.0" },
666671
}
667672
};
673+
proj.SetRuntime (runtime);
668674
proj.MainActivity = proj.DefaultMainActivity
669675
.Replace ("//${FIELDS}",
670676
"""

0 commit comments

Comments
 (0)