Skip to content

Commit ca7ba43

Browse files
committed
CheckLintResourceFileReferencesAreFixed works across all 3 runtimes
1 parent e10d48b commit ca7ba43

File tree

1 file changed

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

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,9 +2066,17 @@ public void DuplicateValuesInResourceCaseMap ([Values] AndroidRuntime runtime)
20662066
}
20672067

20682068
[Test]
2069-
public void CheckLintResourceFileReferencesAreFixed ()
2069+
public void CheckLintResourceFileReferencesAreFixed ([Values] AndroidRuntime runtime)
20702070
{
2071-
var proj = new XamarinAndroidApplicationProject ();
2071+
bool isRelease = runtime == AndroidRuntime.NativeAOT;
2072+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
2073+
return;
2074+
}
2075+
2076+
var proj = new XamarinAndroidApplicationProject () {
2077+
IsRelease = isRelease,
2078+
};
2079+
proj.SetRuntime (runtime);
20722080
proj.SetProperty ("AndroidLintEnabled", true.ToString ());
20732081
proj.AndroidResources.Add (new AndroidItem.AndroidResource ("Resources\\layout\\test.axml") {
20742082
TextContent = () => {

0 commit comments

Comments
 (0)