Skip to content
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
This repository was archived by the owner on Aug 27, 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:

  <package name="com.google.android.material.button" jni-name="com/google/android/material/button">
    <interface abstract="true" deprecated="not deprecated" final="false" name="MaterialButton.OnPressedChangeListener" static="true" visibility="" jni-signature="Lcom/google/android/material/button/MaterialButton$OnPressedChangeListener;">
      <method abstract="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">
        <parameter name="p0" type="com.google.android.material.button.MaterialButton" jni-type="Lcom/google/android/material/button/MaterialButton;">
        </parameter>
        <parameter name="p1" type="boolean" jni-type="Z">
        </parameter>
      </method>
    </interface>
  </package>

Note that //interface/@visibility is empty

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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