Skip to content

Commit fd90ac1

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 64af15d commit fd90ac1

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
@@ -819,6 +819,10 @@ public void BindingWithAndroidJavaSource ([Values (AndroidRuntime.CoreCLR, Andro
819819
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
820820
return;
821821
}
822+
823+
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.")) {
824+
return;
825+
}
822826
var path = Path.Combine ("temp", TestName);
823827
var lib = new XamarinAndroidBindingProject () {
824828
IsRelease = isRelease,

0 commit comments

Comments
 (0)