Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Nested Package-Private types should not be bound #572

Description

@jonpryor

Context: dotnet/android-libraries#56
Context: https://github.com/xamarin/xamarin-android/issues/4278�

A version of the Xamarin.Google.Android.Material 1.1.0-rc1 NuGet package was released which bound the com.google.android.material.button.MaterialButton.OnPressedChangeListener, which is a package-private type.

Package-private types must not be bound.

The com.google.android.material.button.MaterialButton.OnPressedChangeListener is declared in api.xml as:

 <packagename="com.google.android.material.button"jni-name="com/google/android/material/button">
<interfaceabstract="true"deprecated="not deprecated"final="false"name="MaterialButton.OnPressedChangeListener"static="true"visibility=""jni-signature="Lcom/google/android/material/button/MaterialButton$OnPressedChangeListener;">
<methodabstract="true"deprecated="not deprecated"final="false"name="onPressedChanged"jni-signature="(Lcom/google/android/material/button/MaterialButton;Z)V"bridge="false"native="false"return="void"jni-return="V"static="false"synchronized="false"synthetic="false"visibility="public">
<parametername="p0"type="com.google.android.material.button.MaterialButton"jni-type="Lcom/google/android/material/button/MaterialButton;">
</parameter>
<parametername="p1"type="boolean"jni-type="Z">
</parameter>
</method>
</interface>
</package>

Note that //interface/@visibility is empty

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions