proguard.flags 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. -keep,allowshrinking,allowoptimization class com.android.launcher3.** {
  2. *;
  3. }
  4. # The support library contains references to newer platform versions.
  5. # Don't warn about those in case this app is linking against an older
  6. # platform version. We know about them, and they are safe.
  7. -dontwarn android.support.**
  8. # Proguard will strip methods required for talkback to properly scroll to
  9. # next row when focus is on the last item of last row when using a RecyclerView
  10. # Keep optimized and shrunk proguard to prevent issues like this when using
  11. # support jar.
  12. -keep class androidx.recyclerview.widget.RecyclerView { *; }
  13. # Fragments
  14. -keep class ** extends androidx.fragment.app.Fragment {
  15. public <init>(...);
  16. }
  17. -keep class ** extends android.app.Fragment {
  18. public <init>(...);
  19. }
  20. ## Prevent obfuscating various overridable objects
  21. -keep class ** implements com.android.launcher3.util.ResourceBasedOverride {
  22. public <init>(...);
  23. }
  24. -keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
  25. *;
  26. }
  27. -keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {
  28. *;
  29. }
  30. # Discovery bounce animation
  31. -keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
  32. public void setProgress(float);
  33. public float getProgress();
  34. }
  35. # BUG(70852369): Surpress additional warnings after changing from Proguard to R8
  36. -dontwarn android.app.**
  37. -dontwarn android.graphics.**
  38. -dontwarn android.os.**
  39. -dontwarn android.view.**
  40. -dontwarn android.window.**
  41. # Ignore warnings for hidden utility classes referenced from the shared lib
  42. -dontwarn com.android.internal.util.**
  43. ################ Do not optimize recents lib #############
  44. -keep class com.android.systemui.** {
  45. *;
  46. }
  47. -keep class com.android.quickstep.** {
  48. *;
  49. }