Skip to content

Commit

Permalink
Fix Proguard issue with coordinator behaviors.
Browse files Browse the repository at this point in the history
See #4712 for specifics.
  • Loading branch information
BenHenning committed Nov 17, 2022
1 parent 5e64fae commit 164e1bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/proguard/androidx-proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
-keep class * extends androidx.room.RoomDatabase
-keep @androidx.room.Entity class *

# CoordinatorLayout uses reflection to load Behavior subclasses (see #4712 for context), so they
# can't be renamed.
-keep class * extends androidx.coordinatorlayout.widget.CoordinatorLayout$Behavior
-keepclassmembers class * extends androidx.coordinatorlayout.widget.CoordinatorLayout$Behavior {
# Constructors may be referenced via reflection, so make sure they don't get removed.
<init>(...);
}

# A strange unknown issue that arises within a Room class (it seems an actual dependency is missing
# within Room).
-dontwarn androidx.room.paging.LimitOffsetDataSource
Expand Down

0 comments on commit 164e1bb

Please sign in to comment.