Skip to content

Commit

Permalink
[Gradle] Update AppCompat dependency to 1.6.1
Browse files Browse the repository at this point in the history
This fixes Proguard warnings about ShadowDrawableWrapper.

Resolves #3374

PiperOrigin-RevId: 530651081
  • Loading branch information
leticiarossi committed May 9, 2023
1 parent 577d23e commit 46778db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ext {

androidXVersions = [
annotation : '1.2.0',
appCompat : '1.5.0',
appCompat : '1.6.1',
cardView : '1.0.0',
constraintlayout : '2.0.1',
coordinatorlayout : '1.1.0',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import android.graphics.RectF;
import android.graphics.Shader;
import android.graphics.drawable.Drawable;
import androidx.appcompat.graphics.drawable.DrawableWrapper;
import androidx.appcompat.graphics.drawable.DrawableWrapperCompat;
import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;

Expand All @@ -40,7 +40,7 @@
* @deprecated Use {@link com.google.android.material.shape.MaterialShapeDrawable} instead.
*/
@Deprecated
public class ShadowDrawableWrapper extends DrawableWrapper {
public class ShadowDrawableWrapper extends DrawableWrapperCompat {
// used to calculate content padding
static final double COS_45 = Math.cos(Math.toRadians(45));

Expand Down Expand Up @@ -365,7 +365,7 @@ private void buildComponents(@NonNull Rect bounds) {
bounds.right - rawMaxShadowSize,
bounds.bottom - verticalOffset);

getWrappedDrawable()
getDrawable()
.setBounds(
(int) contentBounds.left,
(int) contentBounds.top,
Expand Down

0 comments on commit 46778db

Please sign in to comment.