Skip to content

Commit 3d97d97

Browse files
committed
IncrementalBuildDifferentDevice works across all 3 runtimes
1 parent ca7ba43 commit 3d97d97

File tree

1 file changed

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

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2146,9 +2146,15 @@ public void SimilarAndroidXAssemblyNames (bool publishTrimmed, AndroidRuntime ru
21462146
}
21472147

21482148
[Test]
2149-
public void IncrementalBuildDifferentDevice()
2149+
public void IncrementalBuildDifferentDevice ([Values] AndroidRuntime runtime)
21502150
{
2151+
bool isRelease = runtime == AndroidRuntime.NativeAOT;
2152+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
2153+
return;
2154+
}
2155+
21512156
var proj = new XamarinAndroidApplicationProject {
2157+
IsRelease = isRelease,
21522158
Imports = {
21532159
new Import (() => "MockPrimaryCpuAbi.targets") {
21542160
TextContent = () =>
@@ -2167,6 +2173,7 @@ public void IncrementalBuildDifferentDevice()
21672173
},
21682174
},
21692175
};
2176+
proj.SetRuntime (runtime);
21702177
using var builder = CreateApkBuilder ();
21712178
builder.Target = "Build";
21722179
builder.BuildingInsideVisualStudio = false;

0 commit comments

Comments
 (0)