Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Proguard rules #78

Merged
merged 1 commit into from
Sep 4, 2018
Merged

Fix Proguard rules #78

merged 1 commit into from
Sep 4, 2018

Conversation

chrisbanes
Copy link
Contributor

Wrong close and package names were used

Closes #71

Wrong close and package names were used

Closes #71
@gpeal
Copy link
Collaborator

gpeal commented Sep 3, 2018

cc @rossbacher

-keepclassmembers class * implements com.airbnb.mvrx.MvRxState {
# Members of the Kotlin data classes used as the state in MvRx are read via Kotlin reflection which cause trouble
# with Proguard if they are not kept.
-keepclassmembers class ** implements com.airbnb.mvrx.MvRxState {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not really required as from the documentation: For convenience and for backward compatibility, the class name * refers to any class, irrespective of its package.
However it makes sense to only use one notation inside one config.

Copy link
Collaborator

@rossbacher rossbacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like I forgot to adjust the package name for open sourcing 🤦‍♂️ Thx for the fix!

@rossbacher rossbacher merged commit 88e9ac2 into airbnb:master Sep 4, 2018
@chrisbanes chrisbanes deleted the cb/proguard-rules branch September 4, 2018 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proguard rules
3 participants