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

Ship proguard consumer config #70

Open
grote opened this issue Feb 7, 2022 · 2 comments
Open

Ship proguard consumer config #70

grote opened this issue Feb 7, 2022 · 2 comments

Comments

@grote
Copy link
Contributor

grote commented Feb 7, 2022

This makes the life of users of this library easier, because their app won't crash when using proguard.

By embedding a ProGuard file in your library module, you ensure that app modules that depend on your library do not have to manually update their ProGuard files to use your library.

See https://developer.android.com/studio/projects/android-library#Considerations

@grote
Copy link
Contributor Author

grote commented Feb 7, 2022

This seems to do the trick:

-keep class org.torproject.jni.** { *; }

@eighthave
Copy link
Member

Sounds good to me. My experiences with proguard have always left me mystified as to what is actually going on, so I don't feel qualified to take it on.

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

No branches or pull requests

2 participants