Skip to content

Commit

Permalink
Fix: Keep proto generated message classes (#1506)
Browse files Browse the repository at this point in the history
Keep proto generated message classes and fields in proguard rules for both wearApp and androidApp.
This prevents these classes from being obfuscated and ensures proper functionality.
  • Loading branch information
yschimke authored Dec 8, 2024
1 parent 71bb9ec commit 46dc0c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions androidApp/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
-keep class dev.johnoreilly.confetti.wear.proto.** { *; }
-keep class androidx.car.app.** { *; }

-keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite { <fields>; }

-keep class com.google.firebase.** { *; }

-dontwarn okhttp3.internal.Util
Expand Down
5 changes: 4 additions & 1 deletion wearApp/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@
-dontwarn kotlinx.serialization.Serializable

-keep class com.squareup.wire.** { *; }
-keep class dev.johnoreilly.confetti.wear.proto.** { *; }

-keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite { <fields>; }

-keep class com.google.firebase.** { *; }

0 comments on commit 46dc0c1

Please sign in to comment.