Skip to content

Commit 3dac437

Browse files
[Tests] Skip BindingWithAndroidJavaSource on NativeAOT
R8 shrinks bound library Java types (JavaSourceJarTest, JavaSourceTestExtension) out of classes.dex on the trimmable typemap path because the proguard keep config is incomplete on NativeAOT, so the class-presence assertions fail. Skip the NativeAOT case via IgnoreOnNativeAot until the underlying proguard-keep bug is fixed. Tracked by #11774. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3b29bfb commit 3dac437

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,10 @@ public void BindingWithAndroidJavaSource ([Values (AndroidRuntime.CoreCLR, Andro
833833
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
834834
return;
835835
}
836+
837+
if (IgnoreOnNativeAot (runtime, "R8 shrinks bound library Java types out of classes.dex on the trimmable typemap path (missing proguard keeps). Tracked by https://github.com/dotnet/android/issues/11774.")) {
838+
return;
839+
}
836840
var path = Path.Combine ("temp", TestName);
837841
var lib = new XamarinAndroidBindingProject () {
838842
IsRelease = isRelease,

0 commit comments

Comments
 (0)