xamarin / java.interop

Java.Interop provides open-source bindings of Java's Java Native Interface (JNI) for use with .NET managed languages such as C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Java.Interop] Use PublicApiAnalyzer to ensure we do not modify public API

jpobst opened this issue · comments

Context: xamarin/xamarin-android#8171

Like Mono.Android.dll, we consider the Java.Interop.dll public API of each target framework to be an immutable contract. For example, this prevents an issue where a user on .NET 8.0.300 uses a method that isn't available to their coworker or CI on .NET 8.0.100.

Thus we should enable PublicApiAnalyzer on Java.Interop.dll to ensure we do not break our contract.