Skip to content

Commit 6906997

Browse files
committed
DeferredBuildTest.SelectivelyRunUpdateAndroidResources works
1 parent a7853ad commit 6906997

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
@@ -2,20 +2,27 @@
22
using System.IO;
33
using Xamarin.ProjectTools;
44
using Microsoft.Build.Framework;
5+
using Xamarin.Android.Tasks;
56

67
namespace Xamarin.Android.Build.Tests
78
{
89
[Parallelizable (ParallelScope.Children)]
910
public class DeferredBuildTest : BaseTest
1011
{
1112
[Test]
12-
public void SelectivelyRunUpdateAndroidResources ()
13+
public void SelectivelyRunUpdateAndroidResources ([Values] AndroidRuntime runtime)
1314
{
15+
bool isRelease = runtime == AndroidRuntime.NativeAOT;
16+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
17+
return;
18+
}
1419
var path = Path.Combine ("temp", TestName);
1520
var app = new XamarinAndroidApplicationProject {
21+
IsRelease = isRelease,
1622
ProjectName = "MyApp",
1723
};
1824

25+
app.SetRuntime (runtime);
1926
app.SetProperty ("AndroidUseManagedDesignTimeResourceGenerator", "True");
2027
app.SetProperty ("AndroidUseIntermediateDesignerFile", "True");
2128

0 commit comments

Comments
 (0)