Skip to content

Nested Package-Private types should not be bound #572

Closed
@jonpryor

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

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