Skip to content

Commit 0c023ec

Browse files
Material Design Teamleticiarossi
authored andcommitted
Migrate annotation-experimental to aar_import and remove old lint target
Fixes failures in `material3` and `tiles` by opting in. Fixes failures in `media3` and `protolayout` by disabling the check. This is not ideal, since it does not enable cross-language checks, but it is no worse than it was before. Adds explicit `kotlin-stdlib` dependency where it was previously implicitly included by a poorly-configured `annotation-experimental` target. Removes explicit `proguard.txt` reference from Car build, since it is already included in the AAR. PUBLIC: Handle calls to @RequiresOptIn-annotated APIs PiperOrigin-RevId: 584657528
1 parent 2439dc0 commit 0c023ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/java/com/google/android/material/badge/BadgeDrawable.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import androidx.annotation.IntDef;
4242
import androidx.annotation.NonNull;
4343
import androidx.annotation.Nullable;
44+
import androidx.annotation.OptIn;
4445
import androidx.annotation.PluralsRes;
4546
import androidx.annotation.Px;
4647
import androidx.annotation.RestrictTo;
@@ -129,6 +130,7 @@
129130
* developer guidance</a> and <a href="https://material.io/components/badges/overview">design
130131
* guidelines</a>.
131132
*/
133+
@OptIn(markerClass = com.google.android.material.badge.ExperimentalBadgeUtils.class)
132134
public class BadgeDrawable extends Drawable implements TextDrawableDelegate {
133135

134136
private static final String TAG = "Badge";

0 commit comments

Comments
 (0)