Skip to content

Commit adb00e4

Browse files
[Tests] Skip CheckLintErrorsAndWarnings on NativeAOT
The trimmable typemap generates additional Java Callable Wrappers that trip XA0102 lint warnings. Ignore on NativeAOT until #11774 is resolved. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3dac437 commit adb00e4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,9 @@ public void CheckLintErrorsAndWarnings ([Values (AndroidRuntime.CoreCLR, Android
18111811
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
18121812
return;
18131813
}
1814+
if (IgnoreOnNativeAot (runtime, "the trimmable typemap generates additional Java Callable Wrappers that trip XA0102 lint warnings (e.g. CustomX509TrustManager, MissingApplicationIcon). Tracked by https://github.com/dotnet/android/issues/11774.")) {
1815+
return;
1816+
}
18141817

18151818
var proj = new XamarinAndroidApplicationProject {
18161819
IsRelease = isRelease,

0 commit comments

Comments
 (0)