application-services icon indicating copy to clipboard operation
application-services copied to clipboard

Add a proguard-rules-consumer rule to never strip appservices code

Open jonalmeida opened this issue 4 years ago • 0 comments

When debugging https://github.com/mozilla-mobile/focus-android/issues/5879, we realized that all consumers of app services need to know to add these proguard rules to avoid unnecessary stripping of bytecode which the Android optimizer thinks is unused:

-keep class mozilla.appservices.** { *; }

Instead of requiring each app to know this, we could add it into the consumer-proguard-rules.pro so that clients of app services get this rule for free.

cc: @jhugman

┆Issue is synchronized with this Jira Task

jonalmeida avatar Nov 18 '21 18:11 jonalmeida