Skip to content

Commit f07c1ea

Browse files
committed
DeferredBuildTest.RunUpdateAndroidResourcesIfBackgroundBuildNotSupported works
1 parent 6906997 commit f07c1ea

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,20 @@ public void SelectivelyRunUpdateAndroidResources ([Values] AndroidRuntime runtim
6161
}
6262

6363
[Test]
64-
public void RunUpdateAndroidResourcesIfBackgroundBuildNotSupported ()
64+
public void RunUpdateAndroidResourcesIfBackgroundBuildNotSupported ([Values] AndroidRuntime runtime)
6565
{
66+
bool isRelease = runtime == AndroidRuntime.NativeAOT;
67+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
68+
return;
69+
}
70+
6671
var path = Path.Combine ("temp", TestName);
6772
var app = new XamarinAndroidApplicationProject {
73+
IsRelease = isRelease,
6874
ProjectName = "MyApp",
6975
};
7076

77+
app.SetRuntime (runtime);
7178
app.SetProperty ("AndroidUseManagedDesignTimeResourceGenerator", "True");
7279
app.SetProperty ("AndroidUseIntermediateDesignerFile", "True");
7380

0 commit comments

Comments
 (0)